debian/bin/install-image
- Add arch/*/include to headers package. - Add extra scripts into headers package. svn path=/dists/trunk/linux-2.6/; revision=4617
This commit is contained in:
parent
0380207472
commit
8d0068bdc9
|
@ -70,10 +70,13 @@ find . -mindepth 1 -maxdepth 1 \
|
|||
xargs ln -s --target-directory="$dir"
|
||||
|
||||
find "arch/$arch" -mindepth 1 -maxdepth 1 \( \
|
||||
-type d -a ! -name kernel -o \
|
||||
-type d -a ! -name include -a ! -name kernel -o \
|
||||
-type f -a \( -name 'Makefile*' -o -name 'Kconfig*' \) \) \
|
||||
-printf "../../../linux-headers-$prefix/%p\n" |
|
||||
xargs ln -s --target-directory="$dir/arch/$arch"
|
||||
if [ -d arch/$arch/include ]; then
|
||||
cp -a arch/$arch/include $dir/arch/$arch/include
|
||||
fi
|
||||
[ -f "arch/$arch/kernel/asm-offsets.s" ] && ln -f "arch/$arch/kernel/asm-offsets.s" "$dir/arch/$arch/kernel"
|
||||
ln -s "../../../../linux-headers-$prefix/arch/$arch/kernel/Makefile" "$dir/arch/$arch/kernel"
|
||||
find include -mindepth 1 -maxdepth 1 \
|
||||
|
@ -105,7 +108,7 @@ mkdir -p "$top/lib/modules/$version"
|
|||
ln -s "/usr/src/linux-headers-$version" "$top/lib/modules/$version/build"
|
||||
|
||||
mkdir -p "$dir/scripts"
|
||||
cp scripts/Makefile* "$dir/scripts"
|
||||
cp scripts/Kbuild* scripts/Makefile* "$dir/scripts"
|
||||
for i in $(find scripts -type f -perm +111 -o -name "*.sh" -o -name "*.pl"); do
|
||||
mkdir -p "$dir/$(dirname $i)"
|
||||
cp "$i" "$dir/$i"
|
||||
|
|
Loading…
Reference in New Issue