mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master] Revert "MAKEALL: query CONFIG_64BIT before make instead of CONFIG_ARM64 after"
@ 2025-09-30 10:38 Ahmad Fatoum
  2025-09-30 10:40 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-09-30 10:38 UTC (permalink / raw)
  To: barebox; +Cc: sha, Ahmad Fatoum

The commit being reverted here assumed that all defconfigs have a
corresponding file, but this doesn't hold true for generated configs
like multi_v8_efi_defconfig.

The issue that was meant to be addressed disappeared after rerunning
the test, so it might have been just a fluke (or triggered by shuffle,
although I was unable to reproduce with the same seed).

Until better understood, reinstate the old code.

Fixes: bdf0a4da1d28 ("MAKEALL: query CONFIG_64BIT before make instead of CONFIG_ARM64 after")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 MAKEALL | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/MAKEALL b/MAKEALL
index abce297a9bf8..d47f0204f1f1 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -135,10 +135,13 @@ do_build_defconfig() {
 	[ -n "$logdir" ] && mkdir -p "${logdir}/${defconfig}"
 
 	MAKE="make -j${JOBS} ARCH=${arch} O=${BUILDDIR}"
+	${MAKE} ${defconfig} &>/dev/null
 
-	grep -q "CONFIG_64BIT=y" arch/${arch}/configs/${defconfig}
-	if [ $? = 0 ]; then
-		arch=arm64
+	if [ ${arch} = "arm" ]; then
+		grep -q "CONFIG_ARM64=y" ${BUILDDIR}/.config
+		if [ $? = 0 ]; then
+			arch=arm64
+		fi
 	fi
 
 	tmp=$(echo "${defconfig}" | tr - _)
-- 
2.47.3




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-30 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-30 10:38 [PATCH master] Revert "MAKEALL: query CONFIG_64BIT before make instead of CONFIG_ARM64 after" Ahmad Fatoum
2025-09-30 10:40 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox