From b0d446dee427cfdb71c55c2a46472786de7b8ffc Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Mon, 11 Jul 2011 22:46:10 +0200 Subject: Improve TARGETS handling for bootloaders and kernel As the kernel and bootloaders do not use the normal BR2_PACKAGE_* Kconfig options, their target name was not automatically added to the global TARGETS variable. Each bootloader .mk and the linux.mk had to add their own target manually to TARGETS, and the package infrastructure was making tests on non-existing Kconfig variables. This commit improves the package infrastructure so that it looks at BR2_PACKAGE_ for packages, BR2_TARGET_ for bootloaders and at the special BR2_LINUX_KERNEL for the linux package. This allows to simplify a little bit the bootloaders and linux .mk files. Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- boot/uboot/uboot.mk | 8 -------- 1 file changed, 8 deletions(-) (limited to 'boot/uboot') diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index 3e945c7f2..dfa012a8f 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -111,19 +111,11 @@ endef $(eval $(call GENTARGETS,boot,uboot)) -############################################################# -# -# Toplevel Makefile options -# -############################################################# ifeq ($(BR2_TARGET_UBOOT),y) -TARGETS+=u-boot - # we NEED a board name unless we're at make source ifeq ($(filter source,$(MAKECMDGOALS)),) ifeq ($(UBOOT_BOARD_NAME),) $(error NO U-Boot board name set. Check your BR2_TARGET_UBOOT_BOARDNAME setting) endif endif - endif -- cgit v1.2.3