Trying to make uboot not annoy the nixpkgs tarball. Tested.
svn path=/nixpkgs/trunk/; revision=20310
This commit is contained in:
parent
7869d22938
commit
95e22a39c7
@ -1,5 +1,7 @@
|
|||||||
{stdenv, fetchurl, unzip, platform}:
|
{stdenv, fetchurl, unzip, platform}:
|
||||||
|
|
||||||
|
# This does not cover the case for cross-building, but we need some filtering
|
||||||
|
# for the normal stdenv, in order to build the nixpkgs tarball
|
||||||
assert (stdenv.system != "i686-linux" && stdenv.system != "x86_64-linux")
|
assert (stdenv.system != "i686-linux" && stdenv.system != "x86_64-linux")
|
||||||
|| (stdenv ? cross);
|
|| (stdenv ? cross);
|
||||||
|
|
||||||
@ -14,13 +16,15 @@ stdenv.mkDerivation {
|
|||||||
# patches = [ ./gas220.patch ];
|
# patches = [ ./gas220.patch ];
|
||||||
|
|
||||||
# Remove the cross compiler prefix, and add reiserfs support
|
# Remove the cross compiler prefix, and add reiserfs support
|
||||||
configurePhase = ''
|
configurePhase = assert (platform ? ubootConfig);
|
||||||
|
''
|
||||||
make mrproper
|
make mrproper
|
||||||
make ${platform.ubootConfig} NBOOT=1 LE=1
|
make ${platform.ubootConfig} NBOOT=1 LE=1
|
||||||
sed -i /CROSS_COMPILE/d include/config.mk
|
sed -i /CROSS_COMPILE/d include/config.mk
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = assert (platform ? kernelArch);
|
||||||
|
''
|
||||||
unset src
|
unset src
|
||||||
if test -z "$crossConfig"; then
|
if test -z "$crossConfig"; then
|
||||||
make clean all
|
make clean all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user