diff options
author | Theodore Ts'o <tytso@mit.edu> | 2022-08-17 19:40:47 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-08-17 22:47:48 -0400 |
commit | 89cb47549a96c8826c89ffec2bbab51a71725768 (patch) | |
tree | 15569819f06f1323c67628596372d5b2d53a5837 | |
parent | 1c414e9c200c708979deedfe413244839c247ee3 (diff) | |
download | xfstests-bld-89cb47549a96c8826c89ffec2bbab51a71725768.tar.gz |
install-kconfig: add a new option --get-config-fn
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rwxr-xr-x | kernel-build/install-kconfig | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/kernel-build/install-kconfig b/kernel-build/install-kconfig index 4430a0ce..e9b03130 100755 --- a/kernel-build/install-kconfig +++ b/kernel-build/install-kconfig @@ -43,12 +43,15 @@ do --extra-debug|debug) DO_DEBUG=yes ;; + --get-config-fn) + DO_GET_CONFIG_FN=yes + ;; --help|help) echo "Usage: install-kconfig [--i386] [--perf] [--blktests]" \ "[--extra-debug]" echo " [--kasan] [--kcsan] [--ubsan] [--lockdep]" \ "[--full-debug-info]" - echo " [--no-action]" + echo " [--get-config-fn] [--no-action]" exit 0 ;; *) @@ -103,12 +106,15 @@ while test -z "$CONFIG_FN" ; do SUBVERSION=20 fi if test $VERSION = 2 ; then - echo "Can't find configuration file?" + echo "Can't find configuration file?" 1>&2 exit 1 fi done -# echo "Config file is $CONFIG_FN" +if test -n "$DO_GET_CONFIG_FN" ; then + echo "$CONFIG_FN" + exit 0 +fi FILES=("$CONFIG_FN") |