summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index bca34f4698..6eb87acf06 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -223,6 +223,29 @@ kernel_do_install() {
223 # 223 #
224 224
225 echo "${KERNEL_VERSION}" > $kerneldir/kernel-abiversion 225 echo "${KERNEL_VERSION}" > $kerneldir/kernel-abiversion
226
227 # Copy files required for module builds
228 cp System.map $kerneldir/System.map-${KERNEL_VERSION}
229 cp Module.symvers $kerneldir/
230 cp .config $kerneldir/
231 mkdir -p $kerneldir/include/config
232 cp include/config/kernel.release $kerneldir/include/config/kernel.release
233
234 # As of Linux kernel version 3.0.1, the clean target removes
235 # arch/powerpc/lib/crtsavres.o which is present in
236 # KBUILD_LDFLAGS_MODULE, making it required to build external modules.
237 if [ ${ARCH} = "powerpc" ]; then
238 mkdir -p $kerneldir/arch/powerpc/lib/
239 cp arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o
240 fi
241
242 mkdir -p $kerneldir/include/generated/
243 cp -fR include/generated/* $kerneldir/include/generated/
244
245 if [ -d arch/${ARCH}/include/generated ]; then
246 mkdir -p $kerneldir/arch/${ARCH}/include/generated/
247 cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
248 fi
226} 249}
227do_install[prefuncs] += "package_get_auto_pr" 250do_install[prefuncs] += "package_get_auto_pr"
228 251