From b5db04808919b510a3df153f882cdb4676876d07 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 13 Oct 2023 23:53:24 +0100 Subject: [PATCH] update/release: delete multi-tree upstream repos e.g. src/coreboot/coreboot must not appear in a release, because we instead have directories like src/coreboot/default or src/coreboot/cros lbmk resets src/coreboot/coreboot to HEAD, but then resets revisions properly in copies of it therefore, for reproducibility, we must not include src/coreboot/coreboot, src/u-boot/u-boot or src/seabios/seabios into libreboot releases Signed-off-by: Leah Rowe --- script/update/project/release | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/update/project/release b/script/update/project/release index 69772415..a20703ac 100755 --- a/script/update/project/release +++ b/script/update/project/release @@ -93,6 +93,11 @@ fetch_trees() for x in ${_f}; do ./update project trees -f "${x}" || err "${_xm}: fetch ${x}" done + for x in config/*/build.list; do + [ -f "${x}" ] || continue + xp="${x#*/}"; xp="${xp%/*}" + [ -L "${xp}" ] || x_ rm -Rf "src/${xp}/${xp}" + done rm -Rf */.git* */*/.git* */*/*/.git* */*/*/*/.git* */*/*/*/*/.git* \ */*/*/*/*/*/.git* */*/*/*/*/*/*/.git* */*/*/*/*/*/*/*/.git* \ .git || err "${_xm}: rm-dotgit"