Added extra_postinstall_command (not using it for powerpc afterall, but it could be generally usefull still).

svn path=/trunk/kernel/source/linux-2.6-2.6.12/; revision=3513
This commit is contained in:
Sven Luther 2005-07-16 00:11:13 +00:00
parent 37bd417d06
commit 0762f2cbed
3 changed files with 17 additions and 0 deletions

1
debian/Makefile vendored
View File

@ -158,6 +158,7 @@ header-install-$(subarch): templates/header-install.in
post-install-$(subarch): templates/post-install.in
sed -e 's,@initrd_modules@,$(initrd_modules),' \
-e 's,@append_subarch@,$(append),' \
-e 's,@extra_postinstall_command@,$(extra_postinstall_command),' \
templates/post-install.in > post-install-$(subarch)
#
# Generates the kernel config file for a subarch by merging

10
debian/README vendored
View File

@ -210,3 +210,13 @@ default_config
Typical usage:
default_config := 386
extra_postinstall_command
This variable, if defined, is executed at the end of the post-install script,
which is used by kernel-package to add or modify the files going into the
kernel image package.
It can use these variables (but see templates/post-install.in for details) :
$(subarch), $(flavour), $(version) and $(abiname). Since Makefile.inc is a
Makefile, the leading $ need to be escaped as double $$.

View File

@ -105,6 +105,12 @@ if [ -n "${modules}" ]; then
fi
done
fi
# Execute any extra post-install command provided by the arch/subarch/flavour
if [ '@extra_postinstall_command@' ]; then
@extra_postinstall_command@
fi
#
# Clean up the build and source symlinks
#