summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/ixp4xx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/machine/include/ixp4xx.conf')
-rw-r--r--meta/conf/machine/include/ixp4xx.conf174
1 files changed, 174 insertions, 0 deletions
diff --git a/meta/conf/machine/include/ixp4xx.conf b/meta/conf/machine/include/ixp4xx.conf
new file mode 100644
index 0000000000..93befb92ce
--- /dev/null
+++ b/meta/conf/machine/include/ixp4xx.conf
@@ -0,0 +1,174 @@
1#@TYPE: Machine configuration
2#@NAME: ixp4xx
3#@DESCRIPTION: genric machine configuration for ixp4xx platforms
4
5#-------------------------------------------------------------------------------
6# INPUTS
7#-------------------------------------------------------------------------------
8# conf/${DISTRO}.conf is included after this file and should be used to modify
9# variables identified as 'INPUTS' to the required values for the DISTRO, this
10# will cause the board specific settings (which depend for the most part on the
11# exact CPU used) to be set correctly within this file. The results are the
12# variables identifies here as 'OUTPUTS'
13#
14#variable = "default"
15# <possible values>
16# description
17
18ARCH_BYTE_SEX = "be"
19# "be" "le"
20# The memory byte sex and (on correctly implemented hardware - the IXP4XX is
21# correct) the byte sex of the buses within the system. 'be' (big-endian)
22# means that the first byte is the most significant byte on a bus, 'le'
23# (little-endian) means that the first byte is the least significant byte.
24
25ARM_INSTRUCTION_SET = "arm"
26# "arm" "thumb"
27# The instruction set the compiler should use when generating application
28# code. The kernel is always compiled with arm code at present. arm code
29# is the original 32 bit ARM instruction set, thumb code is the 16 bit
30# encoded RISC sub-set. Thumb code is smaller (maybe 70% of the ARM size)
31# but requires more instructions (140% for 70% smaller code) so may be
32# slower.
33
34THUMB_INTERWORK = "yes"
35# "yes" "no"
36# Whether to compile with code to allow interworking between the two
37# instruction sets. This allows thumb code to be executed on a primarily
38# arm system and vice versa. It is strongly recommended that DISTROs not
39# turn this off - the actual cost is very small.
40
41DISTRO_BASE = ""
42# "" ":<base>"
43# If given this must be the name of a 'distro' to add to the bitbake OVERRIDES
44# after ${DISTRO}, this allows different distros to share a common base of
45# overrides. The value given must include a leading ':' or chaos will result.
46
47IXP4XX_SUFFIX = "${MACHINE_ARCH}"
48# <string>
49# Kernel suffix - 'ixp4xxbe' or 'ixp4xxle' for a truely generic image, controls
50# the suffix on the name of the generated zImage, override in the DISTRO
51# configuration if patches or defconfig are changed for the DISTRO.
52
53#-------------------------------------------------------------------------------
54# OUTPUTS
55#-------------------------------------------------------------------------------
56
57#OVERRIDES
58# The standard ':' separated list of overrides used by bitbake - see the
59# basic setting in bitbake.conf. This list is based on that used for the
60# standard setting however :<base>, :thumb and :thumb-interwork will be
61# inserted at appropriate points if a base distro, default use of thumb or
62# arm/thumb interworking are enabled in the inputs.
63OVERRIDE_THUMB = "${@['', ':thumb'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) == 'thumb']}"
64OVERRIDE_INTERWORK = "${@['', ':thumb-interwork'][bb.data.getVar('THUMB_INTERWORK', d, 1) == 'yes']}"
65OVERRIDES = "local:${MACHINE}:ixp4xx:${DISTRO}${DISTRO_BASE}:${TARGET_OS}:${TARGET_ARCH}${OVERRIDE_THUMB}${OVERRIDE_INTERWORK}:build-${BUILD_OS}:fail-fast"
66
67# TARGET_CC_ARCH
68# TARGET_CC_KERNEL_ARCH
69# TARGET_LD_ARCH
70# TARGET_LD_KERNEL_ARCH
71# Compiler and linker options for application code and kernel code. These
72# options ensure that the compiler has the correct settings for the selected
73# instruction set and interworking.
74ARM_INTERWORK_M_OPT = "${@['-mno-thumb-interwork', '-mthumb-interwork'][bb.data.getVar('THUMB_INTERWORK', d, 1) == 'yes']}"
75ARM_THUMB_M_OPT = "${@['-mno-thumb', '-mthumb'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) == 'thumb']}"
76#
77TARGET_CC_ARCH = "-march=armv5te -mtune=xscale ${ARM_INTERWORK_M_OPT} ${ARM_THUMB_M_OPT}"
78TARGET_CC_KERNEL_ARCH = "-march=armv5te -mtune=xscale -mno-thumb-interwork -mno-thumb"
79TARGET_LD_ARCH = ""
80TARGET_LD_KERNEL_ARCH = ""
81
82# FULL_OPTIMIZATION
83# Optimization settings. Os works fine and is significantly better than O2.
84# The other settings are somewhat arbitrary. The optimisations chosen here
85# include the ones which 'break' symbolic debugging (because the compiler does
86# not include enough information to allow the debugger to know where given
87# values are.) The -fno options are an attempt to cancel explicit use of space
88# consuming options found in some packages (this isn't a complete list, this is
89# just the ones which package writers seem to know about and abuse).
90FULL_OPTIMIZATION = "-Os -fomit-frame-pointer -frename-registers \
91 -fno-unroll-loops -fno-inline-functions \
92 -fweb -funit-at-a-time"
93
94# TARGET_ARCH
95# The correct setting for the system endianness (ARCH_BYTE_SEX). This will
96# be arm (le) or armeb (be) - it is difficult to be more precise in the
97# setting because of the large number of ways it is used within OpenEmbedded.
98TARGET_ARCH = "${@['armeb', 'arm'][bb.data.getVar('ARCH_BYTE_SEX', d, 1) == 'le']}"
99
100# TARGET_PACKAGE_ARCH [not used]
101# The correct setting for the generated packages. This corresponds to the
102# -march flag passed to the compiler because that limits the architectures
103# on which the generated code will run.
104BYTE_SEX_CHAR = "${@['b', 'l'][bb.data.getVar('ARCH_BYTE_SEX', d, 1) == 'le']}"
105TARGET_PACKAGE_ARCH_BASE = "${@['armv5te', 'thumbv5t'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) == 'thumb']}"
106TARGET_PACKAGE_ARCH = "${TARGET_PACKAGE_ARCH_BASE}${BYTE_SEX_CHAR}"
107
108# MACHINE_ARCH
109# The correct setting for packages which are specific to the machine, this
110# defaults to ${MACHINE} in bitbake.conf, however it is set to ixp4xx here
111# because everything built here is no more specific than that.
112MACHINE_ARCH = "ixp4xx${ARCH_BYTE_SEX}"
113
114# IPKG_EXTRA_ARCHS
115# The full list of package architectures which should run on the system.
116# This takes into account both the board level issues and the INPUTS set
117# by the distro. The arm list is derived from the architecture settings
118# known to gcc, the thumb list is then derived from that (only the 't'
119# architectures of course).
120#[not used]: TARGET_ARCH is handled below because it is also currently
121# used for thumb packages.
122#ARM_ARCHITECTURES = "${TARGET_ARCH} armv2${BYTE_SEX_CHAR} armv2a${BYTE_SEX_CHAR} armv3${BYTE_SEX_CHAR} armv3m${BYTE_SEX_CHAR} armv4${BYTE_SEX_CHAR} armv4t${BYTE_SEX_CHAR} armv5${BYTE_SEX_CHAR} armv5t${BYTE_SEX_CHAR} armv5e${BYTE_SEX_CHAR} armv5te${BYTE_SEX_CHAR} xscale${BYTE_SEX_CHAR}"
123ARM_ARCHITECTURES = "armv2${BYTE_SEX_CHAR} armv2a${BYTE_SEX_CHAR} armv3${BYTE_SEX_CHAR} armv3m${BYTE_SEX_CHAR} armv4${BYTE_SEX_CHAR} armv4t${BYTE_SEX_CHAR} armv5${BYTE_SEX_CHAR} armv5t${BYTE_SEX_CHAR} armv5e${BYTE_SEX_CHAR} armv5te${BYTE_SEX_CHAR} xscale${BYTE_SEX_CHAR}"
124THUMB_ARCHITECTURES = "thumbe${BYTE_SEX_CHAR} thumbv4t${BYTE_SEX_CHAR} thumbv5t${BYTE_SEX_CHAR}"
125
126# NOTE: this list contains just the things which rootfs_ipk.bbclass does
127# not add, rootfs_ipk.bbclass evaluates:
128#
129# ipkgarchs="all any noarch ${TARGET_ARCH} ${IPKG_EXTRA_ARCHS} ${MACHINE}"
130#
131# This is a priority ordered list - most desireable architecture at the end,
132# so put <ARM_INSTRUCTION_SET>_ARCHITECTURES at the end and, if
133# THUMB_INTERWORK precede this with the other architectures.
134IPKG_EXTRA_ARCHS = "ixp4xx ${MACHINE} \
135 ${@(lambda arch_thumb, arch_arm, is_arm, interwork: \
136 (interwork and (is_arm and arch_thumb or arch_arm) + ' ' or '') \
137 + '${TARGET_ARCH} ' + (is_arm and arch_arm or arch_thumb)) \
138 (bb.data.getVar('THUMB_ARCHITECTURES', d, 1), \
139 bb.data.getVar('ARM_ARCHITECTURES', d, 1), \
140 bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) != 'thumb', \
141 bb.data.getVar('THUMB_INTERWORK', d, 1) == 'yes')} \
142 ${MACHINE_ARCH} ${MACHINE}${ARCH_BYTE_SEX}"
143
144# IPKG_ARCH_LIST [not used]
145# This is used to override the ipkgarchs settings in rootfs_ipk.bbclass, allowing
146# the removal of the raw "${MACHINE}" from the end of the list. ${MACHINE} and
147# ixp4xx are included at the start (lower priority) as the non-byte-sex specific
148# versions.
149IPKG_ARCH_LIST = "all any noarch ixp4xx ${MACHINE} ${IPKG_EXTRA_ARCHS}"
150
151#-------------------------------------------------------------------------------
152# Package versions
153#-------------------------------------------------------------------------------
154# Warning: these are shared across the different machine and distro
155# configurations but can be overridden therein if required.
156SRCDATE_ipkg-utils ?= "20060106"
157SRCDATE_ipkg-utils-native ?= "20060106"
158SRCDATE_ipkg-link ?= "20060106"
159SRCDATE_irssi ?= "20050930"
160
161CVS_TARBALL_STASH = "http://sources.nslu2-linux.org/sources/"
162INHERIT += "nslu2-mirrors"
163
164PREFERRED_VERSION_ipkg ?= "0.99.154"
165PREFERRED_VERSION_ipkg-native ?= "0.99.154"
166
167#-------------------------------------------------------------------------------
168# Board defaults
169#-------------------------------------------------------------------------------
170# These values are board specific but they seem to be common to a large number
171# of boards so are reasonable defaults.
172SERIAL_CONSOLE = "115200 ttyS0"
173KERNEL_CONSOLE = "ttyS0,115200n8"
174USE_VT = "0"