diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-07-02 11:13:46 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-05 10:59:40 +0100 |
commit | c90326070165105306def851d692c82f2352360f (patch) | |
tree | c398f794ced88a799ee7b48cd2becacd9e1cd664 /meta | |
parent | ef8f5d17cc3e04338734de5f7c2b33019fa4dacf (diff) | |
download | poky-c90326070165105306def851d692c82f2352360f.tar.gz |
kernel-devsrc: fix scripts prepare for powerpc
5.13 introduces some new tweaks required to get on target scripts
and prepare working for powerpc:
- 'nm' is detected as 'nm --synthetic', so we adjust our replacement
- more vdso is required on target, so we copy those files (like arm64
does)
- grep is required during processing, so we add it to the redpends
(From OE-Core rev: c43baf3a0e41b41a64f450fd03810306c8ddd314)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index b1837b3a51..92076ac8b0 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
@@ -112,6 +112,9 @@ do_install() { | |||
112 | if [ "${ARCH}" = "arm64" ]; then | 112 | if [ "${ARCH}" = "arm64" ]; then |
113 | cp -a --parents arch/arm64/kernel/vdso/vdso.lds $kerneldir/build/ | 113 | cp -a --parents arch/arm64/kernel/vdso/vdso.lds $kerneldir/build/ |
114 | fi | 114 | fi |
115 | if [ "${ARCH}" = "powerpc" ]; then | ||
116 | cp -a --parents arch/powerpc/kernel/vdso32/vdso32.lds $kerneldir/build 2>/dev/null || : | ||
117 | fi | ||
115 | 118 | ||
116 | cp -a include $kerneldir/build/include | 119 | cp -a include $kerneldir/build/include |
117 | 120 | ||
@@ -178,6 +181,7 @@ do_install() { | |||
178 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscall.tbl $kerneldir/build/ 2>/dev/null || : | 181 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscall.tbl $kerneldir/build/ 2>/dev/null || : |
179 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscalltbl.sh $kerneldir/build/ 2>/dev/null || : | 182 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscalltbl.sh $kerneldir/build/ 2>/dev/null || : |
180 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscallhdr.sh $kerneldir/build/ 2>/dev/null || : | 183 | cp -a --parents arch/${ARCH}/kernel/syscalls/syscallhdr.sh $kerneldir/build/ 2>/dev/null || : |
184 | cp -a --parents arch/${ARCH}/kernel/vdso32/* $kerneldir/build/ 2>/dev/null || : | ||
181 | fi | 185 | fi |
182 | 186 | ||
183 | # include the machine specific headers for ARM variants, if available. | 187 | # include the machine specific headers for ARM variants, if available. |
@@ -281,7 +285,11 @@ do_install() { | |||
281 | sed -i 's/ifneq "$(LD)" ".*-linux-.*ld.bfd.*$/ifneq "$(LD)" "ld"/' "$kerneldir/build/include/config/auto.conf.cmd" | 285 | sed -i 's/ifneq "$(LD)" ".*-linux-.*ld.bfd.*$/ifneq "$(LD)" "ld"/' "$kerneldir/build/include/config/auto.conf.cmd" |
282 | sed -i 's/ifneq "$(AR)" ".*-linux-.*ar.*$/ifneq "$(AR)" "ar"/' "$kerneldir/build/include/config/auto.conf.cmd" | 286 | sed -i 's/ifneq "$(AR)" ".*-linux-.*ar.*$/ifneq "$(AR)" "ar"/' "$kerneldir/build/include/config/auto.conf.cmd" |
283 | sed -i 's/ifneq "$(OBJCOPY)" ".*-linux-.*objcopy.*$/ifneq "$(OBJCOPY)" "objcopy"/' "$kerneldir/build/include/config/auto.conf.cmd" | 287 | sed -i 's/ifneq "$(OBJCOPY)" ".*-linux-.*objcopy.*$/ifneq "$(OBJCOPY)" "objcopy"/' "$kerneldir/build/include/config/auto.conf.cmd" |
284 | sed -i 's/ifneq "$(NM)" ".*-linux-.*nm.*$/ifneq "$(NM)" "nm"/' "$kerneldir/build/include/config/auto.conf.cmd" | 288 | if [ "${ARCH}" = "powerpc" ]; then |
289 | sed -i 's/ifneq "$(NM)" ".*-linux-.*nm.*$/ifneq "$(NM)" "nm --synthetic"/' "$kerneldir/build/include/config/auto.conf.cmd" | ||
290 | else | ||
291 | sed -i 's/ifneq "$(NM)" ".*-linux-.*nm.*$/ifneq "$(NM)" "nm"/' "$kerneldir/build/include/config/auto.conf.cmd" | ||
292 | fi | ||
285 | sed -i 's/ifneq "$(HOSTCXX)" ".*$/ifneq "$(HOSTCXX)" "g++"/' "$kerneldir/build/include/config/auto.conf.cmd" | 293 | sed -i 's/ifneq "$(HOSTCXX)" ".*$/ifneq "$(HOSTCXX)" "g++"/' "$kerneldir/build/include/config/auto.conf.cmd" |
286 | sed -i 's/ifneq "$(HOSTCC)" ".*$/ifneq "$(HOSTCC)" "gcc"/' "$kerneldir/build/include/config/auto.conf.cmd" | 294 | sed -i 's/ifneq "$(HOSTCC)" ".*$/ifneq "$(HOSTCC)" "gcc"/' "$kerneldir/build/include/config/auto.conf.cmd" |
287 | sed -i 's/ifneq "$(CC_VERSION_TEXT)".*\(gcc.*\)"/ifneq "$(CC_VERSION_TEXT)" "\1"/' "$kerneldir/build/include/config/auto.conf.cmd" | 295 | sed -i 's/ifneq "$(CC_VERSION_TEXT)".*\(gcc.*\)"/ifneq "$(CC_VERSION_TEXT)" "\1"/' "$kerneldir/build/include/config/auto.conf.cmd" |
@@ -317,3 +325,5 @@ RDEPENDS_${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils', '', d)}" | |||
317 | RDEPENDS_${PN} += "gcc-plugins libmpc-dev" | 325 | RDEPENDS_${PN} += "gcc-plugins libmpc-dev" |
318 | # 5.13+ needs awk for arm64 | 326 | # 5.13+ needs awk for arm64 |
319 | RDEPENDS_${PN}_append_aarch64 = " gawk" | 327 | RDEPENDS_${PN}_append_aarch64 = " gawk" |
328 | # 5.13+ needs grep for powerpc | ||
329 | RDEPENDS_${PN}_append_powerpc = " grep" | ||