summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-09-23 14:10:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-25 11:50:21 +0200
commitcec220cffb2f898ea95df0f847ffd1e800775c7e (patch)
tree2699adace05c3a2557273d3e7579e9fe80c250b3 /scripts
parent47a31c4b6f89e69c59e61d17bd54aafe7d4f15ad (diff)
downloadbarebox-cec220cffb2f898ea95df0f847ffd1e800775c7e.tar.gz
barebox-cec220cffb2f898ea95df0f847ffd1e800775c7e.tar.xz
scripts/dtc: git rm old files as part of update process
To avoid keeping stale files in the scripts/dtc directory, care had to be taken to delete all files except for the ones native to barebox. Make this less error-prone by having careupdate-dtc-source.sh delete these files as part of the update process. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dtc/update-dtc-source.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/dtc/update-dtc-source.sh b/scripts/dtc/update-dtc-source.sh
index fc644c5ada..0a098df710 100755
--- a/scripts/dtc/update-dtc-source.sh
+++ b/scripts/dtc/update-dtc-source.sh
@@ -44,6 +44,9 @@ get_last_dtc_version() {
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
cd $DTC_UPSTREAM_PATH
make clean
make check