summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel.bbclass18
1 files changed, 9 insertions, 9 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index a4db9f5375..8d4a733f54 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -236,20 +236,21 @@ kernel_do_install() {
236 # dir. This ensures the original Makefiles are used and not the 236 # dir. This ensures the original Makefiles are used and not the
237 # redirecting Makefiles in the build directory. 237 # redirecting Makefiles in the build directory.
238 # 238 #
239 # work and sysroots can be on different partitions, so we can't rely on 239 find . -depth -not -name "*.cmd" -not -name "*.o" -not -path "./Documentation*" -not -path "./.*" -print0 | cpio --null -pdlu $kerneldir
240 # hardlinking, unfortunately.
241 #
242 find . -depth -not -name "*.cmd" -not -name "*.o" -not -path "./.*" -print0 | cpio --null -pdu $kerneldir
243 cp .config $kerneldir 240 cp .config $kerneldir
244 if [ "${S}" != "${B}" ]; then 241 if [ "${S}" != "${B}" ]; then
245 pwd="$PWD" 242 pwd="$PWD"
246 cd "${S}" 243 cd "${S}"
247 find . -depth -not -path "./.*" -print0 | cpio --null -pdu $kerneldir 244 find . -depth -not -path "./Documentation*" -not -path "./.*" -print0 | cpio --null -pdlu $kerneldir
248 cd "$pwd" 245 cd "$pwd"
249 fi 246 fi
250 install -m 0644 ${KERNEL_OUTPUT} $kerneldir/${KERNEL_IMAGETYPE} 247 install -m 0644 ${KERNEL_OUTPUT} $kerneldir/${KERNEL_IMAGETYPE}
251 install -m 0644 System.map $kerneldir/System.map-${KERNEL_VERSION} 248 install -m 0644 System.map $kerneldir/System.map-${KERNEL_VERSION}
252 249
250 # Dummy Makefile so the clean below works
251 mkdir $kerneldir/Documentation
252 touch $kerneldir/Documentation/Makefile
253
253 # 254 #
254 # Clean and remove files not needed for building modules. 255 # Clean and remove files not needed for building modules.
255 # Some distributions go through a lot more trouble to strip out 256 # Some distributions go through a lot more trouble to strip out
@@ -262,22 +263,21 @@ kernel_do_install() {
262 oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean 263 oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean
263 make -C $kerneldir _mrproper_scripts 264 make -C $kerneldir _mrproper_scripts
264 find $kerneldir -path $kerneldir/lib -prune -o -path $kerneldir/tools -prune -o -path $kerneldir/scripts -prune -o -name "*.[csS]" -exec rm '{}' \; 265 find $kerneldir -path $kerneldir/lib -prune -o -path $kerneldir/tools -prune -o -path $kerneldir/scripts -prune -o -name "*.[csS]" -exec rm '{}' \;
265 find $kerneldir/Documentation -name "*.txt" -exec rm '{}' \;
266 266
267 # As of Linux kernel version 3.0.1, the clean target removes 267 # As of Linux kernel version 3.0.1, the clean target removes
268 # arch/powerpc/lib/crtsavres.o which is present in 268 # arch/powerpc/lib/crtsavres.o which is present in
269 # KBUILD_LDFLAGS_MODULE, making it required to build external modules. 269 # KBUILD_LDFLAGS_MODULE, making it required to build external modules.
270 if [ ${ARCH} = "powerpc" ]; then 270 if [ ${ARCH} = "powerpc" ]; then
271 cp arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o 271 cp -l arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o
272 fi 272 fi
273 273
274 # Necessary for building modules like compat-wireless. 274 # Necessary for building modules like compat-wireless.
275 if [ -f include/generated/bounds.h ]; then 275 if [ -f include/generated/bounds.h ]; then
276 cp include/generated/bounds.h $kerneldir/include/generated/bounds.h 276 cp -l include/generated/bounds.h $kerneldir/include/generated/bounds.h
277 fi 277 fi
278 if [ -d arch/${ARCH}/include/generated ]; then 278 if [ -d arch/${ARCH}/include/generated ]; then
279 mkdir -p $kerneldir/arch/${ARCH}/include/generated/ 279 mkdir -p $kerneldir/arch/${ARCH}/include/generated/
280 cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/ 280 cp -flR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/
281 fi 281 fi
282 282
283 # Remove the following binaries which cause strip or arch QA errors 283 # Remove the following binaries which cause strip or arch QA errors