tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
uboot: buildUBoot: add extraConfig parameter
Ben Wolsieffer
7 years ago
26079c4d
e2450867
+6
-3
1 changed file
expand all
collapse all
unified
split
pkgs
misc
uboot
default.nix
+6
-3
pkgs/misc/uboot/default.nix
···
7
7
buildUBoot = { filesToInstall
8
8
, installDir ? "$out"
9
9
, defconfig
10
10
+
, extraConfig ? ""
10
11
, extraPatches ? []
11
12
, extraMakeFlags ? []
12
13
, extraMeta ? {}
···
50
51
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
51
52
] ++ extraMakeFlags;
52
53
54
54
+
passAsFile = [ "extraConfig" ];
55
55
+
53
56
configurePhase = ''
54
57
runHook preConfigure
55
58
56
59
make ${defconfig}
60
60
+
61
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
245
-
postConfigure = ''
246
246
-
cat >> .config << EOF
250
250
+
extraConfig = ''
247
251
CONFIG_CMD_SETEXPR=y
248
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