Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

patch for build.sh to guess native MACHINE_ARCH



hi folks.


anyone ever tried to run build.sh on a system like evbarm
and it defaulted to "earm", even on arm64 systems?

this simple patch makes build.sh guess MACHINE_ARCH with
MACHINE, instead of then finding a default on the list.

this only changes the behaviour when you run build.sh
without any -m or -a option and it guesses from the local
system.  with this patch, it will default to build for
the native host.

comments?


.mrg.


Index: build.sh
===================================================================
RCS file: /cvsroot/src/build.sh,v
retrieving revision 1.331
diff -p -u -r1.331 build.sh
--- build.sh	25 Apr 2019 05:12:49 -0000	1.331
+++ build.sh	30 Apr 2019 09:13:52 -0000
@@ -1416,6 +1416,7 @@ parseoptions()
 		[ "${uname_s}" = "NetBSD" ] ||
 		    bomb "MACHINE must be set, or -m must be used, for cross builds."
 		MACHINE=${uname_m}
+		MACHINE_ARCH=${uname_p}
 	fi
 	if $opt_m && ! $opt_a; then
 		# Settings implied by the command line -m option


Home | Main Index | Thread Index | Old Index