Adding a busybox option to build it statically.

Adding it to the cross builds.


svn path=/nixpkgs/trunk/; revision=20516
This commit is contained in:
Lluís Batlle i Rossell
2010-03-09 22:44:45 +00:00
parent fb6adb13ac
commit 33e549fa4f
3 changed files with 8 additions and 3 deletions

View File

@@ -1,11 +1,14 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, enableStatic ? false}:
let
basicConfigure = ''
make defconfig
sed -i 's,.*CONFIG_PREFIX.*,CONFIG_PREFIX="'$out'",' .config
sed -i 's,.*CONFIG_INSTALL_NO_USR.*,CONFIG_INSTALL_NO_USR=y,' .config
'';
'' +
(if enableStatic then ''
sed -i 's,.*CONFIG_STATIC.*,CONFIG_STATIC=y,' .config
'' else "");
in