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@xxxxxxxxxxxxxx> --- 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