summaryrefslogtreecommitdiffstats
path: root/cnf/make.conf.arm.diff
blob: e6924ad50d009d56913674ac1a2baf3dd35d5cb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--- make.conf	2006-03-19 18:40:11.000000000 +0100
+++ make.conf.arm	2006-03-19 18:26:21.000000000 +0100
@@ -23,6 +23,19 @@
 # Example:
 #USE="X gtk gnome -alsa"
 
+# Host Setting
+# ============
+#
+# DO NOT CHANGE THIS SETTING UNLESS YOU ARE USING STAGE1!
+# It's very important you select the right CHOST from the start.  A wrong
+# CHOST could easily lead to weird errors either in compiling or running.
+#
+# Netwinder (or any StrongArm110): armv4l-unknown-linux-gnu
+# nslu2: armvbe-unknown-linux-gnu
+# Generic ARM: arm-unknown-linux-gnu
+#
+CHOST="armv4l-unknown-linux-gnu"
+
 # Host and optimization settings 
 # ==============================
 #
@@ -33,10 +46,22 @@
 # package (and in some cases the libraries it uses) at default optimizations
 # before reporting errors to developers.
 #
-# Please refer to the GCC manual for a list of possible values.
-#
-#CFLAGS="-O2 -pipe"
+# -mcpu=<cpu-type> means optimize code for the particular type of CPU without
+# breaking compatibility with other CPUs.
 #
+# -march=<cpu-type> means to take full advantage of the ABI and instructions
+# for the particular CPU; this will break compatibility with older CPUs (for
+# example, -march=xscale code will not run on a StrongARM 11x0, and
+# -march=strongarm110 code will not run on a regular StrongARM).
+#
+# For a full listing of supported CPU models, please refer to the GCC website:
+# http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/ARM-Options.html
+#
+# Netwinder:
+#CFLAGS="-mcpu=strongarm110 -O2 -pipe"
+# NSLU2:
+#CFLAGS="-mcpu=armeb -O2 -pipe"
+
 # If you set a CFLAGS above, then this line will set your default C++ flags to
 # the same settings.
 #CXXFLAGS="${CFLAGS}"