diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-04-18 21:35:22 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-04-18 21:35:22 +0000 |
commit | efb4de40945b0165994dec16af35c9c85b0f8356 (patch) | |
tree | 6855081d6dbee68a8aefaad550696976ecffe74a | |
parent | 6c4da4dd186be14d41b9ac41fc7a7f64aa686315 (diff) | |
download | master-187ad058-efb4de40945b0165994dec16af35c9c85b0f8356.tar.gz master-187ad058-efb4de40945b0165994dec16af35c9c85b0f8356.tar.bz2 master-187ad058-efb4de40945b0165994dec16af35c9c85b0f8356.zip |
image.mk: do not emit multiple target definitions for kernel images
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45498 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | include/image.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk index ebeec5ebb5..bd6a88af61 100644 --- a/include/image.mk +++ b/include/image.mk @@ -380,8 +380,8 @@ define Device/Build/check_size endef define Device/Build/kernel + _KERNEL_IMAGES += $(KDIR)/$$(KERNEL_NAME) $(KDIR)/$$(KERNEL_NAME): image_prepare - touch $$@ $$(_TARGET): $$(if $$(KERNEL_INSTALL),$(BIN_DIR)/$$(KERNEL_IMAGE)) $(BIN_DIR)/$$(KERNEL_IMAGE): $(KDIR)/$$(KERNEL_IMAGE) cp $$^ $$@ @@ -456,6 +456,9 @@ define BuildImage $(foreach device,$(TARGET_DEVICES),$(call Device,$(device))) $(foreach fs,$(TARGET_FILESYSTEMS) $(fs-subtypes-y),$(call BuildImage/mkfs,$(fs))) + $$(sort $$(_KERNEL_IMAGES)): + @touch $$@ + install: kernel_prepare $(foreach fs,$(TARGET_FILESYSTEMS), $(call Image/Build,$(fs)) |