configure: Dump build CONFIG to sourceable file
Change-Id: I33d03d1850c92673f28107d52c886df5bfb685f1 Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1106 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
c3329b52a0
commit
db3ebfe69a
1
.gitignore
vendored
1
.gitignore
vendored
@ -31,3 +31,4 @@ mk/cc.flags.mk
|
|||||||
PYTHON_COMMAND
|
PYTHON_COMMAND
|
||||||
test_completions.txt
|
test_completions.txt
|
||||||
timing.txt
|
timing.txt
|
||||||
|
test/common/build_config.sh
|
||||||
|
5
configure
vendored
5
configure
vendored
@ -804,6 +804,11 @@ rm -f $rootdir/mk/cc.flags.mk
|
|||||||
[ -n "$DESTDIR" ] && echo "DESTDIR?=$DESTDIR" >> $rootdir/mk/cc.flags.mk
|
[ -n "$DESTDIR" ] && echo "DESTDIR?=$DESTDIR" >> $rootdir/mk/cc.flags.mk
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
# Create .sh with build config for easy sourcing|lookup during the tests.
|
||||||
|
for conf in "${!CONFIG[@]}"; do
|
||||||
|
echo "CONFIG_$conf=${CONFIG[$conf]}"
|
||||||
|
done >"$rootdir/test/common/build_config.sh"
|
||||||
|
|
||||||
if [[ $sys_name == "FreeBSD" ]]; then
|
if [[ $sys_name == "FreeBSD" ]]; then
|
||||||
echo "Type 'gmake' to build."
|
echo "Type 'gmake' to build."
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user