From: Gustavo Zacarias Date: Wed, 24 Dec 2014 13:54:55 +0000 (-0300) Subject: linux: fix breakage from d4b2b032a00c9922c9efa144b014dc086a7e48f1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49b147ccbb807238009fde815ad68e953077bc3a;p=buildroot.git linux: fix breakage from d4b2b032a00c9922c9efa144b014dc086a7e48f1 Unbreak qemu_xtensa_lx60_defconfig where LINUX_IMAGE_NAME != LINUX_TARGET_NAME. It incorrectly overwrites LINUX_IMAGE_NAME even if it was set before, defeating the purpose of IMAGE being different than TARGET. Signed-off-by: Gustavo Zacarias Signed-off-by: Thomas Petazzoni --- diff --git a/linux/linux.mk b/linux/linux.mk index 36f0230dde..8256641677 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -82,7 +82,9 @@ KERNEL_DTBS = $(addsuffix .dtb,$(KERNEL_DTS_NAME)) ifeq ($(BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM),y) LINUX_IMAGE_NAME = $(call qstrip,$(BR2_LINUX_KERNEL_IMAGE_NAME)) LINUX_TARGET_NAME = $(call qstrip,$(BR2_LINUX_KERNEL_IMAGE_TARGET_NAME)) +ifeq ($(LINUX_IMAGE_NAME),) LINUX_IMAGE_NAME = $(LINUX_TARGET_NAME) +endif else ifeq ($(BR2_LINUX_KERNEL_UIMAGE),y) LINUX_IMAGE_NAME = uImage