1 #############################################################################
4 #@DESCRIPTION: Embedded Linux Distribution Configuration
6 #@COMMENT: This distribution configuration can serve as a starting point for
7 #@COMMENT: the integration of new target platforms, machines, or distributions.
8 #############################################################################
10 #############################################################################
12 #############################################################################
13 DISTRO_NAME = "minimal"
14 DISTRO_VERSION = ".dev-snapshot-${SRCDATE}"
15 #DISTRO_TYPE = "release"
18 # Ensure some form of release config, so error out if someone thinks he knows better
19 DISTRO_CHECK := "${@bb.data.getVar("DISTRO_VERSION",d,1) or bb.fatal('Remove this line or set a dummy DISTRO_VERSION")
21 #############################################################################
23 #############################################################################
25 DISTRO_BLUETOOTH_MANAGER = "bluez4"
26 # We want images supporting the following features (for task-base)
27 DISTRO_FEATURES = "nfs smbfs wifi ppp alsa bluetooth ext2 vfat pcmcia usbgadget usbhost pci"
29 #############################################################################
31 #############################################################################
32 # libfoo -> libfoo0-2 (etc)
35 #############################################################################
37 #############################################################################
38 # Controlled by packaging system
39 INHERIT += "packaged-staging"
41 #############################################################################
43 #############################################################################
44 # Chose the packaging system
45 INHERIT += "package_ipk"
46 IMAGE_FSTYPES ?= "tar.gz jffs2"
48 require conf/distro/include/sane-feed.inc
49 PREFERRED_PKG_FORMAT ?= "ipk"
50 require conf/distro/include/sane-feed-${PREFERRED_PKG_FORMAT}.inc
52 # If we're using an .ipk based rootfs, we want to have opkg-nogpg installed so postinst script can run
53 IPKG_VARIANT = "opkg-nogpg"
55 #############################################################################
57 #############################################################################
58 # Name the generated images in a sane way
59 IMAGE_NAME = "${DISTRO_NAME}-${IMAGE_BASENAME}-${PREFERRED_LIBC}-${PREFERRED_PKG_FORMAT}-${DISTRO_VERSION}-${MACHINE}"
60 CACHE ?= "${TMPDIR}/cache/${PREFERRED_LIBC}/${MACHINE}"
61 DEPLOY_DIR ?= "${TMPDIR}/deploy/${PREFERRED_LIBC}"
62 DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}"
64 #############################################################################
66 #############################################################################
68 MACHINE_KERNEL_VERSION = "2.6"
70 #############################################################################
72 #############################################################################
73 PREFERRED_LIBC = "glibc"
74 require conf/distro/include/sane-toolchain.inc
76 #############################################################################
77 # OVERWRITES adjusted from bitbake.conf to feature the MACHINE_CLASS
78 #############################################################################
79 OVERRIDES = "local:${MACHINE}:${MACHINE_CLASS}:${DISTRO}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}:fail-fast:pn-${PN}"
81 #############################################################################
83 #############################################################################
84 PREFERRED_PROVIDER_task-bootstrap = "task-bootstrap"
85 PREFERRED_PROVIDER_avahi = "avahi"
86 PREFERRED_PROVIDER_gconf = "gconf-dbus"
87 PREFERRED_PROVIDER_gtk+ = "gtk+"
88 PREFERRED_PROVIDER_libgpewidget = "libgpewidget"
89 PREFERRED_PROVIDER_virtual/db = "db3"
90 PREFERRED_PROVIDER_virtual/db-native = "db3-native"
91 PREFERRED_PROVIDER_virtual/libsdl = "libsdl-x11"
92 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11"
94 #############################################################################
96 #############################################################################
97 require conf/distro/include/sane-srcdates.inc
98 require conf/distro/include/sane-srcrevs.inc
99 require conf/distro/include/preferred-e-versions.inc
100 require conf/distro/include/preferred-xorg-versions-X11R7.4-updates.inc
101 require conf/distro/include/preferred-xorg-versions-X11R7.4.inc
104 #############################################################################
106 #############################################################################
108 # Ship extra debug utils in the rootfs when doing a debug build
109 DISTRO_EXTRA_APPS ?= ""
110 DISTRO_EXTRA_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "task-cli-tools-debug",d)}'
112 # Additional content I (only valid if you include task-base)
113 # distro-feed-configs: configuration files for the online feeds
114 # util-linux-ng-mount util-linux-ng-umount: busybox mount is broken
115 # angstrom-libc-fixup-hack: fixes an obscure bug with libc.so symlink
116 DISTRO_EXTRA_RDEPENDS += "\
117 distro-feed-configs \
118 util-linux-ng-mount util-linux-ng-umount \
119 angstrom-libc-fixup-hack \
120 ${DISTRO_EXTRA_APPS} \
123 # Additional content II (can be masked with BAD_RECOMMENDS)
124 DISTRO_EXTRA_RRECOMMENDS += " \
128 kernel-module-af-packet \
131 openssh-sftp-server \