git: 18aef07cfac4 - main - beinstall: Pass -B to etcupdate

From: Jessica Clarke <jrtc27_at_FreeBSD.org>
Date: Wed, 28 Aug 2024 22:43:32 UTC
The branch main has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=18aef07cfac41fde763e1328366cc6e334bb9254

commit 18aef07cfac41fde763e1328366cc6e334bb9254
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2024-08-28 22:36:56 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2024-08-28 22:36:56 +0000

    beinstall: Pass -B to etcupdate
    
    Since commit 246364454fc1 ("etcupdate: Use new buildetc and installetc
    targets when available"), beinstall has been much slower for the
    etcupdate step, as it's been doing a kernel-toolchain (admittedly
    without LLVM itself being built). Given beinstall requires an object
    tree to already have been built and just installs it, we can pass -B to
    beinstall to reuse that tree rather than build kernel-toolchain in
    another one.
    
    Reported by:    olivier
    Tested by:      olivier
    MFC after:      1 week
---
 tools/build/beinstall.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/build/beinstall.sh b/tools/build/beinstall.sh
index 7f7481b671f5..dcafd1030c91 100755
--- a/tools/build/beinstall.sh
+++ b/tools/build/beinstall.sh
@@ -48,7 +48,7 @@ NO_PKG_UPGRADE="${NO_PKG_UPGRADE:-""}"
 # Config updater - 'etcupdate' is supported.  Set to an empty string to skip.
 CONFIG_UPDATER="${CONFIG_UPDATER:-"etcupdate"}"
 # Flags for etcupdate if used.
-ETCUPDATE_FLAGS="${ETCUPDATE_FLAGS:-"-F"}"
+ETCUPDATE_FLAGS="${ETCUPDATE_FLAGS:-"-BF"}"
 
 
 ########################################################################