summaryrefslogtreecommitdiff
path: root/examples/yocto/meta-mini/conf
diff options
context:
space:
mode:
authorManuel Traut <manut@linutronix.de>2016-01-12 12:00:25 +0100
committerManuel Traut <manut@linutronix.de>2016-01-12 12:00:25 +0100
commit498830a97001a793c12aef3d011c5374a05b4a83 (patch)
tree2c7e64e9ddb6556e22d21393f10cddc5bd990952 /examples/yocto/meta-mini/conf
parentc99be12a9a7b6270e9b3db4c5f96cb8e8eb0c7c1 (diff)
mv yocto examples into example dir
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'examples/yocto/meta-mini/conf')
-rw-r--r--examples/yocto/meta-mini/conf/distro/lxt.conf122
-rw-r--r--examples/yocto/meta-mini/conf/layer.conf12
-rw-r--r--examples/yocto/meta-mini/conf/machine/beaglebone-black.conf24
-rw-r--r--examples/yocto/meta-mini/conf/machine/imx6qsabrelite.conf37
-rw-r--r--examples/yocto/meta-mini/conf/machine/include/fsl-default-settings.inc3
-rw-r--r--examples/yocto/meta-mini/conf/machine/include/imx-base.inc30
-rw-r--r--examples/yocto/meta-mini/conf/machine/include/imx6sabreauto-common.inc6
-rw-r--r--examples/yocto/meta-mini/conf/machine/include/imx6sabresd-common.inc6
-rw-r--r--examples/yocto/meta-mini/conf/machine/include/ti33x.inc22
9 files changed, 262 insertions, 0 deletions
diff --git a/examples/yocto/meta-mini/conf/distro/lxt.conf b/examples/yocto/meta-mini/conf/distro/lxt.conf
new file mode 100644
index 0000000..945fdbb
--- /dev/null
+++ b/examples/yocto/meta-mini/conf/distro/lxt.conf
@@ -0,0 +1,122 @@
+# Distribution definition for: lxt
+#
+# Copyright (c) 2011, Intel Corporation.
+# All rights reserved.
+#
+# This file is released under the MIT license as described in
+# ../meta/COPYING.MIT.
+#
+# Poky-tiny is intended to define a tiny Linux system comprised of a
+# Linux kernel tailored to support each specific MACHINE and busybox.
+# Poky-tiny sets some basic policy to ensure a usable system while still
+# keeping the rootfs and kernel image as small as possible.
+#
+# The policies defined are intended to meet the following goals:
+# o Serial consoles only (no framebuffer or VGA console)
+# o Basic support for IPV4 networking
+# o Single user ash shell
+# o Static images (no support for adding packages or libraries later)
+# o Read-only or RAMFS root filesystem
+# o Combined Linux kernel + rootfs in under 4MB
+# o Allow the user to select between eglibc or uclibc with the TCLIBC variable
+#
+# This is currently a partial definition, the following tasks remain:
+# [ ] Integrate linux-yocto-tiny ktype into linux-yocto
+# [ ] Define linux-yocto-tiny configs for all supported BSPs
+# [ ] Drop ldconfig from the installation
+# [ ] Modify the runqemu scripts to work with ext2 parameter:
+# runqemu qemux86 qemuparams="-nographic" bootparams="console=ttyS0,115200 root=0800"
+# [ ] Modify busybox to allow for DISTRO_FEATURES-like confiruration
+
+require conf/distro/poky.conf
+DISTRO = "lxt"
+
+# FIXME: consider adding a new "tiny" feature
+#DISTRO_FEATURES_append = " tiny"
+
+# We can use packagegroup-core-boot, but in the future we may need a new packagegroup-core-tiny
+#POKY_DEFAULT_EXTRA_RDEPENDS += "packagegroup-core-boot"
+# Drop kernel-module-af-packet from RRECOMMENDS
+POKY_DEFAULT_EXTRA_RRECOMMENDS = ""
+
+# FIXME: what should we do with this?
+TCLIBCAPPEND = ""
+
+# Disable wide char support for ncurses as we don't include it in
+# in the LIBC features below.
+ENABLE_WIDEC="false"
+
+SANITY_TESTED_DISTROS = "Debian-unstable Debian-testing"
+
+# Drop native language support. This removes the
+# eglibc->bash->gettext->libc-posix-clang-wchar dependency.
+USE_NLS="no"
+
+# Reconfigure eglibc for a smaller installation
+# Comment out any of the lines below to disable them in the build
+#DISTRO_FEATURES_LIBC_TINY = "libc-posix-clang-wchar libc-posix-regexp\
+# libc-posix-regexp-glibc libc-libm libc-crypt libc-spawn"
+#DISTRO_FEATURES_LIBC_TINY_append_x86-64 = " libc-libm-big"
+#
+## Required for "who"
+#DISTRO_FEATURES_LIBC_MINIMAL = "libc-utmp libc-getlogin"
+#DISTRO_FEATURES_LIBC_REGEX = "libc-posix-regexp"
+#DISTRO_FEATURES_LIBC_NET = "libc-inet libc-nis"
+#
+#DISTRO_FEATURES_LIBC = "${DISTRO_FEATURES_LIBC_TINY} \
+# ${DISTRO_FEATURES_LIBC_MINIMAL} \
+# ${DISTRO_FEATURES_LIBC_REGEX} \
+# ${DISTRO_FEATURES_LIBC_NET} \
+# "
+
+# Enable LFS - see bug YOCTO #5865
+DISTRO_FEATURES_append_libc-uclibc = " largefile"
+
+# Use tmpdevfs and the busybox runtime services
+VIRTUAL-RUNTIME_dev_manager = ""
+VIRTUAL-RUNTIME_login_manager = ""
+VIRTUAL-RUNTIME_init_manager = "tiny-init"
+VIRTUAL-RUNTIME_keymaps = ""
+
+# FIXME: Consider adding "modules" to MACHINE_FEATURES and using that in
+# packagegroup-core-base to select modutils-initscripts or not. Similar with "net" and
+# netbase.
+
+# By default we only support ext2 and initramfs. We don't build live as that
+# pulls in a lot of dependencies for the live image and the installer, like
+# udev, grub, etc. These pull in gettext, which fails to build with wide
+# character support.
+IMAGE_FSTYPES = "sdcard ext3 tar.gz"
+
+# Drop v86d from qemu dependency list (we support serial)
+# Drop grub from meta-intel BSPs
+# FIXME: A different mechanism is needed here. We could define -tiny
+# variants of all compatible machines, but that leads to a lot
+# more machine configs to maintain long term.
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ""
+
+# The mtrace script included by eglibc is a perl script. This means the system
+# will build perl in case this package is installed. Since we don't care about
+# this script for the purposes of tiny, remove the dependency from here.
+RDEPENDS_${PN}-mtrace_pn-eglibc = ""
+
+INHERIT += "blacklist"
+PNBLACKLIST[build-appliance-image] = "not buildable with lxt"
+PNBLACKLIST[core-image-base] = "not buildable with lxt"
+PNBLACKLIST[core-image-clutter] = "not buildable with lxt"
+PNBLACKLIST[core-image-directfb] = "not buildable with lxt"
+PNBLACKLIST[core-image-full-cmdline] = "not buildable with lxt"
+PNBLACKLIST[core-image-lsb] = "not buildable with lxt"
+PNBLACKLIST[core-image-lsb-dev] = "not buildable with lxt"
+PNBLACKLIST[core-image-lsb-sdk] = "not buildable with lxt"
+PNBLACKLIST[core-image-rt] = "not buildable with lxt"
+PNBLACKLIST[core-image-rt-sdk] = "not buildable with lxt"
+PNBLACKLIST[core-image-sato] = "not buildable with lxt"
+PNBLACKLIST[core-image-sato-dev] = "not buildable with lxt"
+PNBLACKLIST[core-image-sato-sdk] = "not buildable with lxt"
+PNBLACKLIST[core-image-x11] = "not buildable with lxt"
+PNBLACKLIST[qt4e-demo-image] = "not buildable with lxt"
+PNBLACKLIST[core-image-weston] = "not buildable with lxt"
+
+# Disable python usage in opkg-utils since it won't build with tiny config
+PACKAGECONFIG_pn-opkg-utils = ""
diff --git a/examples/yocto/meta-mini/conf/layer.conf b/examples/yocto/meta-mini/conf/layer.conf
new file mode 100644
index 0000000..35caf4b
--- /dev/null
+++ b/examples/yocto/meta-mini/conf/layer.conf
@@ -0,0 +1,12 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH .= ":${LAYERDIR}"
+
+# We have recipes-* directories, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+ ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+LAYERDEPENDS_fsl-arm-extra = "core linutronix"
+
+BBFILE_COLLECTIONS += "mini"
+BBFILE_PATTERN_mini = "^${LAYERDIR}/"
+BBFILE_PRIORITY_mini = "7"
diff --git a/examples/yocto/meta-mini/conf/machine/beaglebone-black.conf b/examples/yocto/meta-mini/conf/machine/beaglebone-black.conf
new file mode 100644
index 0000000..8e6dbcd
--- /dev/null
+++ b/examples/yocto/meta-mini/conf/machine/beaglebone-black.conf
@@ -0,0 +1,24 @@
+#@TYPE: Machine
+#@NAME: BeagleBone Black
+#@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board
+
+require conf/machine/include/ti33x.inc
+
+IMAGE_FSTYPES += "sdcard ext3 tar.gz"
+EXTRA_IMAGEDEPENDS += "u-boot"
+
+SERIAL_CONSOLE = "115200 ttyO0"
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-vanilla"
+PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
+PREFERRED_PROVIDER_u-boot= "u-boot"
+
+SPL_BINARY = "MLO"
+UBOOT_SUFFIX = "img"
+UBOOT_MACHINE = "am335x_boneblack_config"
+UBOOT_ENTRYPOINT = "0x80008000"
+UBOOT_LOADADDRESS = "0x80008000"
+
+IMAGE_CLASSES += "image_sdcard"
+SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
+IMAGE_FSTYPES += "sdcard"
diff --git a/examples/yocto/meta-mini/conf/machine/imx6qsabrelite.conf b/examples/yocto/meta-mini/conf/machine/imx6qsabrelite.conf
new file mode 100644
index 0000000..90f6864
--- /dev/null
+++ b/examples/yocto/meta-mini/conf/machine/imx6qsabrelite.conf
@@ -0,0 +1,37 @@
+#@TYPE: Machine
+#@NAME: SabreLite
+#@SOC: i.MX6Q
+#@DESCRIPTION: Machine configuration for Boundary Devices SabreLite
+#@MAINTAINER: Manuel Traut <manut@linutronix.de>
+
+include conf/machine/include/imx-base.inc
+include conf/machine/include/tune-cortexa9.inc
+
+SOC_FAMILY = "mx6:mx6dl:mx6q"
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-vanilla"
+KERNEL_DEVICETREE = "imx6q-sabrelite.dtb"
+
+# Ensure boot scripts will be available at rootfs time
+do_rootfs[depends] += "u-boot-script:do_deploy"
+
+# Boot scripts to install
+BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
+
+UBOOT_MACHINE ?= "nitrogen6q_config"
+SERIAL_CONSOLE = "115200 ttymxc1"
+
+IMAGE_FSTYPES += "tar.bz2 ext3"
+
+# avoid this error
+# ERROR: QA Issue: eglibc-locale: Files/directories were installed but not
+# shipped
+# /usr/bin
+# /usr/lib
+# /usr/share/i18n
+# /usr/share/i18n/locales
+# /usr/share/i18n/locales/POSIX
+ENABLE_BINARY_LOCALE_GENERATION = "0"
+
+# custom init process
+# APPEND = "${APPEND} init=/usr/bin/hello"
diff --git a/examples/yocto/meta-mini/conf/machine/include/fsl-default-settings.inc b/examples/yocto/meta-mini/conf/machine/include/fsl-default-settings.inc
new file mode 100644
index 0000000..b36e75a
--- /dev/null
+++ b/examples/yocto/meta-mini/conf/machine/include/fsl-default-settings.inc
@@ -0,0 +1,3 @@
+# Freescale BSP default settings
+
+IMAGE_CLASSES += "image_types_fsl"
diff --git a/examples/yocto/meta-mini/conf/machine/include/imx-base.inc b/examples/yocto/meta-mini/conf/machine/include/imx-base.inc
new file mode 100644
index 0000000..247eb62
--- /dev/null
+++ b/examples/yocto/meta-mini/conf/machine/include/imx-base.inc
@@ -0,0 +1,30 @@
+# Provides the i.MX common settings
+
+include conf/machine/include/fsl-default-settings.inc
+include conf/machine/include/soc-family.inc
+
+# Set specific make target and binary suffix
+UBOOT_MAKE_TARGET = "u-boot.imx"
+UBOOT_SUFFIX ?= "imx"
+
+UBOOT_ENTRYPOINT_mx6 = "0x10008000"
+
+# Float-Point setting
+DEFAULTTUNE_mx6 ?= "cortexa9hf-neon"
+
+# Sub-architecture support
+MACHINE_SOCARCH ?= ""
+MACHINE_SOCARCH_mx6 = "${TUNE_PKGARCH}-mx6"
+PACKAGE_EXTRA_ARCHS_append = " ${MACHINE_SOCARCH}"
+
+MACHINE_ARCH_FILTER = "virtual/kernel"
+INHERIT += "fsl-dynamic-packagearch"
+
+SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
+IMAGE_FSTYPES ?= "tar.bz2 ext3 sdcard"
+
+SERIAL_CONSOLE = "115200 ttymxc0"
+
+KERNEL_IMAGETYPE = "uImage"
+
+MACHINE_FEATURES = ""
diff --git a/examples/yocto/meta-mini/conf/machine/include/imx6sabreauto-common.inc b/examples/yocto/meta-mini/conf/machine/include/imx6sabreauto-common.inc
new file mode 100644
index 0000000..e35bc82
--- /dev/null
+++ b/examples/yocto/meta-mini/conf/machine/include/imx6sabreauto-common.inc
@@ -0,0 +1,6 @@
+# Provides the i.MX6 SABRE AUTO common settings
+
+require conf/machine/include/imx-base.inc
+require conf/machine/include/tune-cortexa9.inc
+
+SERIAL_CONSOLE = "115200 ttymxc3"
diff --git a/examples/yocto/meta-mini/conf/machine/include/imx6sabresd-common.inc b/examples/yocto/meta-mini/conf/machine/include/imx6sabresd-common.inc
new file mode 100644
index 0000000..21a23b8
--- /dev/null
+++ b/examples/yocto/meta-mini/conf/machine/include/imx6sabresd-common.inc
@@ -0,0 +1,6 @@
+# Provides the i.MX6 SABRE SD common settings
+
+require conf/machine/include/imx-base.inc
+require conf/machine/include/tune-cortexa9.inc
+
+SERIAL_CONSOLE = "115200 ttymxc0"
diff --git a/examples/yocto/meta-mini/conf/machine/include/ti33x.inc b/examples/yocto/meta-mini/conf/machine/include/ti33x.inc
new file mode 100644
index 0000000..6e47a6d
--- /dev/null
+++ b/examples/yocto/meta-mini/conf/machine/include/ti33x.inc
@@ -0,0 +1,22 @@
+SOC_FAMILY = "ti33x"
+require conf/machine/include/soc-family.inc
+
+DEFAULTTUNE ?= "cortexa8thf-neon"
+require conf/machine/include/tune-cortexa8.inc
+
+KERNEL_IMAGETYPE = "zImage"
+
+UBOOT_ARCH = "arm"
+UBOOT_MACHINE = "am335x_evm_config"
+
+UBOOT_ENTRYPOINT = "0x80008000"
+UBOOT_LOADADDRESS = "0x80008000"
+
+# Use the expected value of the ubifs filesystem's volume name in the kernel
+# and u-boot.
+UBI_VOLNAME = "rootfs"
+
+# EXTRA_IMAGEDEPENDS += "u-boot"
+
+# List common SoC features, may need to add touchscreen for specific machines
+MACHINE_FEATURES = " "