meta-lenovo: hr855xg2: Add hr855xg2 platform

hr855xgw is a lenovo platform. Add machine to repo.

Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: I6e27184cbbc3912551731209ced308e3cf02205e
diff --git a/meta-hr855xg2/conf/bblayers.conf.sample b/meta-hr855xg2/conf/bblayers.conf.sample
new file mode 100644
index 0000000..a14ab61
--- /dev/null
+++ b/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-hr855xg2/conf/conf-notes.txt b/meta-hr855xg2/conf/conf-notes.txt
new file mode 100644
index 0000000..96eed07
--- /dev/null
+++ b/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-hr855xg2/conf/distro/openbmc-hr855xg2.conf b/meta-hr855xg2/conf/distro/openbmc-hr855xg2.conf
new file mode 100644
index 0000000..fb36e34
--- /dev/null
+++ b/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-hr855xg2/conf/layer.conf b/meta-hr855xg2/conf/layer.conf
new file mode 100644
index 0000000..23d6c7a
--- /dev/null
+++ b/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-hr855xg2/conf/local.conf.sample b/meta-hr855xg2/conf/local.conf.sample
new file mode 100644
index 0000000..b418c09
--- /dev/null
+++ b/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-hr855xg2/conf/machine/hr855xg2.conf b/meta-hr855xg2/conf/machine/hr855xg2.conf
new file mode 100644
index 0000000..73cff74
--- /dev/null
+++ b/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"