summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2018-08-30 09:45:41 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-04 11:03:55 +0100
commita9471601fedd1f5087304eaa5fd39b98ae220313 (patch)
tree1f7d6af10b40154347445f3ccd955c58529e488d
parent011ab977bd45b0e34a381f0c3af4f4008e12e5e8 (diff)
downloadpoky-a9471601fedd1f5087304eaa5fd39b98ae220313.tar.gz
kernel-devsrc: fix arm/arm64 target module build
module.lds is required for arch/arm* to build modules out of tree, but isn't required for scripts/prepare, so it was missed in the initial devsrc rework: root@qemuarm64:/tmp# make -C /usr/src/kernel M=/tmp modules make: Entering directory '/lib/modules/4.18.3-yocto-standard/build' CC [M] /tmp/hellomod.o Building modules, stage 2. MODPOST 1 modules CC /tmp/hellomod.mod.o LD [M] /tmp/hellomod.ko make: Leaving directory '/lib/modules/4.18.3-yocto-standard/build' root@qemuarm64:/tmp# insmod hellomod.ko [ 675.743628] hellomod: loading out-of-tree module taints kernel. [ 675.794959] Hello world! (From OE-Core rev: a37979a19ee16dc1e01243175fce24683f6ced83) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/linux/kernel-devsrc.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index b3f529237a..463305e89a 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -146,6 +146,8 @@ do_install() {
146 cp -a --parents arch/arm64/kernel/vdso/sigreturn.S $kerneldir/build/ 146 cp -a --parents arch/arm64/kernel/vdso/sigreturn.S $kerneldir/build/
147 cp -a --parents arch/arm64/kernel/vdso/note.S $kerneldir/build/ 147 cp -a --parents arch/arm64/kernel/vdso/note.S $kerneldir/build/
148 cp -a --parents arch/arm64/kernel/vdso/gen_vdso_offsets.sh $kerneldir/build/ 148 cp -a --parents arch/arm64/kernel/vdso/gen_vdso_offsets.sh $kerneldir/build/
149
150 cp -a --parents arch/arm64/kernel/module.lds $kerneldir/build/
149 fi 151 fi
150 152
151 # include the machine specific headers for ARM variants, if available. 153 # include the machine specific headers for ARM variants, if available.
@@ -156,6 +158,8 @@ do_install() {
156 cp -a --parents arch/arm/tools/gen-mach-types $kerneldir/build/ 158 cp -a --parents arch/arm/tools/gen-mach-types $kerneldir/build/
157 cp -a --parents arch/arm/tools/mach-types $kerneldir/build/ 159 cp -a --parents arch/arm/tools/mach-types $kerneldir/build/
158 cp -a --parents arch/arm/tools/syscall* $kerneldir/build/ 160 cp -a --parents arch/arm/tools/syscall* $kerneldir/build/
161
162 cp -a --parents arch/arm/kernel/module.lds $kerneldir/build/
159 fi 163 fi
160 164
161 if [ -d arch/${ARCH}/include ]; then 165 if [ -d arch/${ARCH}/include ]; then