conf/distro/jlime-donkey.conf : Added parted & Dialog to distro_rdepends
[vuplus_openembedded] / conf / distro / include / slugos.inc
1 #@TYPE: Distribution
2 #@NAME: SlugOS
3 #@DESCRIPTION: SlugOS Linux Distribution for the NSLU2
4
5 # WARNING: this file should not be used directly, use one of
6 # the supported slugos-???.conf instead:
7
8 # Explanation of the naming
9 #
10 # slugos-dist - the base distro configuration for an NSLU2
11 # slugos-[bl][at][gu] - a specific configuration encoded as follows:
12 #
13 #  b or l - big or little endian
14 #         set ARCH_BYTE_SEX to match
15 #
16 #  a or t - ARM or Thumb instructions in the low level libraries
17 #         set ARM_INSTRUCTION_SET to match
18 #
19 #  g or u - glibc or uclibc libc implementation
20 #         set TARGET_OS to match
21 #
22 # The following names are deprecated:
23 #
24 # openslug - the historical name of a canonical slugos-bag distro
25 #            also the name of a standard slugos-bag distro with a package feed
26 # ucslugc  - the historical (and obsolete) name of slugos-btu
27 #            also the name of a standard slugos-btu distro with a package feed
28 #
29
30 #----------------------------------------------------------------------------------
31 # STANDARD SLUGOS DEFINITIONS
32 #----------------------------------------------------------------------------------
33 # The following must be set in the top level distro file:
34 #
35 #DISTRO_NAME
36 #DISTRO_TYPE
37
38 # The following may be overridden to make sub-versions
39 SLUGOS_VERSION = "4.1"
40 DISTRO_REVISION ?= ""
41 DISTRO_VERSION ?= "${SLUGOS_VERSION}${DISTRO_REVISION}-${DISTRO_TYPE}"
42 # For release (only):
43 # DISTRO_FEED ?= "${SLUGOS_VERSION}-${DISTRO_TYPE}"
44 DISTRO_FEED ?= "unstable"
45
46 # The following must also be set, they define the basic format of the build
47 #
48 #ARCH_BYTE_SEX "be" or "le"
49 #ARM_INSTRUCTION_SET "arm" or "thumb"
50 #TARGET_OS "linux" or "linux-uclibc"
51 #SLUGOS_IMAGESEX "big-endian" or "little-endian" (JFFS2 format)
52
53 # The following need not be set, the defaults should be adequate
54 #USE_NLS = "no" or "yes"
55 USE_NLS ?= "no"
56
57 # To make errors easier to identify:
58 DISTRO_NAME ?= "INVALID-${ARCH_BYTE_SEX}-${ARM_INSTRUCTION_SET}-${TARGET_OS}"
59 DISTRO_TYPE ?= "INVALID"
60
61 # The following must not be changed.
62 TARGET_FPU = "soft"
63
64 # glib-2.0 builds require USE_NLS to be overridden
65 USE_NLS_glib-2.0 = "yes"
66
67 INHERIT += "package_ipk debian"
68
69 DISTRO_BASE = ":slugos"
70
71 # packages/meta/slugos-image.bb generates a binary image of the root file system
72 # with a name controlled by the following setting - it defaults to the top level
73 # ${DISTRO_NAME} and this should always be correct, but it may be too specific (e.g.
74 # if you change the DISTRO from one of the standard ones in a way which does not
75 # change the generated image).
76 SLUGOS_IMAGENAME ?= "${DISTRO_NAME}"
77
78 # pull in the frozen list of bbfiles - this sets BBFILES and this will override any
79 # setting in local.conf  Since this depends on ${DISTRO} it doesn't actually do
80 # anything by default unless conf/distro/${DISTRO}-packages.conf exists.
81 # require conf/distro/include/freeze.conf
82
83 #----------------------------------------------------------------------------------
84 # FEEDS
85 #  The FEED_URIS lines define where on the internet SlugOS looks for packages
86 #  when downloading new packages or updating existing packages.  Additional feeds
87 #  (such as a local feed) can be defined in local.conf
88 #----------------------------------------------------------------------------------
89 # Add to the user's feeds from local.conf (there may be none).
90 # In general slugos-[bl][at][gu] is sufficient to identify a set of packages which
91 # will work on any derived distro.  The slugos-???.conf files set the FEED_URIS to
92 # an appropriate ipkg.nslu2-linux.org default if nslu2-linux is actually building
93 # such a feed:
94 #
95 #FEED_URIS_append += "cross##http://ipkg.nslu2-linux.org/feeds/${SLUGOS-foo}/cross/${DISTRO_FEED}"
96 #FEED_URIS_append += "native##http://ipkg.nslu2-linux.org/feeds/${SLUGOS-foo}/native/${DISTRO_FEED}"
97 #
98 # When such a feed exists the corresponding 'unstable' feed will normally also
99 # exist - the packages in unstable are the latest but very unlikely to be the
100 # greatest.  Use at your own risk!
101
102 #FEED_URIS_append += "unstable_cross##http://ipkg.nslu2-linux.org/feeds/${SLUGOS-foo}/cross/unstable"
103 #FEED_URIS_append += "unstable_native##http://ipkg.nslu2-linux.org/feeds/${SLUGOS-foo}/native/unstable"
104
105 #----------------------------------------------------------------------------------
106 # FIRMWARE CONFIGURATION
107 #----------------------------------------------------------------------------------
108 # IMAGE BUILD OPTIONS
109 # -------------------
110 # CMDLINE* macros define the kernel command line.  CMDLINE_DEBUG is provided
111 # to enable/disable debugging in the distro.  Here noirqdebug is used to
112 # remove the messages about unhandled interrupts - people debugging interrupt
113 # issues in the kernel need to cancel this (set CMDLINE_DEBUG empty in local.conf)
114 CMDLINE_DEBUG = "noirqdebug"
115
116 # Building a full image.  If you set SLUGOS_FLASH_IMAGE to "nslu2" a complete
117 # 8MByte flash image will be built after the rootfs JFFS2 image.  Other options
118 # may later be defined for other vendor-flashable image types.
119 #
120 # If you do this you will need to find a source for the LinkSys software to be
121 # placed in the full image - 'RedBoot' (the boot loader), 'Trailer' (just a bunch
122 # of bytes to flag the image as valid) and 'SysConf' (actually just a block of
123 # unset data - you could modify this to pre-configure the SysConf partition of the
124 # image).  If you own an NSLU2 then this data is already in the flash of the NSLU2
125 # and you can download it (including new versions) from the LinkSys web site - see
126 # packages/meta/slugos-image.bb for information about where to put the downloaded
127 # data.
128 SLUGOS_FLASH_IMAGE ?= "no"
129
130 # EXTRA PACKAGES
131 # --------------
132 # SlugOS builds an image with no extra packages - to add packages to the
133 # firmware include this file in a new 'distro' configuration file) and set
134 # the definition below to include the requirements.
135 # NOTE: as built this system will *not* be able to boot off anything other than
136 # the flash file system ('turnup' will not work).  You need to add the filesystem
137 # modules for your chosen root file system (and any others which will be used).
138 # See openslug.conf for a more full-featured system!
139 #
140 # Everything in this list gets added to the flash image, along with any RDEPENDS
141 # it has itself!
142 SLUGOS_EXTRA_RDEPENDS ?= ""
143
144 #----------------------------------------------------------------------------------
145 # PACKAGE VERSION CONTROL
146 #----------------------------------------------------------------------------------
147 # Define how to bootstrap the system - we need cross compilers.  It is also
148 # necessary to define which gets generated first, glibc or the kernel, and
149 # this is done by selecting the provider of libc (in this case it needs the
150 # kernel, so there has to be a non-libc gcc to build the kernel!)
151 PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
152 PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}gcc:gcc-cross"
153 PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}g++:gcc-cross"
154 PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}libc-for-gcc:glibc"
155 # Select 2.6 versions of the depmod support
156 PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"
157 PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}libc-for-gcc:glibc"
158
159 # compiler/binary/library versions (unslung uses different ones so these
160 # cannot be in ${MACHINE}.conf)
161 PREFERRED_VERSION_binutils ?= "2.16"
162 PREFERRED_VERSION_binutils-cross ?= "2.16"
163 PREFERRED_VERSION_gcc-cross-initial ?= "4.1.1"
164 PREFERRED_VERSION_gcc-cross ?= "4.1.1"
165 PREFERRED_VERSION_gcc ?= "4.1.1"
166 PREFERRED_VERSION_glibc ?= "2.3.5+cvs20050627"
167 #For SVN uclibc:
168 #SRCDATE_uclibc ?= "20060120"
169 #PREFERRED_VERSION_uclibc ?= "0.9.28+svn${SRCDATE_uclibc}"
170
171 # Select the correct versions of the kernel and modules (these are the
172 # defaults, override in the conf/distro top-level distro file).
173 PREFERRED_PROVIDER_virtual/kernel ?= "ixp4xx-kernel"
174 PREFERRED_VERSION_ixp4xx-kernel ?= "2.6.19-rc5"
175
176 # Select the smallest provider of x11 libraries
177 PREFERRED_PROVIDER_virtual/libx11 ?= "diet-x11"
178 SRCDATE_diet-x11 ?= "20060106"
179
180 # Latest wpa-supplicant which supports madwifi-ng
181 PREFERRED_VERSION_wpa-supplicant ?= "0.5.1"
182
183 # Ensure consistency across all SlugOS builds for the provider of a
184 # relational database - use the latest version of the SleepyCat
185 # Berkeley database
186 PREFERRED_PROVIDER_virtual/db = "db"
187 PREFERRED_PROVIDER_virtual/db-native = "db-native"
188
189 SRCDATE_ipkg-utils ?= "20060106"
190 SRCDATE_ipkg-utils-native ?= "20060106"
191 SRCDATE_ipkg-link ?= "20060106"
192 SRCDATE_irssi ?= "20050930"
193
194 CVS_TARBALL_STASH = "http://sources.nslu2-linux.org/sources/"
195 INHERIT += "nslu2-mirrors"
196
197 PREFERRED_VERSION_ipkg ?= "0.99.154"
198 PREFERRED_VERSION_ipkg-native ?= "0.99.154"
199
200 #FIXME: HACK: REMOVE THIS
201 IGNORE_STRIP_ERRORS = ""