From 8d5ca516e0c9f1ee5390fdbdfc1d57eee586134c Mon Sep 17 00:00:00 2001 From: Lisa Liu Date: Tue, 25 Jun 2019 13:55:20 +0800 Subject: meta-lenovo: hr855xg2: Add hr855xg2 platform hr855xgw is a lenovo platform. Add machine to repo. (From meta-lenovo rev: 57f917c8d869833d8d3a4fd6a914bc795cf6b843) Signed-off-by: Lisa Liu Change-Id: I2f20578eee3849ac49988e0cbc69f21f0676e22f Signed-off-by: Brad Bishop --- .../meta-hr855xg2/conf/bblayers.conf.sample | 23 +++++++++++++++++++++ meta-lenovo/meta-hr855xg2/conf/conf-notes.txt | 5 +++++ .../conf/distro/openbmc-hr855xg2.conf | 7 +++++++ meta-lenovo/meta-hr855xg2/conf/layer.conf | 14 +++++++++++++ meta-lenovo/meta-hr855xg2/conf/local.conf.sample | 24 ++++++++++++++++++++++ .../meta-hr855xg2/conf/machine/hr855xg2.conf | 19 +++++++++++++++++ 6 files changed, 92 insertions(+) create mode 100644 meta-lenovo/meta-hr855xg2/conf/bblayers.conf.sample create mode 100644 meta-lenovo/meta-hr855xg2/conf/conf-notes.txt create mode 100644 meta-lenovo/meta-hr855xg2/conf/distro/openbmc-hr855xg2.conf create mode 100644 meta-lenovo/meta-hr855xg2/conf/layer.conf create mode 100644 meta-lenovo/meta-hr855xg2/conf/local.conf.sample create mode 100644 meta-lenovo/meta-hr855xg2/conf/machine/hr855xg2.conf (limited to 'meta-lenovo') diff --git a/meta-lenovo/meta-hr855xg2/conf/bblayers.conf.sample b/meta-lenovo/meta-hr855xg2/conf/bblayers.conf.sample new file mode 100644 index 000000000..a14ab61ea --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/conf/bblayers.conf.sample @@ -0,0 +1,23 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +# 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-openembedded/meta-webserver \ + ##OEROOT##/meta-phosphor \ + ##OEROOT##/meta-aspeed \ + ##OEROOT##/meta-x86 \ + ##OEROOT##/meta-google \ + ##OEROOT##/meta-lenovo \ + ##OEROOT##/meta-lenovo/meta-hr855xg2 \ + " diff --git a/meta-lenovo/meta-hr855xg2/conf/conf-notes.txt b/meta-lenovo/meta-hr855xg2/conf/conf-notes.txt new file mode 100644 index 000000000..96eed07df --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/conf/conf-notes.txt @@ -0,0 +1,5 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +Common targets are: + obmc-phosphor-image diff --git a/meta-lenovo/meta-hr855xg2/conf/distro/openbmc-hr855xg2.conf b/meta-lenovo/meta-hr855xg2/conf/distro/openbmc-hr855xg2.conf new file mode 100644 index 000000000..fb36e34f4 --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/conf/distro/openbmc-hr855xg2.conf @@ -0,0 +1,7 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +require conf/distro/include/phosphor-base.inc + +DISTRO_NAME = "Lenovo Hr855xg2 OpenBMC" +DISTRO_VERSION = "0.05" diff --git a/meta-lenovo/meta-hr855xg2/conf/layer.conf b/meta-lenovo/meta-hr855xg2/conf/layer.conf new file mode 100644 index 000000000..23d6c7a0f --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/conf/layer.conf @@ -0,0 +1,14 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +# 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 += "hr855xg2-layer" +BBFILE_PATTERN_hr855xg2-layer := "^${LAYERDIR}/" +BBFILE_PRIORITY_hr855xg2-layer = "5" +LAYERSERIES_COMPAT_hr855xg2-layer = "thud warrior" diff --git a/meta-lenovo/meta-hr855xg2/conf/local.conf.sample b/meta-lenovo/meta-hr855xg2/conf/local.conf.sample new file mode 100644 index 000000000..b418c09f5 --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/conf/local.conf.sample @@ -0,0 +1,24 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +MACHINE ??= "hr855xg2" +DISTRO ?= "openbmc-hr855xg2" +PACKAGE_CLASSES ?= "package_rpm" +SANITY_TESTED_DISTROS_append ?= " *" +EXTRA_IMAGE_FEATURES = "debug-tweaks" +USER_CLASSES ?= "buildstats image-mklibs image-prelink" +PATCHRESOLVE = "noop" +BB_DISKMON_DIRS = "\ + STOPTASKS,${TMPDIR},1G,100K \ + STOPTASKS,${DL_DIR},1G,100K \ + STOPTASKS,${SSTATE_DIR},1G,100K \ + STOPTASKS,/tmp,100M,100K \ + ABORT,${TMPDIR},100M,1K \ + ABORT,${DL_DIR},100M,1K \ + ABORT,${SSTATE_DIR},100M,1K \ + ABORT,/tmp,10M,1K" +CONF_VERSION = "1" +INHERIT += "extrausers" +EXTRA_USERS_PARAMS = " \ + usermod -p '\$1\$UGMqyqdG\$FZiylVFmRRfl9Z0Ue8G7e/' root; \ + " diff --git a/meta-lenovo/meta-hr855xg2/conf/machine/hr855xg2.conf b/meta-lenovo/meta-hr855xg2/conf/machine/hr855xg2.conf new file mode 100644 index 000000000..73cff747c --- /dev/null +++ b/meta-lenovo/meta-hr855xg2/conf/machine/hr855xg2.conf @@ -0,0 +1,19 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +KMACHINE = "aspeed" +KERNEL_DEVICETREE = "${KMACHINE}-bmc-lenovo-${MACHINE}.dtb" + +UBOOT_MACHINE = "ast_g5_phy_config" + +require conf/machine/include/ast2500.inc +require conf/machine/include/obmc-bsp-common.inc +require conf/machine/include/lenovo.inc + +FLASH_SIZE = "32768" + +PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw = "phosphor-ipmi-bt" +PREFERRED_PROVIDER_virtual/obmc-chassis-mgmt = "packagegroup-lenovo-apps" +PREFERRED_PROVIDER_virtual/obmc-fan-mgmt = "packagegroup-lenovo-apps" +PREFERRED_PROVIDER_virtual/obmc-flash-mgmt = "packagegroup-lenovo-apps" +PREFERRED_PROVIDER_virtual/obmc-system-mgmt = "packagegroup-lenovo-apps" -- cgit v1.2.3