[PATCH v1 02/20] scripts/dtc: update-dts-source.sh: don't fail if libfdt/ exists

Ahmad Fatoum a.fatoum at pengutronix.de
Fri Feb 17 09:30:39 PST 2023


Script is apparently meant to be run without deleting the existing
contents, but that fails because libfdt may already exist. Thus give
mkdir a -p argument.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 scripts/dtc/update-dtc-source.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/dtc/update-dtc-source.sh b/scripts/dtc/update-dtc-source.sh
index 604ed254f542..141d36294294 100755
--- a/scripts/dtc/update-dtc-source.sh
+++ b/scripts/dtc/update-dtc-source.sh
@@ -46,7 +46,7 @@ last_dtc_ver=$(get_last_dtc_version)
 # Build DTC
 cd $DTC_LINUX_PATH
 git ls-files . | grep -vE '^(update-dtc-source\.sh|Makefile|\.gitignore)$' | xargs git rm
-mkdir libfdt
+mkdir -p libfdt
 cd $DTC_UPSTREAM_PATH
 make clean
 make check
-- 
2.30.2




More information about the barebox mailing list