brcm2708: improve profiles and image generation

- Add profiles for bcm2708 subtarget.
- Check subtarget for image generation.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 46396
This commit is contained in:
John Crispin 2015-07-17 12:47:50 +00:00
parent b052a00c0b
commit 8ef50ec40b
3 changed files with 37 additions and 18 deletions

View file

@ -5,12 +5,26 @@
# See /LICENSE for more information. # See /LICENSE for more information.
# #
define Profile/RaspberryPi define Profile/Default
NAME:=Raspberry Pi NAME:=Raspberry Pi
endef endef
define Profile/Default/Description
define Profile/RaspberryPi/Description Raspberry Pi
Raspberry Pi board
endef endef
$(eval $(call Profile,Default))
$(eval $(call Profile,RaspberryPi)) define Profile/RaspberryPi_B
NAME:=Raspberry Pi Model B
endef
define Profile/RaspberryPi_B/Description
Raspberry Pi Model B
endef
$(eval $(call Profile,RaspberryPi_B))
define Profile/RaspberryPi_BPlus
NAME:=Raspberry Pi Model B+
endef
define Profile/RaspberryPi_BPlus/Description
Raspberry Pi Model B+
endef
$(eval $(call Profile,RaspberryPi_BPlus))

View file

@ -5,12 +5,10 @@
# See /LICENSE for more information. # See /LICENSE for more information.
# #
define Profile/RaspberryPi2 define Profile/RaspberryPi_2
NAME:=Raspberry Pi 2 NAME:=Raspberry Pi 2 Model B
endef endef
define Profile/RaspberryPi_2/Description
define Profile/RaspberryPi2/Description Raspberry Pi 2 Model B
Raspberry Pi 2 board
endef endef
$(eval $(call Profile,RaspberryPi_2))
$(eval $(call Profile,RaspberryPi2))

View file

@ -67,11 +67,18 @@ define add_bcm2708
TARGET_DEVICES += $(2) TARGET_DEVICES += $(2)
endef endef
# Raspberry Pi Model B ### BCM2708/BCM2835 ###
$(eval $(call add_bcm2708,RaspberryPi,rpi-b,bcm2708-rpi-b)) ifeq ($(SUBTARGET),bcm2708)
# Raspberry Pi Model B+ # Raspberry Pi Model B
$(eval $(call add_bcm2708,RaspberryPi,rpi-b-plus,bcm2708-rpi-b-plus)) $(eval $(call add_bcm2708,RaspberryPi_B,rpi-b,bcm2708-rpi-b))
# Raspberry Pi 2 Model B # Raspberry Pi Model B+
$(eval $(call add_bcm2708,RaspberryPi2,rpi-2-b,bcm2709-rpi-2-b)) $(eval $(call add_bcm2708,RaspberryPi_BPlus,rpi-b-plus,bcm2708-rpi-b-plus))
endif
### BCM2709/BCM2836 ###
ifeq ($(SUBTARGET),bcm2709)
# Raspberry Pi 2 Model B
$(eval $(call add_bcm2708,RaspberryPi_2,rpi-2-b,bcm2709-rpi-2-b))
endif
$(eval $(call BuildImage)) $(eval $(call BuildImage))