fix(buildscript): use reconfigure instead of rebuild

Reconfigure starts one stage before rebuild, just to be safe. It is the earliest step after the source download and patching.

Signed-off-by: desertwitch <24509509+desertwitch@users.noreply.github.com>
This commit is contained in:
desertwitch
2025-11-20 12:15:01 +01:00
parent 2134454147
commit 589f08752a
2 changed files with 15 additions and 7 deletions

View File

@@ -300,7 +300,9 @@ build_config() {
echo "============================================"
echo
for pkg in "${ALWAYS_REBUILD_PKGS[@]}"; do
if ! run_cmd make "${pkg}-rebuild"; then
# Reconfigure starts one stage before rebuild, just to be safe.
# It is the earliest step after the source download and patching.
if ! run_cmd make "${pkg}-reconfigure"; then
build_config_failed "$config" "$arch" "$log_file"
return 1
fi
@@ -337,7 +339,9 @@ build_config() {
echo "============================================"
echo
for pkg in "${ALWAYS_REBUILD_PKGS[@]}"; do
if ! run_cmd make "${pkg}-rebuild"; then
# Reconfigure starts one stage before rebuild, just to be safe.
# It is the earliest step after the source download and patching.
if ! run_cmd make "${pkg}-reconfigure"; then
build_config_failed "$config" "$arch" "$log_file"
return 1
fi