Skip to contentSkip to conversation

kernel-devsrc: provide gen-cpucaps.awk and cpucaps for arm64

PATCH In review Zhang, Qiang 2 participants 2 messages Jul 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-devsrc: provide gen-cpucaps.awk and cpucaps for arm64

From: Zqiang <[email protected]>

In v5.13+ kernel, when exporting the SDK and make scripts prepare the gen-cpucaps.awk and cpucaps be needed. this change is based on 0c6c2d3615ef ("arm64: Generate cpucaps.h").

---
 meta/recipes-kernel/linux/kernel-devsrc.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-kernel/linux/kernel-devsrc.bb +3 -0
index 84e99233e6..b4af622d57 100644
@@ -162,6 +162,9 @@ 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/tools/gen-cpucaps.awk $kerneldir/build/
+            cp -a --parents arch/arm64/tools/cpucaps $kerneldir/build/
+
             cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/ 2>/dev/null || :
 	fi
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 17 lines · On Mon, Jul 12, 2021 at 3:02 AM <[email protected]> wrote:

From: Zqiang <[email protected]>

In v5.13+ kernel, when exporting the SDK and make scripts prepare the gen-cpucaps.awk and cpucaps be needed. this change is based on 0c6c2d3615ef ("arm64: Generate cpucaps.h").

---
 meta/recipes-kernel/linux/kernel-devsrc.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-kernel/linux/kernel-devsrc.bb +0 -0
index 84e99233e6..b4af622d57 100644

meta/recipes-kernel/linux/kernel-devsrc.bb do_install() { · line 166

Quoted 5 lines
meta/recipes-kernel/linux/kernel-devsrc.bb +2 -0
@@ -162,6 +162,9 @@ 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/tools/gen-cpucaps.awk $kerneldir/build/
+            cp -a --parents arch/arm64/tools/cpucaps $kerneldir/build/

This is already in a patch that I sent on July 2nd.

cb1b7e76f20dc7f11a667fa00958ab56e680c632 [kernel-devsrc: fix scripts/prepare for ARM64]

Also, the context of this branch is different from what we have in master, so I'm not sure what baseline you are working from.

Bruce

Quoted 7 lines
meta/recipes-kernel/linux/kernel-devsrc.bb +1 -1
+
             cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/ 2>/dev/null || :
        fi
 
--

2.17.1

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II