mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
generate-config.sh: Support running from contexts where O is set
When invoked from a context like this... my-infix-spin$ make O=x-my-build x86_64_defconfig ...where the spin's Makefile would trigger the generation of the defconfig based on some fragments, the value of O passed via the environment would be ignored since the spin's Makefile typically overrides it. Therefore, pass it as a make variable instead, which takes precedence.
This commit is contained in:
@@ -81,6 +81,6 @@ done
|
||||
TMPDIR=`mktemp -d`
|
||||
$MERGE_CONFIG -O "$TMPDIR" "$base" "$changes"
|
||||
|
||||
O="$TMPDIR" make savedefconfig
|
||||
make O="$TMPDIR" savedefconfig
|
||||
mv "$TMPDIR"/defconfig "$output"
|
||||
rm -r "$TMPDIR"
|
||||
|
||||
Reference in New Issue
Block a user