diff options
author | Ben Wolsieffer <benwolsieffer@gmail.com> | 2019-01-01 01:05:36 -0500 |
---|---|---|
committer | Ben Wolsieffer <benwolsieffer@gmail.com> | 2019-01-18 17:53:21 -0500 |
commit | 26079c4da73172f4d51ceca2ef9a641bcc1e0777 (patch) | |
tree | 210448590a478e6da89b0272f3586f5630921e4b | |
parent | e245086709ebc3b8cef01ffc4f35748a55839cf2 (diff) | |
download | nixlib-26079c4da73172f4d51ceca2ef9a641bcc1e0777.tar nixlib-26079c4da73172f4d51ceca2ef9a641bcc1e0777.tar.gz nixlib-26079c4da73172f4d51ceca2ef9a641bcc1e0777.tar.bz2 nixlib-26079c4da73172f4d51ceca2ef9a641bcc1e0777.tar.lz nixlib-26079c4da73172f4d51ceca2ef9a641bcc1e0777.tar.xz nixlib-26079c4da73172f4d51ceca2ef9a641bcc1e0777.tar.zst nixlib-26079c4da73172f4d51ceca2ef9a641bcc1e0777.zip |
uboot: buildUBoot: add extraConfig parameter
-rw-r--r-- | pkgs/misc/uboot/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index 44d2bfc4400e..5affd93279c9 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -7,6 +7,7 @@ let buildUBoot = { filesToInstall , installDir ? "$out" , defconfig + , extraConfig ? "" , extraPatches ? [] , extraMakeFlags ? [] , extraMeta ? {} @@ -50,11 +51,15 @@ let "CROSS_COMPILE=${stdenv.cc.targetPrefix}" ] ++ extraMakeFlags; + passAsFile = [ "extraConfig" ]; + configurePhase = '' runHook preConfigure make ${defconfig} + cat $extraConfigPath >> .config + runHook postConfigure ''; @@ -242,10 +247,8 @@ in rec { extraMeta.platforms = ["armv7l-linux"]; filesToInstall = ["u-boot-with-nand-spl.imx"]; buildFlags = "u-boot-with-nand-spl.imx"; - postConfigure = '' - cat >> .config << EOF + extraConfig = '' CONFIG_CMD_SETEXPR=y - EOF ''; # sata init; load sata 0 $loadaddr u-boot-with-nand-spl.imx # sf probe; sf update $loadaddr 0 80000 |