clean up pico-serprog for release
moved cmake files into a separate build directory. this can just be deleted for the source release. might as well use cmake for the actual build too. that makes repeated builds faster for some reason. Signed-off-by: Riku Viitanen <riku.viitanen@protonmail.com>btrfsvols
parent
34d3629ebf
commit
7dc8632514
|
@ -169,6 +169,8 @@ purge_files()
|
|||
err "purge_files rm-rf2: can't purge .git files/directories"
|
||||
rm -Rf cbutils || err "purge_files: can't remove ${srcdir}/cbutils/"
|
||||
rm -Rf elf || err "purge_files: can't remove ${srcdir}/elf/"
|
||||
rm -Rf util-fw/rp2040/pico-serprog/build
|
||||
|| err "purge_files: can't remove pico-serprog/build"
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -51,14 +51,14 @@ main()
|
|||
buildrom()
|
||||
{
|
||||
board=${1}
|
||||
(cd ${src_dir}; cmake -DPICO_BOARD="${board}" \
|
||||
-DPICO_SDK_PATH="${sdk_dir}" "${src_dir}" || \
|
||||
err "can't cmake ${src_dir}")
|
||||
make -C ${src_dir} clean
|
||||
make -C ${src_dir}
|
||||
mv ${src_dir}/pico_serprog.uf2 \
|
||||
cmake -DPICO_BOARD="${board}" -DPICO_SDK_PATH="${sdk_dir}" \
|
||||
-B "${src_dir}/build" "${src_dir}" \
|
||||
|| err "can't cmake ${src_dir}"
|
||||
cmake --build "${src_dir}/build"
|
||||
mv ${src_dir}/build/pico_serprog.uf2 \
|
||||
${serprog_release_dir}/serprog_${board}.uf2 \
|
||||
|| err "${board} serprog build failed!"
|
||||
printf "output to ${serprog_release_dir}/serprog_${board}.uf2\n"
|
||||
}
|
||||
|
||||
main $@
|
||||
|
|
Loading…
Reference in New Issue