[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Links in kernel-headers packages



You can control what happens in make-kpkg using some hooks provided
by make-kpkg. The 2.6.8 kernel makes of one of these to
add the files you are talking about. I have attached the script to
this mail for your referece. To use this make-dpkg is invoked as:

HEADER_CLEAN_HOOK=header-install make-kpkg ...

Please note that the attached script is prefilted to replace @kbpkg@
with the kernel kernel-build-package version, kernel-kbuild-2.6-3.

-- 
Horms
#!/bin/sh

set -e

kbpkg=@kbpkg@

cd $DEBIAN_SRCTOP
{
	find . -path './scripts/*' -prune -o \
		-path './Documentation/*' -prune -o \
		-path './debian/*' -prune -o \
		-type f \( -name Makefile -o -name 'Kconfig*' \) -print
	echo arch/$DEB_HOST_ARCH/kernel/asm-offsets.s
} | cpio -pd --preserve-modification-time $OLDPWD
cd - > /dev/null
ln -s ../$kbpkg/scripts .

remove=
cd include
for i in asm-*; do
	case ${i#asm-} in
	generic | $DEB_HOST_ARCH)
		;;
	*)
		remove="$remove $i"
		;;
	esac
done
${remove:+rm -r $remove}

Reply to: