Skip to content

Commit

Permalink
kbuild/kbuild.sh: add config_file param for get_config_value function
Browse files Browse the repository at this point in the history
the order of priority would be:

$config_file
$PWD/.config
$KBUILD_OUTPUT/.config
$BUILD_DIR/.config

Signed-off-by: Yujie Liu <[email protected]>
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
Yujie-Liu authored and rli9 committed Nov 29, 2023
1 parent c6319ac commit 46b5164
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kbuild/kbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ is_llvm_equal_one_supported()
get_config_value()
{
local config=$1
local config_file=$2

grep -s -h "^$config=" .config $KBUILD_OUTPUT/.config $BUILD_DIR/.config |
grep -s -h "^$config=" $config_file .config $KBUILD_OUTPUT/.config $BUILD_DIR/.config |
head -n1 |
cut -f2- -d= |
sed 's/\"//g'
Expand Down

0 comments on commit 46b5164

Please sign in to comment.