Signed-off-by: Felix Fietkau <nbd@nbd.name>
DEVICE_VARS += DEVICE_DTS
define Device/rpi
DEVICE_VARS += DEVICE_DTS
define Device/rpi
DEVICE_TITLE := Raspberry Pi B/B+/CM
DEVICE_DTS := bcm2708-rpi-b bcm2708-rpi-b-plus bcm2708-rpi-cm
endef
DEVICE_TITLE := Raspberry Pi B/B+/CM
DEVICE_DTS := bcm2708-rpi-b bcm2708-rpi-b-plus bcm2708-rpi-cm
endef
+ifeq ($(SUBTARGET),bcm2708)
+ TARGET_DEVICES += rpi
+endif
DEVICE_TITLE := Raspberry Pi 2 B
DEVICE_DTS := bcm2709-rpi-2-b
endef
DEVICE_TITLE := Raspberry Pi 2 B
DEVICE_DTS := bcm2709-rpi-2-b
endef
+ifeq ($(SUBTARGET),bcm2708)
+ TARGET_DEVICES += rpi-2
+endif
DEVICE_TITLE := Raspberry Pi 3 B
DEVICE_DTS := bcm2710-rpi-3-b
DEVICE_PACKAGES := brcmfmac43430-firmware-sdio kmod-brcmfmac wpad-mini
endef
DEVICE_TITLE := Raspberry Pi 3 B
DEVICE_DTS := bcm2710-rpi-3-b
DEVICE_PACKAGES := brcmfmac43430-firmware-sdio kmod-brcmfmac wpad-mini
endef
+ifeq ($(SUBTARGET),bcm2708)
+ TARGET_DEVICES += rpi-3
+endif
$(eval $(call BuildImage))
$(eval $(call BuildImage))