diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-11-29 00:54:26 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 23:27:06 +0000 |
commit | 1bd3e545bd14428e0695bafd80fe350a57463363 (patch) | |
tree | fa3efc9e309629456f501c2e8482930887f96aba /meta/recipes-kernel | |
parent | ea8b9d5d7b67a8ffa3838d1d879b773f4aae115d (diff) | |
download | poky-1bd3e545bd14428e0695bafd80fe350a57463363.tar.gz |
kernel-devsrc: remove symlink source
Fixed:
$ rpm -qplv tmp/deploy/rpm/qemuppc/kernel-devsrc-1.0-r0.qemuppc.rpm | grep kernel/source
/usr/src/kernel/source -> /buildarea/lyang1/test_yocto/tmp/work/qemuppc-poky-linux/kernel-devsrc/1.0-r0/image/usr/src/kernel
It is generated by kernel's "make clean _mrproper_scripts", the
kernel-devsrc includeds full sources, this symlink is not needed, and
the path is invalid on target, so remove it.
(From OE-Core rev: 65804d1239e626bbe1a4b5772f2464db21163713)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 9fd2e08c9d..7004261ce5 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
@@ -53,6 +53,13 @@ do_install() { | |||
53 | # architecture (since scripts and helpers are native format). | 53 | # architecture (since scripts and helpers are native format). |
54 | KBUILD_OUTPUT="$kerneldir" | 54 | KBUILD_OUTPUT="$kerneldir" |
55 | oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts | 55 | oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts |
56 | # make clean generates an absolute path symlink called "source" | ||
57 | # in $kerneldir points to $kerneldir, which doesn't make any | ||
58 | # sense, so remove it. | ||
59 | if [ -L $kerneldir/source ]; then | ||
60 | bbnote "Removing $kerneldir/source symlink" | ||
61 | rm -f $kerneldir/source | ||
62 | fi | ||
56 | 63 | ||
57 | # As of Linux kernel version 3.0.1, the clean target removes | 64 | # As of Linux kernel version 3.0.1, the clean target removes |
58 | # arch/powerpc/lib/crtsavres.o which is present in | 65 | # arch/powerpc/lib/crtsavres.o which is present in |