Skip to contentSkip to conversation

kernel-devsrc: support 4.4+ ARM/ARM64 kernels

PATCH In review Ruslan Bilovol 1 participant 2 messages Feb 14, 2020 – Mar 2, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-devsrc: support 4.4+ ARM/ARM64 kernels

Linux Kernel 4.4 is an LTS kernel so people may still build it with OE.

Thus make copying of some files optional:
- arm64 module.lds file first appeared with kernel v4.6 commit fd045f6cd98e arm64: add support for module PLTs"
- arm32 *.tbl files first appeared in kernel v4.10 in commit 96a8fae0fe09 "ARM: convert to generated system call tables"

---
 meta/recipes-kernel/linux/kernel-devsrc.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-kernel/linux/kernel-devsrc.bb +2 -2
index 2fa4be67cc..2ac679e204 100644
@@ -147,7 +147,7 @@ do_install() {
             cp -a --parents arch/arm64/kernel/vdso/note.S $kerneldir/build/
             cp -a --parents arch/arm64/kernel/vdso/gen_vdso_offsets.sh $kerneldir/build/
 
-            cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/
+            cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/ 2>/dev/null || :
 	fi
 
 	if [ "${ARCH}" = "powerpc" ]; then
@@ -187,7 +187,7 @@ do_install() {
 
 	# required for generate missing syscalls prepare phase
 	cp -a --parents $(find arch/x86 -type f -name "syscall_32.tbl") $kerneldir/build
-	cp -a --parents $(find arch/arm -type f -name "*.tbl") $kerneldir/build
+	cp -a --parents $(find arch/arm -type f -name "*.tbl") $kerneldir/build 2>/dev/null || :
 
 	if [ "${ARCH}" = "x86" ]; then
 	    # files for 'make prepare' to succeed with kernel-devel
Signature · 1 line
2.17.1
#1 lore raw

Gentle ping

Quoted 38 lines · Ruslan Bilovol

Linux Kernel 4.4 is an LTS kernel so people may still build it with OE.

Thus make copying of some files optional:
- arm64 module.lds file first appeared with kernel v4.6 commit fd045f6cd98e arm64: add support for module PLTs"
- arm32 *.tbl files first appeared in kernel v4.10 in commit 96a8fae0fe09 "ARM: convert to generated system call tables"

---
  meta/recipes-kernel/linux/kernel-devsrc.bb | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-kernel/linux/kernel-devsrc.bb +2 -2
index 2fa4be67cc..2ac679e204 100644
@@ -147,7 +147,7 @@ do_install() {
              cp -a --parents arch/arm64/kernel/vdso/note.S $kerneldir/build/
              cp -a --parents arch/arm64/kernel/vdso/gen_vdso_offsets.sh $kerneldir/build/
 
-            cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/
+            cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/ 2>/dev/null || :
  	fi
 
  	if [ "${ARCH}" = "powerpc" ]; then
@@ -187,7 +187,7 @@ do_install() {
 
  	# required for generate missing syscalls prepare phase
  	cp -a --parents $(find arch/x86 -type f -name "syscall_32.tbl") $kerneldir/build
-	cp -a --parents $(find arch/arm -type f -name "*.tbl") $kerneldir/build
+	cp -a --parents $(find arch/arm -type f -name "*.tbl") $kerneldir/build 2>/dev/null || :
 
  	if [ "${ARCH}" = "x86" ]; then
  	    # files for 'make prepare' to succeed with kernel-devel