summaryrefslogtreecommitdiff
path: root/scripts/config
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2025-04-29 23:42:29 +0300
committerRob Clark <robdclark@chromium.org>2025-04-29 23:42:29 +0300
commit844e31bbaef7c8a6ff2c0fbac45c0c85b5484482 (patch)
tree01d80b723a71bff43ffd866499f497e697a9766a /scripts/config
parent9d78f02503227d3554d26cf8ca73276105c98f3e (diff)
parent0d607a59a0f6593e72630854a8bcb8b01b8dce40 (diff)
downloadlinux-844e31bbaef7c8a6ff2c0fbac45c0c85b5484482.tar.xz
Merge remote-tracking branch 'drm-misc/drm-misc-next' into msm-next
Merge drm-misc-next to get commit Fixes: fec450ca15af ("drm/display: hdmi: provide central data authority for ACR params"). Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'scripts/config')
-rwxr-xr-xscripts/config26
1 files changed, 16 insertions, 10 deletions
diff --git a/scripts/config b/scripts/config
index ff88e2faefd3..ea475c07de28 100755
--- a/scripts/config
+++ b/scripts/config
@@ -32,6 +32,7 @@ commands:
Disable option directly after other option
--module-after|-M beforeopt option
Turn option into module directly after other option
+ --refresh Refresh the config using old settings
commands can be repeated multiple times
@@ -124,16 +125,22 @@ undef_var() {
txt_delete "^# $name is not set" "$FN"
}
-if [ "$1" = "--file" ]; then
- FN="$2"
- if [ "$FN" = "" ] ; then
- usage
+FN=.config
+CMDS=()
+while [[ $# -gt 0 ]]; do
+ if [ "$1" = "--file" ]; then
+ if [ "$2" = "" ]; then
+ usage
+ fi
+ FN="$2"
+ shift 2
+ else
+ CMDS+=("$1")
+ shift
fi
- shift 2
-else
- FN=.config
-fi
+done
+set -- "${CMDS[@]}"
if [ "$1" = "" ] ; then
usage
fi
@@ -217,9 +224,8 @@ while [ "$1" != "" ] ; do
set_var "${CONFIG_}$B" "${CONFIG_}$B=m" "${CONFIG_}$A"
;;
- # undocumented because it ignores --file (fixme)
--refresh)
- yes "" | make oldconfig
+ yes "" | make oldconfig KCONFIG_CONFIG=$FN
;;
*)