From 7aa7cc8565e630864b66732e4b3923ec4782aafb Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 14 Apr 2025 17:23:16 +0300 Subject: kbuild: Ignore glob patterns that don't match any file 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 --- kbuild.sh | 1 + 1 file changed, 1 insertion(+) 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}" -- cgit v1.2.3