From db3ebfe69ac75caeed6107c5c3eb4d5b5951a32f Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Mon, 2 Mar 2020 20:38:44 +0100 Subject: [PATCH] configure: Dump build CONFIG to sourceable file Change-Id: I33d03d1850c92673f28107d52c886df5bfb685f1 Signed-off-by: Michal Berger Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1106 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk Reviewed-by: Ben Walker --- .gitignore | 1 + configure | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 059a49089..563afa687 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ mk/cc.flags.mk PYTHON_COMMAND test_completions.txt timing.txt +test/common/build_config.sh diff --git a/configure b/configure index e5145a012..5709551ed 100755 --- a/configure +++ b/configure @@ -804,6 +804,11 @@ rm -f $rootdir/mk/cc.flags.mk [ -n "$DESTDIR" ] && echo "DESTDIR?=$DESTDIR" >> $rootdir/mk/cc.flags.mk 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 echo "Type 'gmake' to build." else