update/trees: simplified defconfig copying
Signed-off-by: Leah Rowe <leah@libreboot.org>audit2-merge1
parent
45ac5f1741
commit
79b1a1fee2
|
@ -196,15 +196,13 @@ handle_makefile()
|
||||||
|
|
||||||
run_make_command || $err "handle_makefile $codedir: no makefile!"
|
run_make_command || $err "handle_makefile $codedir: no makefile!"
|
||||||
|
|
||||||
if [ -e "${codedir}/.git" ] && [ "$project" = "u-boot" ] && \
|
_copy=".config"
|
||||||
[ "$mode" = "distclean" ]; then
|
[ "$mode" = "savedefconfig" ] && _copy="defconfig"
|
||||||
x_ git -C "$codedir" clean -fdx
|
[ "${mode%config}" = "$mode" ] || x_ cp "$codedir/$_copy" "$config"
|
||||||
elif [ "$mode" = "oldconfig" ] || [ "$mode" = "olddefconfig" ] || \
|
|
||||||
[ "$mode" = "menuconfig" ] || [ "$mode" = "nconfig" ]; then
|
[ -e "${codedir}/.git" ] && [ "$project" = "u-boot" ] && \
|
||||||
x_ cp "${codedir}/.config" "$config"
|
[ "$mode" = "distclean" ] && \
|
||||||
elif [ "$mode" = "savedefconfig" ]; then
|
x_ git -C "$codedir" clean -fdx; return 0
|
||||||
x_ cp "${codedir}/defconfig" "$config"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run_make_command()
|
run_make_command()
|
||||||
|
|
Loading…
Reference in New Issue