mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 23:09:40 +02:00
update/project/*: merge to update/project/trees
Just one script. Just one! Well, two, but the 2nd one already existed: logic in update/project/trees and update/project/repo was merged into include/git.sh and update/project/build was renamed to update/project/trees; an -f option was added, which calls the functions under git.sh so git clones are now handled by the main build script (for handling makefiles and defconfigs) but the logic there is a stub, where git.sh does all the actual heavy lifting this cuts the file count down by two, and reduces sloccount a reasonable amount because much of the logic already exists in the build script, when it comes to handling targets. git.sh was adjusted to integrate with this, rather than act standalone Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -44,11 +44,10 @@ create_release_directory()
|
||||
|
||||
download_modules()
|
||||
{
|
||||
for modname in ${trees_fetch_list}; do
|
||||
[ -d "src/${modname}" ] || xx_ ./update project trees ${modname}
|
||||
done
|
||||
for modname in ${simple_fetch_list} ${download_only_list}; do
|
||||
[ -d "src/${modname}/" ] || xx_ ./update project repo ${modname}
|
||||
for modname in ${trees_fetch_list} ${simple_fetch_list} \
|
||||
${download_only_list}; do
|
||||
[ -d "src/${modname}/" ] || \
|
||||
xx_ ./update project trees -f ${modname}
|
||||
done
|
||||
}
|
||||
|
||||
@@ -79,12 +78,12 @@ purge_files()
|
||||
(
|
||||
xx_ cd "${srcdir}"
|
||||
[ ! -d "src/coreboot/default/util/kbc1126" ] || \
|
||||
xx_ ./update project build -c "src/coreboot/default/util/kbc1126"
|
||||
xx_ ./update project build -x coreboot
|
||||
xx_ ./update project trees -c "src/coreboot/default/util/kbc1126"
|
||||
xx_ ./update project trees -x coreboot
|
||||
for p in u-boot seabios coreboot; do
|
||||
xx_ ./update project build -c "${p}"
|
||||
xx_ ./update project trees -c "${p}"
|
||||
done
|
||||
xx_ ./update project build -c bios_extract flashrom grub uefitool \
|
||||
xx_ ./update project trees -c bios_extract flashrom grub uefitool \
|
||||
stm32-vserprog stm32-vserprog/libopencm3 util/* memtest86plus
|
||||
|
||||
xx_ rm -Rf .git */.git* */*/.git* */*/*/.git* */*/*/*/.git* \
|
||||
|
||||
Reference in New Issue
Block a user