3 #@DESCRIPTION: Release independent distribution configuration for Angstrom
5 # Preserve original DISTRO value
6 USERDISTRO := "${DISTRO}"
8 DISTRO_NAME = "Angstrom"
10 TARGET_VENDOR = "-angstrom"
12 # Add FEED_ARCH to overrides
13 OVERRIDES .= ":${FEED_ARCH}"
15 # Put links to sources in deploy/sources to make it easier for people to be GPL compliant
16 INHERIT += "src_distribute_local"
17 SRC_DIST_LOCAL ?= "symlink"
19 # Can be "glibc", "eglibc" or "uclibc"
20 ANGSTROMLIBC ?= "glibc"
21 PSTAGE_EXTRAPATH = "${ANGSTROMLIBC}"
23 CACHE = "${TMPDIR}/cache/${ANGSTROMLIBC}/${MACHINE}"
24 DEPLOY_DIR = "${TMPDIR}/deploy/${ANGSTROMLIBC}"
25 require conf/distro/include/angstrom-${ANGSTROMLIBC}.inc
27 # ARM920T and up can use thumb mode to decrease binary size at the expense of speed
28 # (the complete story is a bit more nuanced due to cache starvation)
29 # Angstrom turns on thumb for armv4t machine according to this RFC:
30 # http://lists.linuxtogo.org/pipermail/angstrom-distro-devel/2008-October/002714.html
32 # We can't do ARM_INSTRUCTION_SET_armv4t since that will un-overridable in recipes like gcc
33 ANGSTROM_ARM_INSTRUCTION_SET ?= "arm"
34 ANGSTROM_ARM_INSTRUCTION_SET_armv4t = "thumb"
35 ANGSTROM_ARM_INSTRUCTION_SET_armv5te = "thumb"
36 ANGSTROM_ARM_INSTRUCTION_SET_armv5teb = "thumb"
39 ARM_INSTRUCTION_SET = "${ANGSTROM_ARM_INSTRUCTION_SET}"
41 # The instruction set the compiler should use when generating application
42 # code. The kernel is always compiled with arm code at present. arm code
43 # is the original 32 bit ARM instruction set, thumb code is the 16 bit
44 # encoded RISC sub-set. Thumb code is smaller (maybe 70% of the ARM size)
45 # but requires more instructions (140% for 70% smaller code) so may be
48 THUMB_INTERWORK = "yes"
50 # Whether to compile with code to allow interworking between the two
51 # instruction sets. This allows thumb code to be executed on a primarily
52 # arm system and vice versa. It is strongly recommended that DISTROs not
53 # turn this off - the actual cost is very small.
56 #Use this variable in feeds and other parts that need a URI
57 ANGSTROM_URI ?= "http://www.angstrom-distribution.org"
59 #Use this variable to select which recipe you want to use to get feed configs (/etc/ipkg/*, /etc/apt/sources.list)
60 # usefull for derivative distros and local testing
61 # As this is runtime we can't and won't use virtual/feed-configs
62 ANGSTROM_FEED_CONFIGS ?= "angstrom-feed-configs"
64 #Set the default maintainer to angstrom-dev
65 MAINTAINER = "Angstrom Developers <angstrom-distro-devel@linuxtogo.org>"
67 #use debian style naming
70 #activate config checker
73 #make devshell available as task
76 #use angstrom source mirrors to combat 404s
77 INHERIT += "angstrom-mirrors"
79 #run QA tests on builds and packages and log them
83 #save statistical info on images
86 ANGSTROM_PKG_FORMAT ?= "ipk"
87 require conf/distro/include/angstrom-package-${ANGSTROM_PKG_FORMAT}.inc
90 # We don't want to keep OABI compat
92 # Do keep OABI compat for om-gta01 to keep the gllin binary working
93 ARM_KEEP_OABI_pn-linux-openmoko-2.6.24_om-gta01 = "1"
94 ARM_KEEP_OABI_pn-linux-openmoko-2.6.28_om-gta01 = "1"
97 #Generate locales on the buildsystem instead of on the target. Speeds up first boot, set to "1" to enable
98 PREFERRED_PROVIDER_qemu-native = "qemu-native"
99 ENABLE_BINARY_LOCALE_GENERATION ?= "1"
101 # We only want to build UTF8 locales
102 LOCALE_UTF8_ONLY = "1"
104 #qemu doesn't like armv6/eabi/vfp
105 ENABLE_BINARY_LOCALE_GENERATION_armv6 = "0"
106 ENABLE_BINARY_LOCALE_GENERATION_armv6-novfp = "0"
107 ENABLE_BINARY_LOCALE_GENERATION_armv7a = "0"
109 #qemu has taken a dislike to armeb as well
110 ENABLE_BINARY_LOCALE_GENERATION_armeb = "0"
112 #ARM EABI is softfloat by default, but let's make sure :)
113 #make it overridable for platforms with FPU, like ep93xx or i.mx31
114 TARGET_FPU_arm ?= "soft"
115 TARGET_FPU_armeb ?= "soft"
116 TARGET_FPU_ixp4xx ?= "soft"
117 TARGET_FPU_ppc405 ?= "soft"
119 TARGET_FPU_armv6 ?= "hard"
120 TARGET_FPU_armv6-novfp ?= "soft"
121 TARGET_FPU_armv7a ?= "hard"
122 TARGET_FPU_ppc603e ?= "hard"
124 # webkit-gtk and cairo have alignment issues with double instructions on armv5 so
126 TARGET_CC_ARCH_pn-webkit-gtk_armv5te = "-march=armv4t"
127 TARGET_CC_ARCH_pn-cairo_armv5te = "-march=armv4t"
129 #Set the right arch for the feeds
130 #Alphabetically sorted
132 FEED_ARCH ?= "${BASE_PACKAGE_ARCH}"
135 FEED_ARCH_bfin = "blackfin"
137 #Tweak packaging for strongarm machines since they can't use EABI
139 PACKAGE_EXTRA_ARCHS_collie = "arm-oabi"
140 PACKAGE_EXTRA_ARCHS_h3600 = "arm-oabi"
141 PACKAGE_EXTRA_ARCHS_h3800 = "arm-oabi"
142 PACKAGE_EXTRA_ARCHS_simpad = "arm-oabi"
143 PACKAGE_EXTRA_ARCHS_htcwallaby = "arm-oabi"
146 #Name the generated images in a sane way
147 IMAGE_NAME = "${DISTRO_NAME}-${IMAGE_BASENAME}-${ANGSTROMLIBC}-${ANGSTROM_PKG_FORMAT}-${DISTRO_VERSION}-${MACHINE}"
148 DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}"
150 # Angstrom *always* has some form of release config, so error out if someone thinks he knows better
151 DISTRO_CHECK := "${@bb.data.getVar("DISTRO_VERSION",d,1) or bb.fatal('Remove this line or set a dummy DISTRO_VERSION if you really want to build an unversioned distro')}"
154 # Configuration for tinderbox, so people only need:
155 # INHERIT += "tinderclient"
156 # in their local.conf
159 TINDER_MACHINE = "${MACHINE}-${ANGSTROMLIBC}-build-image"
161 # Which lof file to write to, which tree to report to
162 TINDER_LOG = "${TMPDIR}/tinder.log"
163 TINDER_TREE = "Angstrom"
166 TINDER_HOST ?= "ewi546.ewi.utwente.nl"
167 TINDER_URL ?= "/tinderbox"
169 # Which branch do we build
170 TINDER_BRANCH = "org.openembedded.dev"
173 ## 0 for rebuilding everything from scratch
174 ## 1 for incremental builds
177 ## Do a report at all
180 # Configuration for seppuku autobuilder, people only need to put:
181 # INHERIT += "seppuku oestats-client"
182 # SEPPUKU_USER = "your_bugzilla@user.id"
183 # SEPPUKU_PASS = "your_bugzilla_password"
184 # OESTATS_BUILDER = "your_name"
185 # in their local.conf
188 SEPPUKU_LOGIN = "http://bugs.openembedded.net/query.cgi?"
189 SEPPUKU_QUERY = "http://bugs.openembedded.net/buglist.cgi?"
190 SEPPUKU_NEWREPORT = "http://bugs.openembedded.net/post_bug.cgi?bug_file_loc=http%3A%2F%2F&version=Angstrom%20unstable&priority=P2&bug_severity=normal&op_sys=Linux&rep_platform=Other&"
191 SEPPUKU_ADDCOMMENT = "http://bugs.openembedded.net/process_bug.cgi?bug_file_loc=http%3A%2F%2F&version=Angstrom&priority=P2&bug_severity=normal&op_sys=Linux&rep_platform=Other&"
192 SEPPUKU_ATTACHMENT = "http://bugs.openembedded.net/attachment.cgi?"
193 SEPPUKU_AUTOBUILD = "1"
195 SEPPUKU_PRODUCT = "Openembedded"
196 SEPPUKU_COMPONENT = "org.openembedded.dev"
198 OESTATS_SERVER ?= "tinderbox.openembedded.net"
202 # We want images supporting the following features (for task-base)
203 DISTRO_FEATURES = "nfs smbfs wifi ppp alsa bluetooth ext2 vfat irda pcmcia usbgadget usbhost pci"