From cc91d815b9a14925d34b3d2f37a0f5c0097006b3 Mon Sep 17 00:00:00 2001 From: David-John Willis Date: Tue, 3 Apr 2012 20:43:31 +0100 Subject: [PATCH] CONF: Add layer and machine configs. --- conf/layer.conf | 10 ++++++++++ conf/machine/raspberrypi.conf | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 conf/layer.conf create mode 100644 conf/machine/raspberrypi.conf diff --git a/conf/layer.conf b/conf/layer.conf new file mode 100644 index 0000000..32e1827 --- /dev/null +++ b/conf/layer.conf @@ -0,0 +1,10 @@ +# We have a conf and classes directory, append to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have a recipes directory containing .bb and .bbappend files, add to BBFILES +BBFILES := "${BBFILES} ${LAYERDIR}/recipes*/*/*.bb \ + ${LAYERDIR}/recipes*/*/*.bbappend" + +BBFILE_COLLECTIONS += "raspberrypi" +BBFILE_PATTERN_raspberrypi := "^${LAYERDIR}/" +BBFILE_PRIORITY_raspberrypi = "6" diff --git a/conf/machine/raspberrypi.conf b/conf/machine/raspberrypi.conf new file mode 100644 index 0000000..6a64677 --- /dev/null +++ b/conf/machine/raspberrypi.conf @@ -0,0 +1,35 @@ +#@TYPE: Machine +#@NAME: OMAP3 based Pandora Handheld Console +#@DESCRIPTION: Machine configuration for the RaspberryPi http://www.raspberrypi.org/ Board +#@MAINTAINER: John Willis + +TARGET_ARCH = "arm" + +GUI_MACHINE_CLASS = "bigscreen" + +IMAGE_FSTYPES += "tar.bz2" + +SERIAL_CONSOLE = "115200 ttyS0" + +# Put it below omap3.inc as we override the kernel and PR here +PREFERRED_PROVIDER_virtual/kernel = "linux-${MACHINE}" +MACHINE_KERNEL_PR = "r1" + +PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" + +XSERVER = " \ + xserver-xorg \ + xf86-input-evdev \ + xf86-input-mouse \ + xf86-input-keyboard \ + xf86-video-fbdev \ +" + +KERNEL_IMAGETYPE = "uImage" + +MACHINE_FEATURES = "kernel26 apm usbgadget usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio" + +MACHINE_EXTRA_RRECOMMENDS += " \ + kernel-modules \ + raspberrypi-firmware \ +"