summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-20 20:14:25 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-20 20:14:25 +0000
commitde19fac457e61e63b0b2f21d018e3ead3a902a6b (patch)
tree159fa500d8de3ba1358b9af61be7a89f44c3e579 /Makefile
parentbc0ed0d97a8dbc595e828d5782f7b517f54fc6a9 (diff)
mention mipsel
Make soft float easier to enable/disable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 78dae94e4..a4cda2b0f 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,7 @@
ARCH:=i386
#ARCH:=arm
#ARCH:=mips
+#ARCH:=mipsel
#ARCH:=powerpc
#ARCH:=sh4
#ARCH:=cris
@@ -85,12 +86,10 @@ OPTIMIZE_FOR_CPU=$(ARCH)
# -msoft-float flag. To avoid CFLAGS problems, you may want to use
# scripts similar to those in the build*/staging_dir/bin directory.
# Uncomment the next 2 lines to build a soft-float toolchain and rootfs.
-#SOFT_FLOAT_CONFIG_OPTION=--without-float
-#TARGET_SOFT_FLOAT=-msoft-float
+SOFT_FLOAT:=false
TARGET_OPTIMIZATION=-Os
TARGET_DEBUGGING= #-g
-TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) $(TARGET_SOFT_FLOAT)
# Any additional gcc options you may want to include....
EXTRA_GCC_CONFIG_OPTIONS=
@@ -206,6 +205,11 @@ else
ARCH_FPU_SUFFIX:=_nofpu
endif
+ifeq ($(SOFT_FLOAT),true)
+SOFT_FLOAT_CONFIG_OPTION=--without-float
+TARGET_SOFT_FLOAT=-msoft-float
+endif
+
ifeq ($(ENABLE_LOCALE),true)
EXTRA_GCC_CONFIG_OPTIONS += --enable-clocale=gnu
endif
@@ -213,6 +217,7 @@ endif
ifneq ($(BUILD_WITH_LARGEFILE),true)
DISABLE_LARGEFILE= --disable-largefile
endif
+TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING) $(TARGET_SOFT_FLOAT)
HOSTCC:=gcc
BASE_DIR:=${shell pwd}