summaryrefslogtreecommitdiff
path: root/script/build/release/src
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-01 11:02:47 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-01 11:02:47 +0100
commit98d1ea5ae7fed70b3ecf40c15d9b7be1714e0b91 (patch)
tree63a71690c7076623a61b8e52d274e39baeb9ee82 /script/build/release/src
parent755f925ad9dc1e13078b958fba5d0cb79896adc5 (diff)
build/release/src: bugfix: actually copy cb/ub/sb
coreboot, seabios and u-boot were not being copied at all Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/release/src')
-rwxr-xr-xscript/build/release/src14
1 files changed, 14 insertions, 0 deletions
diff --git a/script/build/release/src b/script/build/release/src
index c390c63c..db737d2d 100755
--- a/script/build/release/src
+++ b/script/build/release/src
@@ -96,6 +96,20 @@ download_modules()
copy_files()
{
+ for dir in ${trees_fetch_list}; do
+ [ -d "${dir}" ] || continue
+ for subdir in "${dir}"/*; do
+ [ -d "${subdir}" ] || continue
+ [ "${subdir##*/}" = "${dir}" ] && continue
+ mkdir -p "${srcdir}/${dir}" || \
+ err "copy_files: !mkdir -p ${srcdir}/${dir}"
+ [ ! -d "${srcdir}/${dir}/${subdir##*/}" ] || \
+ rm -Rf "${srcdir}/${dir}/${subdir##*/}" || \
+ err "copy_f:can't rm ${srcdir}/${dir}/${subdir##*/}"
+ cp -R "${subdir}" "${srcdir}/${dir}/${subdir##*/}" || \
+ err "copy_f:can't cp ${srcdir}/${dir}/${subdir##*/}"
+ done
+ done
for dir in ${simple_fetch_list} ${dirlist}; do
cp -R "${dir}/" "${srcdir}/" || \
err "copy_files: !cp -R ${dir}/ ${srcdir}/"