ipxe: allow to pass options with values

For example BANNER_TIMEOUT can be overriden like:
```
ipxe.overrideArgs(old: {
    enableOptions = old.enableOptions ++ [ "BANNER_TIMEOUT 100" ];
});
```

Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
This commit is contained in:
Arthur Gautier 2021-09-13 01:03:07 +00:00 committed by Emery Hemingway
parent 85568eb45c
commit 3a7e5f6c25

View File

@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
configurePhase = ''
runHook preConfigure
for opt in $enabledOptions; do echo "#define $opt" >> src/config/general.h; done
for opt in ${lib.escapeShellArgs enabledOptions}; do echo "#define $opt" >> src/config/general.h; done
sed -i '/cp \''${ISOLINUX_BIN}/s/$/ --no-preserve=mode/' src/util/geniso
substituteInPlace src/Makefile.housekeeping --replace '/bin/echo' echo
runHook postConfigure