summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2025-04-14 17:23:16 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2025-04-14 17:27:21 +0300
commit7aa7cc8565e630864b66732e4b3923ec4782aafb (patch)
tree2d0acc113c664629dab3c8f5c0ca35f6bf352b3c
parent020f15fecc5093747aa9d417d6cba9213510131f (diff)
kbuild: Ignore glob patterns that don't match any fileHEADmaster
It is useful to specify glob patterns in platform files to select device tree sources. When switching development branches, some patterns may not match any file. The shell expands those patterns to themselves, which causes build failures. Fix this by setting the nullglob option, to make those patterns expand to a null string. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-xkbuild.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/kbuild.sh b/kbuild.sh
index b457bb1..6b990f3 100755
--- a/kbuild.sh
+++ b/kbuild.sh
@@ -2,6 +2,7 @@
# SPDX-License-Identifier: GPL-2.0+
set -e
+shopt -s nullglob
kbuild_root=$(dirname $(readlink -f "$0"))
kernel_root="${PWD}"