From: John Crispin Date: Mon, 5 Oct 2015 10:25:28 +0000 (+0000) Subject: target/mpc85xx: check if 'generic' subtarget for image file cuImage.tl-wdr4900-v1 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=df47e4c55bdd44b85efb4f0df95fbb6466754c74;p=openwrt%2Fstaging%2Fneocturne.git target/mpc85xx: check if 'generic' subtarget for image file cuImage.tl-wdr4900-v1 Only add 'cuImage.tl-wdr4900-v1' to KERNEL_IMAGES if the selected subtarget is 'generic'. Signed-off-by: Alexandru Ardelean SVN-Revision: 47109 --- diff --git a/target/linux/mpc85xx/Makefile b/target/linux/mpc85xx/Makefile index e43327acd8..5f3ad6c3d4 100644 --- a/target/linux/mpc85xx/Makefile +++ b/target/linux/mpc85xx/Makefile @@ -16,10 +16,13 @@ SUBTARGETS=generic p1020 KERNEL_PATCHVER:=3.18 -KERNEL_IMAGES := zImage cuImage.tl-wdr4900-v1 - include $(INCLUDE_DIR)/target.mk +KERNEL_IMAGES := zImage +ifeq ($(SUBTARGET),generic) +KERNEL_IMAGES += cuImage.tl-wdr4900-v1 +endif + DEFAULT_PACKAGES += \ kmod-input-core kmod-input-gpio-keys kmod-button-hotplug \ kmod-leds-gpio kmod-booke-wdt \