aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/clean
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2016-02-27 17:06:38 +0100
committerFrancis Rowe <info@gluglug.org.uk>2016-03-01 01:45:36 +0100
commit89cc8c38c1cf3865c3684e5bd6658eedf0e61cfd (patch)
tree1f2ecadeb7d2a6aef0ae29a0c282cf96851e0f7a /resources/scripts/helpers/build/clean
parent756ee1f9eb4583b127b2233666643d16ad7fd8d2 (diff)
downloadlibrebootfr-89cc8c38c1cf3865c3684e5bd6658eedf0e61cfd.tar.gz
librebootfr-89cc8c38c1cf3865c3684e5bd6658eedf0e61cfd.zip
iunfinished patch: copy coreboot per revision, not board
Diffstat (limited to 'resources/scripts/helpers/build/clean')
-rwxr-xr-xresources/scripts/helpers/build/clean/coreboot10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/clean/coreboot b/resources/scripts/helpers/build/clean/coreboot
index baaabbd4..880447d0 100755
--- a/resources/scripts/helpers/build/clean/coreboot
+++ b/resources/scripts/helpers/build/clean/coreboot
@@ -32,6 +32,15 @@ printf "Cleaning the previous build of coreboot and its utilities\n"
for payload in coreboot/*; do
for board in "${payload}/"*; do
+ (
+ # Reset to master branch, where there are no board-specific patches applied
+ # also remove the .git history and so on
+ cd "${board}/"
+ git checkout master
+ rm -Rf ".git/"*
+ rm -Rf "3rdparty/"*/*.git
+ )
+
# Clean coreboot, of course
make -C "${board}/" distclean
@@ -46,6 +55,7 @@ for payload in coreboot/*; do
done
# Also do the same for the crossgcc version of coreboot
+# Note how we do not want to delete crossgcc. We only clean it
make -C "crossgcc/" crossgcc-clean
for util in {cbfs,ifd,nvram}tool cbmem; do
make -C "crossgcc/util/${util}/" clean