uboot: buildUBoot: add extraConfig parameter

wip/yesman
Ben Wolsieffer 6 years ago
parent e245086709
commit 26079c4da7
  1. 9
      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

Loading…
Cancel
Save