Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

uboot: buildUBoot: add extraConfig parameter

+6 -3
+6 -3
pkgs/misc/uboot/default.nix
··· 7 7 buildUBoot = { filesToInstall 8 8 , installDir ? "$out" 9 9 , defconfig 10 + , extraConfig ? "" 10 11 , extraPatches ? [] 11 12 , extraMakeFlags ? [] 12 13 , extraMeta ? {} ··· 50 51 "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 51 52 ] ++ extraMakeFlags; 52 53 54 + passAsFile = [ "extraConfig" ]; 55 + 53 56 configurePhase = '' 54 57 runHook preConfigure 55 58 56 59 make ${defconfig} 60 + 61 + cat $extraConfigPath >> .config 57 62 58 63 runHook postConfigure 59 64 ''; ··· 242 247 extraMeta.platforms = ["armv7l-linux"]; 243 248 filesToInstall = ["u-boot-with-nand-spl.imx"]; 244 249 buildFlags = "u-boot-with-nand-spl.imx"; 245 - postConfigure = '' 246 - cat >> .config << EOF 250 + extraConfig = '' 247 251 CONFIG_CMD_SETEXPR=y 248 - EOF 249 252 ''; 250 253 # sata init; load sata 0 $loadaddr u-boot-with-nand-spl.imx 251 254 # sf probe; sf update $loadaddr 0 80000