ucslugc.conf: Fix samba preferred version
[openembedded.git] / conf / distro / ucslugc.conf
1 #@TYPE: Distribution
2 #@NAME: UcSlugC
3 #@DESCRIPTION: UcSlugC Linux Distribution for the NSLU2
4
5 #----------------------------------------------------------------------------------
6 # STANDARD UcSlugC DEFINITIONS
7 #----------------------------------------------------------------------------------
8 DISTRO_NAME = "UcSlugC"
9 DISTRO_VERSION = "1.1-beta"
10 DISTRO_FEED = "unstable"
11 DISTRO_TYPE ?= "beta"
12
13 TARGET_FPU = "soft"
14 TARGET_OS = "linux-uclibc"
15
16 # Select thumb-interwork and (TBD) thumb
17 ARM_INTERWORK = ":thumb-interwork"
18 #ARM_INSTRUCTION_SET = ":thumb"
19
20 USE_NLS ?= "no"
21 USE_NLS_glib-2.0 = "yes"
22
23 INHERIT += " package_ipk debian"
24
25 # The OVERRIDES are modified here so that 'openslug' overrides are picked up if
26 # present (ucslugc overrides take precedence).
27 NSLU2_BASE_DISTRO = ":openslug"
28
29 # We are building packages which are armvteb (big endian) for arm or thumbv5tb for
30 # thumb instructions.  The PACKAGE_ARCH should reflect this because generated code
31 # requires that instruction set support.
32 PACKAGE_ARCH = "${NSLU2_PACKAGE_ARCH}"
33
34 # NOTE: to build new packages set UCSLUGC_EXTRA_BBFILES to the full path name to
35 # the .bb files for the packages to build - see ucslugc-packages.conf in this
36 # directory
37 UCSLUGC_EXTRA_BBFILES ?= ""
38
39 # pull in the frozen list of bbfiles - this sets BBFILES and this will override any
40 # setting in local.conf
41 include conf/distro/freeze.conf
42
43 #----------------------------------------------------------------------------------
44 # FEEDS
45 #  The following lines define where on the internet UcSlugC looks for packages
46 #  when downloading new packages or updating existing packages.  Additional feeds
47 #  (such as a local feed) can be defined in local.conf
48 #----------------------------------------------------------------------------------
49 # Add to the user's feeds from local.conf (there may be none)
50 #
51 #NOTE: at present there is no released feed for ucslugc, therefore this feed
52 # is set to the 'unstable' version.  In released images DISTRO_FEED will typically
53 # be DISTRO_VERSION.
54 FEED_URIS_append += "cross##http://ipkg.nslu2-linux.org/feeds/ucslugc/cross/${DISTRO_FEED}"
55 FEED_URIS_append += "native##http://ipkg.nslu2-linux.org/feeds/ucslugc/native/${DISTRO_FEED}"
56
57 #
58 # Uncomment the following to get the unstable feeds in a released version.
59 #FEED_URIS_append += "unstable_cross##http://ipkg.nslu2-linux.org/feeds/ucslugc/cross/unstable"
60 #FEED_URIS_append += "unstable_native##http://ipkg.nslu2-linux.org/feeds/ucslugc/native/unstable"
61
62 #----------------------------------------------------------------------------------
63 # FIRMWARE CONFIGURATION
64 #----------------------------------------------------------------------------------
65 # IMAGE BUILD OPTIONS
66 # -------------------
67 IMAGE_FSTYPES = "jffs2"
68
69 OPENSLUG_DEVICE_TABLE = "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'files/device_table-openslug.txt')}"
70 EXTRA_IMAGECMD_jffs2 = "--pad --big-endian --eraseblock=0x20000 -D ${OPENSLUG_DEVICE_TABLE}"
71
72 # CMDLINE* macros define the kernel command line.  CMDLINE_DEBUG is provided
73 # to enable/disable debugging in the distro.  Here noirqdebug is used to
74 # remove the messages about unhandled interrupts - people debugging interrupt
75 # issues in the kernel need to cancel this (set CMDLINE_DEBUG empty in local.conf)
76 CMDLINE_DEBUG = "noirqdebug"
77
78 # IMAGE_PREPROCESS_COMMAND is run before making the image.  In UcSlugC the
79 # kernel image is removed from the root file system to recover the space used -
80 # UcSlugC is assumed to boot from a separate kernel image in flash (not in the
81 # root file system), if this is not the case the following must not be done!
82 IMAGE_PREPROCESS_COMMAND = "rm ${IMAGE_ROOTFS}/boot/zImage*;"
83
84 # Building a full image.  If you add the following extra commands will be
85 # appended to the openslug-image build by classes/nslu2-jffs2-image.bbclass
86 # (note that you can, instead, simply add 'inherit nslu2-jffs2-image' to
87 # openslug-image.bb).  If you do this you will need to find a source for the
88 # LinkSys software to be placed in the full image - 'RedBoot' (the boot loader),
89 # 'Trailer' (just a bunch of bytes to flag the image as valid) and 'SysConf'
90 # (actually just a block of unset data - you could modify this to pre-configure
91 # the SysConf partition of the image).  If you own an NSLU2 then this data is
92 # already in the flash of the NSLU2 and you can download it (including new
93 # versions) from the LinkSys web site - the bbclass will output information
94 # about where to put the downloaded data.
95 #
96 #NOTE: you do not actually need the boot loader in normal use because it is
97 # *not* overwritten by a standard upslug upgrade, so you can make an image with
98 # just non-LinkSys software which can be flashed into the NSLU2.
99
100 #INHERIT += " nslu2-jffs2-image"
101
102 # EXTRA PACKAGES
103 # --------------
104 # UcSlugC builds an openslug-image with no extra packages - to add packages to the
105 # firmware copy this file (to make a new 'distro' configuration file) and change
106 # the definition below to include the requirements.
107 # NOTE: as built this system will *not* be able to boot off anything other than
108 # the flash file system ('turnup' will not work).  You need to add the filesystem
109 # modules for your chosen root file system (and any others which will be used).
110 # See openslug.conf for a more full-featured system!
111 UCLIBC_EXTRA_RDEPENDS ?= ""
112 UCLIBC_EXTRA_DEPENDS ?= ""
113 #UCLIBC_EXTRA_BBFILES above may also need to be set
114
115 OPENSLUG_EXTRA_INSTALL = "${UCLIBC_EXTRA_RDEPENDS}"
116 OPENSLUG_EXTRA_DEPENDS = "${UCLIBC_EXTRA_DEPENDS}"
117
118 #----------------------------------------------------------------------------------
119 # PACKAGE VERSION CONTROL
120 #----------------------------------------------------------------------------------
121 # Select the correct versions of the compiler tools (note that there
122 # is also some selection in machine/nslu2.conf)
123 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
124 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
125 PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
126
127 # Select the correct versions of the kernel and modules
128 PREFERRED_PROVIDER_virtual/kernel ?= "openslug-kernel"
129 PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"
130 PREFERRED_VERSION_openslug-kernel ?= "2.6.12.2"
131
132 PREFERRED_VERSION_ixp4xx-csr ?= "1.4"
133 PREFERRED_VERSION_ixp425-eth ?= "1.1"
134
135 PREFERRED_VERSION_samba ?= "3.0.14a"
136
137 PREFERRED_VERSION_nslu2-linksys-firmware ?= "2.3r29"