diff options
author | Francis Rowe <info@gluglug.org.uk> | 2016-03-03 21:00:28 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2016-03-03 21:00:28 +0100 |
commit | d105b4a8b74645d5936cf8a51b1517f3ba89fd26 (patch) | |
tree | 6e4bcfbf1952ed9dc7c111f42b870109c358e744 /resources/scripts/helpers/build/clean | |
parent | 2f3d87aec85f5759180380cbc156472378164d11 (diff) | |
download | librebootfr-d105b4a8b74645d5936cf8a51b1517f3ba89fd26.tar.gz librebootfr-d105b4a8b74645d5936cf8a51b1517f3ba89fd26.zip |
Revert "Revert "iunfinished patch: copy coreboot per revision, not board""
This reverts commit 2f3d87aec85f5759180380cbc156472378164d11.
Diffstat (limited to 'resources/scripts/helpers/build/clean')
-rwxr-xr-x | resources/scripts/helpers/build/clean/coreboot | 10 |
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 |