diff options
author | Tim Lee <timlee660101@gmail.com> | 2022-10-06 12:15:49 +0300 |
---|---|---|
committer | Tim Lee <chli30@nuvoton.com> | 2022-11-16 04:31:32 +0300 |
commit | 85c187e9a14110d8a7a1745990a4acc817a8ac3c (patch) | |
tree | 2a14d47a341e3328e05cf10d6bb418e551f8b8c6 /meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf | |
parent | fb0f38e11334e276e6b13f51d4bf588639cc0ad1 (diff) | |
download | openbmc-85c187e9a14110d8a7a1745990a4acc817a8ac3c.tar.xz |
meta-evb-nuvoton: add meta-evb-npcm845 layer for Arbel EVB
Create meta-evb-npcm845 layer under meta-evb-nuvoton then make "setup" script
looks for machine config files being present to know that the meta-layer
contains a valid machine for OpenBMC.
Also add symlinks for the machine config files from meta-nuvoton into
meta-evb-nuvoton so that setup recognizes them as valid machines, but
using the phosphor layers.
Tested:
/openbmc$ . setup evb-npcm845
Machine evb-npcm845 found in meta-evb/meta-evb-nuvoton/meta-evb-npcm845
Common targets are:
obmc-phosphor-image
Signed-off-by: Tim Lee <timlee660101@gmail.com>
Change-Id: I21de23ded94244bed52c571a8e68b38cf498fc54
Diffstat (limited to 'meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf')
5 files changed, 50 insertions, 0 deletions
diff --git a/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/layer.conf b/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/layer.conf new file mode 100644 index 0000000000..a1959ccc2a --- /dev/null +++ b/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/layer.conf @@ -0,0 +1,10 @@ +# 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" + +BBFILE_COLLECTIONS += "evb-npcm845" +BBFILE_PATTERN_evb-npcm845 = "^${LAYERDIR}/" +LAYERSERIES_COMPAT_evb-npcm845 = "kirkstone langdale" diff --git a/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/machine/evb-npcm845.conf b/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/machine/evb-npcm845.conf new file mode 100644 index 0000000000..e1dd52150e --- /dev/null +++ b/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/machine/evb-npcm845.conf @@ -0,0 +1 @@ +../../../../../meta-nuvoton/conf/machine/evb-npcm845.conf diff --git a/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/templates/default/bblayers.conf.sample b/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/templates/default/bblayers.conf.sample new file mode 100644 index 0000000000..71d9e569d8 --- /dev/null +++ b/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/templates/default/bblayers.conf.sample @@ -0,0 +1,20 @@ +# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf +# changes incompatibly +LCONF_VERSION = "8" + +BBPATH = "${TOPDIR}" +BBFILES ?= "" + +BBLAYERS ?= " \ + ##OEROOT##/meta \ + ##OEROOT##/meta-openembedded/meta-oe \ + ##OEROOT##/meta-openembedded/meta-networking \ + ##OEROOT##/meta-openembedded/meta-python \ + ##OEROOT##/meta-phosphor \ + ##OEROOT##/meta-arm/meta-arm \ + ##OEROOT##/meta-arm/meta-arm-toolchain \ + ##OEROOT##/meta-nuvoton \ + ##OEROOT##/meta-evb \ + ##OEROOT##/meta-evb/meta-evb-nuvoton \ + ##OEROOT##/meta-evb/meta-evb-nuvoton/meta-evb-npcm845 \ + " diff --git a/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/templates/default/conf-notes.txt b/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/templates/default/conf-notes.txt new file mode 100644 index 0000000000..9b3c01a556 --- /dev/null +++ b/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/templates/default/conf-notes.txt @@ -0,0 +1,2 @@ +Common targets are: + obmc-phosphor-image diff --git a/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/templates/default/local.conf.sample b/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/templates/default/local.conf.sample new file mode 100644 index 0000000000..21aaace88d --- /dev/null +++ b/meta-evb/meta-evb-nuvoton/meta-evb-npcm845/conf/templates/default/local.conf.sample @@ -0,0 +1,17 @@ +MACHINE ??= "evb-npcm845" +DISTRO ?= "openbmc-phosphor" +PACKAGE_CLASSES ?= "package_ipk" +SANITY_TESTED_DISTROS:append ?= " *" +EXTRA_IMAGE_FEATURES ?= "debug-tweaks" +USER_CLASSES ?= "buildstats" +PATCHRESOLVE = "noop" +BB_DISKMON_DIRS ??= "\ + STOPTASKS,${TMPDIR},1G,100K \ + STOPTASKS,${DL_DIR},1G,100K \ + STOPTASKS,${SSTATE_DIR},1G,100K \ + STOPTASKS,/tmp,100M,100K \ + HALT,${TMPDIR},100M,1K \ + HALT,${DL_DIR},100M,1K \ + HALT,${SSTATE_DIR},100M,1K \ + HALT,/tmp,10M,1K" +CONF_VERSION = "2" |