deb-pkg: Use $SRCARCH for include path
authormaximilian attems <max@stro.at>
Thu, 13 Jan 2011 14:34:20 +0000 (15:34 +0100)
committerMichal Marek <mmarek@suse.cz>
Fri, 14 Jan 2011 23:42:44 +0000 (00:42 +0100)
Fix x86 centric path to allow building kernel-header packages for
other architecture.

Signed-off-by: maximilian attems <max@stro.at>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/package/builddeb

index b0b2357aef421ba9f63d608194ef4d052e540c30..ebc6d6e9d7782c1a0101237273cc5fbda6e74573 100644 (file)
@@ -239,7 +239,7 @@ fi
 
 # Build header package
 find . -name Makefile -o -name Kconfig\* -o -name \*.pl > /tmp/files$$
-find arch/x86/include include scripts -type f >> /tmp/files$$
+find arch/$SRCARCH/include include scripts -type f >> /tmp/files$$
 (cd $objtree; find .config Module.symvers include scripts -type f >> /tmp/objfiles$$)
 destdir=$kernel_headers_dir/usr/src/linux-headers-$version
 mkdir -p "$destdir"