uboot: buildUBoot: add extraConfig parameter
This commit is contained in:
parent
e245086709
commit
26079c4da7
@ -7,6 +7,7 @@ let
|
|||||||
buildUBoot = { filesToInstall
|
buildUBoot = { filesToInstall
|
||||||
, installDir ? "$out"
|
, installDir ? "$out"
|
||||||
, defconfig
|
, defconfig
|
||||||
|
, extraConfig ? ""
|
||||||
, extraPatches ? []
|
, extraPatches ? []
|
||||||
, extraMakeFlags ? []
|
, extraMakeFlags ? []
|
||||||
, extraMeta ? {}
|
, extraMeta ? {}
|
||||||
@ -50,11 +51,15 @@ let
|
|||||||
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
||||||
] ++ extraMakeFlags;
|
] ++ extraMakeFlags;
|
||||||
|
|
||||||
|
passAsFile = [ "extraConfig" ];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
runHook preConfigure
|
runHook preConfigure
|
||||||
|
|
||||||
make ${defconfig}
|
make ${defconfig}
|
||||||
|
|
||||||
|
cat $extraConfigPath >> .config
|
||||||
|
|
||||||
runHook postConfigure
|
runHook postConfigure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -242,10 +247,8 @@ in rec {
|
|||||||
extraMeta.platforms = ["armv7l-linux"];
|
extraMeta.platforms = ["armv7l-linux"];
|
||||||
filesToInstall = ["u-boot-with-nand-spl.imx"];
|
filesToInstall = ["u-boot-with-nand-spl.imx"];
|
||||||
buildFlags = "u-boot-with-nand-spl.imx";
|
buildFlags = "u-boot-with-nand-spl.imx";
|
||||||
postConfigure = ''
|
extraConfig = ''
|
||||||
cat >> .config << EOF
|
|
||||||
CONFIG_CMD_SETEXPR=y
|
CONFIG_CMD_SETEXPR=y
|
||||||
EOF
|
|
||||||
'';
|
'';
|
||||||
# sata init; load sata 0 $loadaddr u-boot-with-nand-spl.imx
|
# sata init; load sata 0 $loadaddr u-boot-with-nand-spl.imx
|
||||||
# sf probe; sf update $loadaddr 0 80000
|
# sf probe; sf update $loadaddr 0 80000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user