Skip to contentSkip to conversation

kernel: don't populate source symbolic link

PATCH New Kai Kang 1 participant 1 message Apr 1, 2014

lore
Share & tools
lore

Kai Kang

author
#0 lore raw

PATCH 1/1 kernel: don't populate source symbolic link

From: Ming Liu <[email protected]>

/usr/src/kernel/source deployed by kernel-dev package is symbolically linking to a build-time kernel source folder, which make no sense when cross-compiling.

Fixed by not populating it at install stage.

---
 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -1
index 19b159b..6ed1cb7 100644
@@ -232,7 +232,7 @@ kernel_do_install() {
 	# dir. This ensures the original Makefiles are used and not the
 	# redirecting Makefiles in the build directory.
 	#
-	find . -depth -not -name "*.cmd" -not -name "*.o" -not -path "./Documentation*" -not -path "./.*" -print0 | cpio --null -pdlu $kerneldir
+	find . -depth -not -name "*.cmd" -not -name "*.o" -not -path "./Documentation*" -not -path "./source*" -not -path "./.*" -print0 | cpio --null -pdlu $kerneldir
 	cp .config $kerneldir
 	if [ "${S}" != "${B}" ]; then
 		pwd="$PWD"
Signature · 1 line
1.8.1.2