summaryrefslogtreecommitdiff
path: root/conf/distro/yogurt.conf
diff options
context:
space:
mode:
authorStefan Müller-Klieser <s.mueller-klieser@phytec.de>2014-09-09 12:10:48 +0200
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2014-09-09 12:16:00 +0200
commitb128143b32a07d5d84ded6809c770468b7d9a1dd (patch)
tree7cb48570f84d68ae0f0e4c87639524b3441e341a /conf/distro/yogurt.conf
parent54edb4522e836755da534f812ada1275ec19141e (diff)
downloadmeta-yogurt-b128143b32a07d5d84ded6809c770468b7d9a1dd.tar.bz2
meta-yogurt-b128143b32a07d5d84ded6809c770468b7d9a1dd.zip
initial distro
Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Diffstat (limited to 'conf/distro/yogurt.conf')
-rw-r--r--conf/distro/yogurt.conf180
1 files changed, 180 insertions, 0 deletions
diff --git a/conf/distro/yogurt.conf b/conf/distro/yogurt.conf
new file mode 100644
index 0000000..a9392b2
--- /dev/null
+++ b/conf/distro/yogurt.conf
@@ -0,0 +1,180 @@
+#@--------------------------------------------------------------------
+#@TYPE: Distribution
+#@NAME: Yogurt
+#@DESCRIPTION: The Linux Distribution for Kernel 2.6+ based devices
+#@--------------------------------------------------------------------
+
+# This is a aimed to be the next stable yogurt release.
+# If you want something stable *right now*, use yogurt-v2013.12
+#
+# Use this at your own risk, we welcome bugreports sent to
+# yogurt-distro-devel@linuxtogo.org
+#
+# For more contact info please visit
+# http://www.yogurt-distribution.org/contact
+#
+# Again, in doubt, use the master branch of setup-scripts
+
+DISTRO_VERSION = ""
+
+OLDEST_KERNEL = "2.6.16"
+
+require conf/distro/include/sane-srcdates.inc
+require conf/distro/include/sane-srcrevs.inc
+require conf/distro/include/yogurt-preferred-versions.inc
+
+#Images built can have to modes:
+# 'debug': empty rootpassword, strace included
+# 'release' no root password, no strace and gdb by default
+DISTRO_TYPE ?= "debug"
+#DISTRO_TYPE = "release"
+
+# Set the toolchain type (internal, external) and brand (generic, csl etc.)
+TOOLCHAIN_TYPE ?= "internal"
+TOOLCHAIN_BRAND ?= ""
+
+# Ship just basic locale by default. Locales are big (~1Mb uncompr.), so
+# shipping some adhoc subset will be still useless and size burden for
+# users of all other languages/countries. Instead, worth to make it easy
+# to install additional languages: installer/wizard + metapackages which
+# will RRECOMMEND as much as possible content for a given language
+# (locales, UI transalations, help, etc. - useless for pros, but really
+# helpful for common users).
+# Also, it appears that no locales fit in 16Mb for now. "C" locale rules!
+ROOT_FLASH_SIZE ??= "32"
+IMAGE_LINGUAS ?= '${@base_less_or_equal("ROOT_FLASH_SIZE", "16", "", "en-us", d)}'
+
+# set feed path variables
+FEED_BASEPATH = "feeds/${DISTRO_VERSION}/${YOGURT_PKG_FORMAT}/${TCLIBC}/"
+
+#This is unrelated to the kernel version, but userspace apps (e.g. udev/systemd) require a recent version to build against
+LINUX_LIBC_HEADERS_VERSION ?= "3.14%"
+PREFERRED_VERSION_linux-libc-headers = "${LINUX_LIBC_HEADERS_VERSION}"
+PREFERRED_VERSION_linux-libc-headers-native = "${LINUX_LIBC_HEADERS_VERSION}"
+PREFERRED_VERSION_nativesdk-linux-libc-headers = "${LINUX_LIBC_HEADERS_VERSION}"
+
+#use Linaro tools for ARM
+YOGURT_GCC_VERSION_arm ?= "linaro-4.8%"
+YOGURT_GCC_VERSION_aarch64 ?= "linaro-4.8%"
+#YOGURT_BINUTILS_VERSION_arm ?= "linaro-2.24%"
+YOGURT_GDB_VERSION_arm ?= "linaro-7.6%"
+
+#Everybody else can just use this:
+YOGURT_GCC_VERSION ?= "4.8%"
+YOGURT_NATIVE_GCC_VERSION ?= "4.8%"
+YOGURT_BINUTILS_VERSION ?= "2.24%"
+YOGURT_NATIVE_BINUTILS_VERSION ?= "2.24%"
+YOGURT_GDB_VERSION ?= "7.6%"
+
+YOGURT_QEMU_VERSION ?= "1.7.0"
+
+PREFERRED_VERSION_binutils ?= "${YOGURT_BINUTILS_VERSION}"
+PREFERRED_VERSION_binutils-cross ?= "${YOGURT_BINUTILS_VERSION}"
+PREFERRED_VERSION_binutils-crosssdk ?= "${YOGURT_BINUTILS_VERSION}"
+PREFERRED_VERSION_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${YOGURT_BINUTILS_VERSION}"
+PREFERRED_VERSION_binutils-native ?= "${YOGURT_NATIVE_BINUTILS_VERSION}"
+
+PREFERRED_VERSION_gcc ?= "${YOGURT_GCC_VERSION}"
+PREFERRED_VERSION_gcc-cross ?= "${YOGURT_GCC_VERSION}"
+PREFERRED_VERSION_gcc-cross-initial ?= "${YOGURT_GCC_VERSION}"
+PREFERRED_VERSION_gcc-cross-intermediate ?= "${YOGURT_GCC_VERSION}"
+PREFERRED_VERSION_gcc-cross-canadian ?= "${YOGURT_GCC_VERSION}"
+PREFERRED_VERSION_gcc-crosssdk ?= "${YOGURT_NATIVE_GCC_VERSION}"
+PREFERRED_VERSION_gcc-crosssdk-initial ?= "${YOGURT_NATIVE_GCC_VERSION}"
+PREFERRED_VERSION_gcc-crosssdk-intermediate ?= "${YOGURT_NATIVE_GCC_VERSION}"
+PREFERRED_VERSION_gcc-runtime ?= "${YOGURT_GCC_VERSION}"
+PREFERRED_VERSION_nativesdk-gcc-runtime ?= "${YOGURT_GCC_VERSION}"
+PREFERRED_VERSION_libgcc ?= "${YOGURT_GCC_VERSION}"
+PREFERRED_VERSION_nativesdk-libgcc ?= "${YOGURT_GCC_VERSION}"
+PREFERRED_VERSION_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${YOGURT_GCC_VERSION}"
+
+PREFERRED_VERSION_gdb ?= "${YOGURT_GDB_VERSION}"
+PREFERRED_VERSION_gdb-cross ?= "${YOGURT_GDB_VERSION}"
+PREFERRED_VERSION_gdb-cross-canadian ?= "${YOGURT_GDB_VERSION}"
+PREFERRED_VERSION_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${YOGURT_GDB_VERSION}"
+
+PREFERRED_VERSION_qemu = "${YOGURT_QEMU_VERSION}"
+PREFERRED_VERSION_qemu-native = "${YOGURT_QEMU_VERSION}"
+PREFERRED_VERSION_nativesdk-qemu = "${YOGURT_QEMU_VERSION}"
+
+PREFERRED_PROVIDER_dbus-glib = "dbus-glib"
+PREFERRED_PROVIDER-gconf-dbus = "gconf"
+PREFERRED_PROVIDER_hotplug = "systemd"
+PREFERRED_PROVIDER_opkg ?= "opkg"
+PREFERRED_PROVIDER_opkg-native ?= "opkg-native"
+
+# Prefer gummiboot over grub
+EFI_PROVIDER = "gummiboot"
+
+# blacklist policy
+
+PNBLACKLIST[pn-fso-apm] = "regular apmd is good enough"
+PNBLACKLIST[gconf-dbus] = "gconf-dbus has been merged back into main GConf"
+PNBLACKLIST[gconf-dbus-native] = "gconf-dbus has been merged back into main GConf"
+PNBLACKLIST[ffmpeg] = "libav is preferred over ffmpeg"
+
+# Define splash before it gets set to empty in yogurt-core-tweaks.inc:
+SPLASH ?= ' ${@base_contains("MACHINE_FEATURES", "screen", "dietsplash", "",d)}'
+require conf/distro/include/yogurt.inc
+
+# Prefer openssh over dropbear
+TASK_BASIC_SSHDAEMON = "openssh-ssh openssh-sshd openssh-scp openssh-sftp openssh-sftp-server"
+
+# Toolchain virtuals:
+require conf/distro/include/toolchain-${TOOLCHAIN_TYPE}.inc
+# Processor specific tunes like hard float ABI
+include conf/distro/include/${TARGET_ARCH}-defaults.inc
+# Set DISTRO_FEED_CONFIGS to our config var, assigned in the above .inc
+DISTRO_FEED_CONFIGS = "${YOGURT_FEED_CONFIGS}"
+
+# If we're using an .ipk based rootfs, we want to have opkg installed so postinst script can run
+# We also take this opportunity to inject yogurt-version and the feed configs into the rootfs
+IPKG_VARIANT = "opkg yogurt-version ${YOGURT_FEED_CONFIGS}"
+
+# Select xserver-xorg as default, since kdrive has been EOL'ed
+XSERVER ?= "xserver-xorg xf86-input-evdev xf86-input-keyboard xf86-input-mouse xf86-video-fbdev"
+
+# do some packagegroup-base stuff here
+
+# Prefer bluez4, it's needed for things like connman. Bluez4 is also largely backward compatible with
+# bluez 3.x
+DISTRO_BLUETOOTH_MANAGER = "\
+ blueprobe \
+ bluez4 \
+ "
+
+# We want to ship extra debug utils in the rootfs when doing a debug build
+DEBUG_APPS ?= ""
+DEBUG_APPS += '${@base_conditional("DISTRO_TYPE", "release", "", "strace procps",d)}'
+
+# This hooks into packagegroup-base, so it won't do anything if your images doesn't include packagegroup-base.
+# yogurt-version: ship this to have an identifiable rootfs so user can report bugs against a specific version
+# YOGURT_FEED_CONFIGS: configfiles for the online feeds
+# util-linux-mount util-linux-umount: busybox mount is broken
+# yogurt-libc-fixup-hack: fixes an obscure bug with libc.so symlink
+DISTRO_EXTRA_RDEPENDS += "\
+ yogurt-version \
+ ${YOGURT_FEED_CONFIGS} \
+ util-linux-mount util-linux-umount \
+ yogurt-libc-fixup-hack \
+ "
+
+# This also hooks into packagegroup-base, but isn't mandatory.
+# If you don't want parts of this in your packagegroup-base using images you can put this in the image recipe:
+# BAD_RECOMMENDATIONS = "avahi-daemon avahi-autoipd"
+# Note that BAD_RECOMMENDATIONS is a feature of rootfs_ipk.bbclass, not yogurt
+# kernel modules: ship fs modules so you can mount stuff and af-packet so networking works
+# avahi: makes finding your device on the network a lot easier
+# openssh-sftp-server: provides sftp which combined with avahi makes it real easy to use things like sshfs
+# psplash-yogurt: yogurt branded psplash, you can add your own psplash-foo to an image, it uses update-alternatives
+# DEBUG_APPS: ship strace and procpc to make simple debugging a lot easier
+DISTRO_EXTRA_RRECOMMENDS += " \
+ kernel-module-vfat \
+ kernel-module-ext2 \
+ kernel-module-ext3 \
+ kernel-module-af-packet \
+ avahi-daemon \
+ avahi-autoipd \
+ openssh-sftp-server \
+ ${DEBUG_APPS} \
+"