summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLisa Liu <liuyj19@lenovo.com>2019-06-25 08:55:20 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-07-09 05:25:00 +0300
commit8d5ca516e0c9f1ee5390fdbdfc1d57eee586134c (patch)
treefa40b3e607ff655f50ee8690c25b4a2e7c8faf38
parentc8d9dec86615e8fd80c2d4c9bbb7a0a2ade54e0c (diff)
downloadopenbmc-8d5ca516e0c9f1ee5390fdbdfc1d57eee586134c.tar.xz
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 <liuyj19@lenovo.com> Change-Id: I2f20578eee3849ac49988e0cbc69f21f0676e22f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--meta-lenovo/meta-hr855xg2/conf/bblayers.conf.sample23
-rw-r--r--meta-lenovo/meta-hr855xg2/conf/conf-notes.txt5
-rw-r--r--meta-lenovo/meta-hr855xg2/conf/distro/openbmc-hr855xg2.conf7
-rw-r--r--meta-lenovo/meta-hr855xg2/conf/layer.conf14
-rw-r--r--meta-lenovo/meta-hr855xg2/conf/local.conf.sample24
-rw-r--r--meta-lenovo/meta-hr855xg2/conf/machine/hr855xg2.conf19
6 files changed, 92 insertions, 0 deletions
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"