mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 23:01:33 +02:00
handle/config/file: unified distclean handling
use build/src/for -c which does the same thing, specifically: try distclean, then clean, or fail Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -223,8 +223,7 @@ check_config()
|
|||||||
|
|
||||||
run_make_command()
|
run_make_command()
|
||||||
{
|
{
|
||||||
make -C "${codedir}" distclean || \
|
./build src for -c "${codedir}"
|
||||||
make -C "${codedir}" clean || \
|
|
||||||
fail "run_make_command: make distclean/clean failed"
|
fail "run_make_command: make distclean/clean failed"
|
||||||
|
|
||||||
cp "${config}" "${codedir}/.config" || \
|
cp "${config}" "${codedir}/.config" || \
|
||||||
@@ -248,17 +247,13 @@ copy_elf()
|
|||||||
fail "copy_elf: cannot copy elf file"
|
fail "copy_elf: cannot copy elf file"
|
||||||
done
|
done
|
||||||
|
|
||||||
make -C "${codedir}" distclean || \
|
./handle src for -c "${codedir}" || \
|
||||||
make -C "${codedir}" clean || \
|
|
||||||
fail "copy_elf: clean: ${codedir} (${project}/${target})"
|
fail "copy_elf: clean: ${codedir} (${project}/${target})"
|
||||||
}
|
}
|
||||||
|
|
||||||
fail()
|
fail()
|
||||||
{
|
{
|
||||||
[ -z "${codedir}" ] || \
|
[ -z "${codedir}" ] || ./handle src for -c "${codedir}" || :
|
||||||
make -C "${codedir}" distclean \
|
|
||||||
|| make -C "${codedir}" clean || :
|
|
||||||
|
|
||||||
err "${1}"
|
err "${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user