From e38e7e7c79b01a99796db662b992527b93fea612 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 5 Jan 2015 13:50:07 -0600 Subject: [PATCH] bsp-guide: Some corrections to the Crown Bay code examples. The directory structure no longer seems to support two flavors of the BSP: one with EMGD and the "noemgd." Only the "noemgd" remains. I have updated some of the examples here to reflect the current directory structure and sample configuration code for the BSP. Reported-by: Robert P. J. Day (From yocto-docs rev: 64fc4a7a6d69eb99dcd3d8c5e388810e7052ad75) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/bsp-guide/bsp.xml | 37 ++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/documentation/bsp-guide/bsp.xml b/documentation/bsp-guide/bsp.xml index d4850234d1..7055a21168 100644 --- a/documentation/bsp-guide/bsp.xml +++ b/documentation/bsp-guide/bsp.xml @@ -200,25 +200,17 @@ meta-crownbay/conf/ meta-crownbay/conf/layer.conf meta-crownbay/conf/machine/ - meta-crownbay/conf/machine/crownbay.conf meta-crownbay/conf/machine/crownbay-noemgd.conf meta-crownbay/recipes-bsp/ meta-crownbay/recipes-bsp/formfactor/ meta-crownbay/recipes-bsp/formfactor/formfactor_0.0.bbappend meta-crownbay/recipes-bsp/formfactor/formfactor/ - meta-crownbay/recipes-bsp/formfactor/formfactor/crownbay/ - meta-crownbay/recipes-bsp/formfactor/formfactor/crownbay/machconfig meta-crownbay/recipes-bsp/formfactor/formfactor/crownbay-noemgd/ meta-crownbay/recipes-bsp/formfactor/formfactor/crownbay-noemgd/machconfig - meta-crownbay/recipes-graphics/ - meta-crownbay/recipes-graphics/xorg-xserver/ - meta-crownbay/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend - meta-crownbay/recipes-graphics/xorg-xserver/xserver-xf86-config/ - meta-crownbay/recipes-graphics/xorg-xserver/xserver-xf86-config/crownbay/ - meta-crownbay/recipes-graphics/xorg-xserver/xserver-xf86-config/crownbay/xorg.conf meta-crownbay/recipes-kernel/ + meta-crownbay/recipes-kernel/kmod + meta-crownbay/recipes-kernel/kmod/kmod_git.bbappend meta-crownbay/recipes-kernel/linux/ - meta-crownbay/recipes-kernel/linux/linux-yocto-dev.bbappend meta-crownbay/recipes-kernel/linux/linux-yocto-rt_3.10.bbappend meta-crownbay/recipes-kernel/linux/linux-yocto_3.10.bbappend @@ -351,9 +343,11 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend" - BBFILE_COLLECTIONS += "bsp" - BBFILE_PATTERN_bsp = "^${LAYERDIR}/" - BBFILE_PRIORITY_bsp = "6" + BBFILE_COLLECTIONS += "bsp" + BBFILE_PATTERN_bsp = "^${LAYERDIR}/" + BBFILE_PRIORITY_bsp = "6" + + LAYERDEPENDS_bsp = "intel" @@ -361,9 +355,18 @@ To illustrate the string substitutions, here are the corresponding statements from the Crown Bay conf/layer.conf file: + # We have a conf and classes directory, add to BBPATH + BBPATH .= ":${LAYERDIR}" + + # We have a recipes directory, add to BBFILES + BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + BBFILE_COLLECTIONS += "crownbay" - BBFILE_PATTERN_crownbay = "^${LAYERDIR}/" + BBFILE_PATTERN_crownbay := "^${LAYERDIR}/" BBFILE_PRIORITY_crownbay = "6" + + LAYERDEPENDS_crownbay = "intel" @@ -425,12 +428,12 @@ To use an include file, you simply include them in the machine configuration file. - For example, the Crown Bay BSP crownbay.conf contains the + For example, the Crown Bay BSP crownbay-noemgd.conf contains the following statements: - require conf/machine/include/intel-core2-32-common.inc require conf/machine/include/meta-intel.inc - require conf/machine/include/meta-intel-emgd.inc + require conf/machine/include/intel-core2-32-common.inc + require conf/machine/include/intel-common-pkgarch.inc