[PATCH 4/4] toplevel Makefile: accept arguments for host ./configure calls

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Alex Badea vamposdecampos at gmail.com
Wed Nov 17 21:35:18 UTC 2010


Append $(HOST_CONFARGS) to ./configure scripts for 'host' applications.

This allows e.g. cross-compiling on an x86 build system for an OpenMoko
gta0x host, using an invocation such as:

$ make HOST_CONFARGS="--host=arm-angstrom-linux-gnueabi"

Signed-off-by: Alex Badea <vamposdecampos at gmail.com>
---
 src/Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index c8caff0..1567d2d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -23,7 +23,7 @@ shared/libosmocore/configure: shared/libosmocore/configure.in
 	cd shared/libosmocore && autoreconf -i
 
 shared/libosmocore/build-host/Makefile: shared/libosmocore/configure shared/libosmocore/build-host
-	cd shared/libosmocore/build-host && ../configure
+	cd shared/libosmocore/build-host && ../configure $(HOST_CONFARGS)
 
 shared/libosmocore/build-host/src/.libs/libosmocore.la: shared/libosmocore/build-host/Makefile
 	cd shared/libosmocore/build-host && make
@@ -51,7 +51,7 @@ host/osmocon/configure: host/osmocon/configure.ac
 	cd host/osmocon && autoreconf -i
 
 host/osmocon/Makefile: host/osmocon/configure
-	cd host/osmocon && $(OSMOCORE_CONFIGURE_ENV) ./configure
+	cd host/osmocon && $(OSMOCORE_CONFIGURE_ENV) ./configure $(HOST_CONFARGS)
 
 host/osmocon/osmocon: host/osmocon/Makefile libosmocore-host
 	make -C host/osmocon
@@ -64,7 +64,7 @@ host/gsmmap/configure: host/gsmmap/configure.ac
 	cd host/gsmmap && autoreconf -i
 
 host/gsmmap/Makefile: host/gsmmap/configure
-	cd host/gsmmap && $(OSMOCORE_CONFIGURE_ENV) ./configure
+	cd host/gsmmap && $(OSMOCORE_CONFIGURE_ENV) ./configure $(HOST_CONFARGS)
 
 host/gsmmap/gsmmap: host/gsmmap/Makefile libosmocore-host
 	make -C host/gsmmap
@@ -77,7 +77,7 @@ host/layer23/configure: host/layer23/configure.ac
 	cd host/layer23 && autoreconf -i
 
 host/layer23/Makefile: host/layer23/configure
-	cd host/layer23 && $(OSMOCORE_CONFIGURE_ENV) ./configure
+	cd host/layer23 && $(OSMOCORE_CONFIGURE_ENV) ./configure $(HOST_CONFARGS)
 
 host/layer23/layer23: host/layer23/Makefile libosmocore-host
 	make -C host/layer23
-- 
1.7.0.4





More information about the baseband-devel mailing list