changeset 1039:a34a4954c640

Cleanup debris files installed by the kernel's headers install, spotted by Denys Vlasenko.
author Rob Landley <rob@landley.net>
date Sun, 25 Apr 2010 20:25:40 -0500
parents 2957c1dd95cb
children b630081630a7
files sources/sections/linux-headers.sh
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sources/sections/linux-headers.sh	Tue Apr 13 12:58:42 2010 -0500
+++ b/sources/sections/linux-headers.sh	Sun Apr 25 20:25:40 2010 -0500
@@ -22,3 +22,7 @@
 ln -s ../sys/user.h "$STAGE_DIR/include/asm/page.h"
 
 cleanup
+
+# Remove debris the kernel puts in there for no apparent reason.
+
+find "$STAGE_DIR/include" -name ".install" -print0 -or -name "..install.cmd" -print0 | xargs -0 rm