Hi Peter,
On Tue, Jan 25, 2011 at 11:02:32PM +0100, Peter Stuge wrote:
+HOST ?= arm-none-eabi-
Remove that line.
# this is the prefix of your cross-toolchain programs
-CROSS_TOOL_PREFIX=arm-elf-
+CROSS_TOOL_PREFIX ?= $(HOST)-
Leave that unchanged.
TOPDIR=$(shell pwd)
OSMOCORE_CONFIGURE_ENV=
LIBOSMOCORE_LIBS=$(TOPDIR)/shared/libosmocore/build-host/src/.libs/libosmocore.a \
@@ -37,9 +40,9 @@ shared/libosmocore/build-target:
shared/libosmocore/build-target/Makefile: shared/libosmocore/configure
shared/libosmocore/build-target
cd shared/libosmocore/build-target && ../configure \
- --host=arm-elf-linux --disable-vty --enable-panic-infloop \
+ --host=$(HOST) --disable-vty --enable-panic-infloop \
Use here instead: --host=$(CROSS_TOOL_PREFIX:-=)
--disable-shared --disable-talloc --disable-tests
\
- CC="$(CROSS_TOOL_PREFIX)gcc" CFLAGS="-Os -ffunction-sections
-I$(TOPDIR)/target/firmware/include -nostartfiles -nodefaultlibs"
+ CFLAGS="-Os -ffunction-sections -I$(TOPDIR)/target/firmware/include -nostartfiles
-nodefaultlibs"
shared/libosmocore/build-target/src/.libs/libosmocore.a:
shared/libosmocore/build-target/Makefile
cd shared/libosmocore/build-target && make
Regards,
Michael