openwrt-builders/generic/Makefile

24 lines
566 B
Makefile

.DEFAULT_GOAL: all
TARGETS := \
ath79/nand/aerohive_hiveap-121 \
ath79/generic/ubnt_unifiac-pro \
mediatek/filogic/bananapi_bpi-r3 \
mediatek/mt7622/ubnt_unifi-6-lr-v1 \
mediatek/mt7622/ubnt_unifi-6-lr-v2 \
x86/64/generic
all: $(TARGETS)
$(TARGETS): files/ Containerfile config
buildah build \
--layers=true \
--network=host \
-o type=local,dest="$@/" \
--build-arg PLATFORM="$(shell echo $@ | cut -d'/' -f1)" \
--build-arg SUBTARGET="$(shell echo $@ | cut -d'/' -f2)" \
--build-arg DEVICE="$(shell echo $@ | cut -d'/' -f3)" \
./
.SUFFIXES: