summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/kernel.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index e2a582b9e9..cc61be6f18 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -143,10 +143,13 @@ kernel_do_install() {
143 # work and sysroots can be on different partitions, so we can't rely on 143 # work and sysroots can be on different partitions, so we can't rely on
144 # hardlinking, unfortunately. 144 # hardlinking, unfortunately.
145 # 145 #
146 cp -fR * $kerneldir 146 find . -depth -not -name "*.cmd" -not -name "*.o" -not -path "./.*" -print0 | cpio --null -pdu $kerneldir
147 cp .config $kerneldir 147 cp .config $kerneldir
148 if [ "${S}" != "${B}" ]; then 148 if [ "${S}" != "${B}" ]; then
149 cp -fR ${S}/* $kerneldir 149 pwd="$PWD"
150 cd "${S}"
151 find . -depth -not -path "./.*" -print0 | cpio --null -pdu $kerneldir
152 cd "$pwd"
150 fi 153 fi
151 install -m 0644 ${KERNEL_OUTPUT} $kerneldir/${KERNEL_IMAGETYPE} 154 install -m 0644 ${KERNEL_OUTPUT} $kerneldir/${KERNEL_IMAGETYPE}
152 install -m 0644 System.map $kerneldir/System.map-${KERNEL_VERSION} 155 install -m 0644 System.map $kerneldir/System.map-${KERNEL_VERSION}