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"
16 DISTRO_TYPE ?= "debug"
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 ext2 vfat pcmcia usbgadget usbhost pci"
28 # Following features are for ARM and E500 based machines
29 DISTRO_FEATURES += "eabi"
31 # The following feature enables the MIPS ABI PLT extensions
32 # This feature needs GCC 4.4 binutils 2.19 or glibc/eglibc 2.9
35 DISTRO_FEATURES += "mplt"
37 #############################################################################
39 #############################################################################
40 # libfoo -> libfoo0-2 (etc)
43 #############################################################################
45 #############################################################################
46 # Controlled by packaging system
47 INHERIT += "packaged-staging"
49 #############################################################################
51 #############################################################################
52 # Chose the packaging system
53 INHERIT += "package_ipk"
54 IMAGE_FSTYPES ?= "tar.gz jffs2"
55 PREFERRED_PKG_FORMAT ?= "ipk"
57 # Put links to sources in deploy/sources to make it easier for people to be GPL compliant
58 INHERIT += "src_distribute_local"
59 SRC_DIST_LOCAL ?= "symlink"
61 # If we're using an .ipk based rootfs, we want to have opkg-nogpg installed so postinst script can run
62 IPKG_VARIANT = "opkg-nogpg"
64 #############################################################################
66 #############################################################################
67 # Name the generated images in a sane way
68 IMAGE_NAME = "${DISTRO_NAME}-${IMAGE_BASENAME}-${LIBC}-${PREFERRED_PKG_FORMAT}-${DISTRO_VERSION}-${MACHINE}"
69 CACHE ?= "${TMPDIR}/cache/${LIBC}/${MACHINE}"
70 DEPLOY_DIR ?= "${TMPDIR}/deploy/${LIBC}"
71 DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}"
72 SPLASH ?= "${@base_contains("MACHINE_FEATURES", "screen", "psplash", "",d)}"
74 # increase inode/block ratio for ext2 filesystem
75 EXTRA_IMAGECMD_ext2 = "-i 8192"
77 #############################################################################
79 #############################################################################
81 MACHINE_KERNEL_VERSION = "2.6"
83 #############################################################################
84 # OVERWRITES adjusted from bitbake.conf to feature the MACHINE_CLASS
85 #############################################################################
86 OVERRIDES = "local:${MACHINE}:${MACHINE_CLASS}:${DISTRO}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}:fail-fast:pn-${PN}"
88 #############################################################################
90 #############################################################################
92 require conf/distro/include/sane-toolchain.inc
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-opie-versions-1.2.4.inc
101 require conf/distro/include/preferred-xorg-versions-X11R7.5.inc
103 PREFERRED_PROVIDER_opkg ?= "opkg-nogpg"
104 PREFERRED_PROVIDER_virtual/update-alternatives ?= "opkg-nogpg"
106 #############################################################################
108 #############################################################################
110 # Ship extra debug utils in the rootfs when doing a debug build
111 DISTRO_EXTRA_APPS ?= ""
112 DISTRO_EXTRA_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "task-cli-tools-debug",d)}'
114 # Additional content I (only valid if you include task-base)
115 # distro-feed-configs: configuration files for the online feeds
116 # util-linux-ng-mount util-linux-ng-umount: busybox mount is broken
117 # angstrom-libc-fixup-hack: fixes an obscure bug with libc.so symlink
118 DISTRO_EXTRA_RDEPENDS += "\
119 distro-feed-configs \
120 util-linux-ng-mount util-linux-ng-umount \
121 angstrom-libc-fixup-hack \
122 ${DISTRO_EXTRA_APPS} \
125 # Additional content II (can be masked with BAD_RECOMMENDATIONS)
126 DISTRO_EXTRA_RRECOMMENDS += " \
130 kernel-module-af-packet \
133 openssh-sftp-server \