diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2017-09-28 05:13:05 +0100 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2017-09-28 05:13:05 +0100 |
commit | 1dfb668acad8e26a7193056d93dcab9ed370ff26 (patch) | |
tree | 127c22d871549c0bc34927e62d617e229807336e | |
parent | 7351b18f2e60f7a304965af2a0d85d5ef5b87a78 (diff) | |
download | common-linaro-o-preview.tar.gz |
tasks/kernel.mk: use zImage as kernel if zImage specifiedlinaro-o-preview
otherwise the link command will failed if multiple
kernel making targets with zImage specified.
There maybe other cases of multiple make targets specification,
let's deal with that case when met
Change-Id: I342502b202ec9f75d239a229f5cc7a740c3fd2fd
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | tasks/kernel.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tasks/kernel.mk b/tasks/kernel.mk index a792352..4e2d9de 100644 --- a/tasks/kernel.mk +++ b/tasks/kernel.mk @@ -165,8 +165,11 @@ endif out_of_tree_modules: $(INSTALLED_KERNEL_TARGET) gator_driver $(INSTALLED_KERNEL_TARGET): android_kernel +ifneq (, $(filter zImage, $(KERNEL_TARGET))) + ln -sf $(KERNEL_OUT)/arch/$(ARCH)/boot/zImage $(INSTALLED_KERNEL_TARGET) +else ln -sf $(KERNEL_OUT)/arch/$(ARCH)/boot/$(KERNEL_TARGET) $(INSTALLED_KERNEL_TARGET) - +endif $(INSTALLED_SYSTEMTARBALL_TARGET): android_kernel_modules out_of_tree_modules $(INSTALLED_RAMDISK_TARGET): android_kernel_modules out_of_tree_modules |