Improved the Linux kernel building framework
Moved the hardcoded postBuild hook from the builder to generic.nix: Some old kernel (such as 2.6.15) did not yet support the unifdef target. As a result, compiling them with the current Linux builder leads to a failure. Fixed by moving this hook as argument of the top-level function of generic.nix. This allows some kernel nix codes to overrides its default value. svn path=/nixpkgs/trunk/; revision=27708
This commit is contained in:
parent
eabbecd10f
commit
8268a39690
@ -16,8 +16,8 @@ postPatch() {
|
||||
}
|
||||
|
||||
configurePhase() {
|
||||
if test -n "$preConfigure"; then
|
||||
eval "$preConfigure";
|
||||
if test -n "$preConfigure"; then
|
||||
eval "$preConfigure";
|
||||
fi
|
||||
|
||||
export INSTALL_PATH=$out
|
||||
@ -46,13 +46,6 @@ configurePhase() {
|
||||
}
|
||||
|
||||
|
||||
postBuild() {
|
||||
# After the builder did a 'make all' (kernel + modules)
|
||||
# we force building the target asked: bzImage/zImage/uImage/...
|
||||
make $makeFlags $kernelTarget
|
||||
make $makeFlags -C scripts unifdef
|
||||
}
|
||||
|
||||
installPhase() {
|
||||
|
||||
ensureDir $out
|
||||
@ -149,8 +142,8 @@ installPhase() {
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -n "$postInstall"; then
|
||||
eval "$postInstall";
|
||||
if test -n "$postInstall"; then
|
||||
eval "$postInstall";
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,10 @@
|
||||
, extraMeta ? {}
|
||||
, ubootChooser ? null
|
||||
, postInstall ? ""
|
||||
|
||||
, # After the builder did a 'make all' (kernel + modules)
|
||||
# we force building the target asked: bzImage/zImage/uImage/...
|
||||
postBuild ? "make $makeFlags $kernelTarget; make $makeFlags -C scripts unifdef"
|
||||
, ...
|
||||
}:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user