meta-ieisystems: fp5280g3: Add new machine layer
The IEISystmes FP5280G3 is a power platform server with an
AST2600-based BMC.
Tested: Built fp5280g3 successfully.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I5306b5c9959ad8da21b9e5b24b2fb6799ee795d3
diff --git a/meta-ieisystems/meta-fp5280g3/conf/distro/openbmc-fp5280g3.conf b/meta-ieisystems/meta-fp5280g3/conf/distro/openbmc-fp5280g3.conf
new file mode 100644
index 0000000..2570a9a
--- /dev/null
+++ b/meta-ieisystems/meta-fp5280g3/conf/distro/openbmc-fp5280g3.conf
@@ -0,0 +1 @@
+require conf/distro/openbmc-openpower.conf
diff --git a/meta-ieisystems/meta-fp5280g3/conf/layer.conf b/meta-ieisystems/meta-fp5280g3/conf/layer.conf
new file mode 100644
index 0000000..057258b
--- /dev/null
+++ b/meta-ieisystems/meta-fp5280g3/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 += "fp5280g3-layer"
+BBFILE_PATTERN_fp5280g3-layer := "^${LAYERDIR}/"
+LAYERSERIES_COMPAT_fp5280g3-layer = "nanbield scarthgap"
diff --git a/meta-ieisystems/meta-fp5280g3/conf/machine/fp5280g3.conf b/meta-ieisystems/meta-fp5280g3/conf/machine/fp5280g3.conf
new file mode 100644
index 0000000..8eb26fc
--- /dev/null
+++ b/meta-ieisystems/meta-fp5280g3/conf/machine/fp5280g3.conf
@@ -0,0 +1,21 @@
+KMACHINE = "aspeed"
+KERNEL_DEVICETREE = " \
+ aspeed/${KMACHINE}-bmc-ieisystems-${MACHINE}.dtb \
+"
+
+UBOOT_MACHINE = "ast2600_openbmc_spl_emmc_defconfig"
+UBOOT_DEVICETREE = "ast2600-evb"
+#UBOOT_DEVICETREE = "ast2600-ieisystems-fp5280g3"
+SPL_BINARY = "spl/u-boot-spl.bin"
+
+require conf/distro/include/phosphor-mmc.inc
+require conf/machine/include/ast2600.inc
+require conf/machine/include/obmc-bsp-common.inc
+require conf/machine/include/openpower.inc
+
+DISTRO_FEATURES += "mpreboot"
+MACHINE_FEATURES += "phal"
+
+SOCSEC_SIGN_ENABLE = "0"
+
+FLASH_SIZE = "16777216"
diff --git a/meta-ieisystems/meta-fp5280g3/conf/templates/default/bblayers.conf.sample b/meta-ieisystems/meta-fp5280g3/conf/templates/default/bblayers.conf.sample
new file mode 100644
index 0000000..8b2699e
--- /dev/null
+++ b/meta-ieisystems/meta-fp5280g3/conf/templates/default/bblayers.conf.sample
@@ -0,0 +1,19 @@
+# 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-perl \
+ ##OEROOT##/meta-openembedded/meta-python \
+ ##OEROOT##/meta-phosphor \
+ ##OEROOT##/meta-aspeed \
+ ##OEROOT##/meta-openpower \
+ ##OEROOT##/meta-ieisystems \
+ ##OEROOT##/meta-ieisystems/meta-fp5280g3 \
+ "
diff --git a/meta-ieisystems/meta-fp5280g3/conf/templates/default/conf-notes.txt b/meta-ieisystems/meta-fp5280g3/conf/templates/default/conf-notes.txt
new file mode 100644
index 0000000..9b3c01a
--- /dev/null
+++ b/meta-ieisystems/meta-fp5280g3/conf/templates/default/conf-notes.txt
@@ -0,0 +1,2 @@
+Common targets are:
+ obmc-phosphor-image
diff --git a/meta-ieisystems/meta-fp5280g3/conf/templates/default/local.conf.sample b/meta-ieisystems/meta-fp5280g3/conf/templates/default/local.conf.sample
new file mode 100644
index 0000000..279569a
--- /dev/null
+++ b/meta-ieisystems/meta-fp5280g3/conf/templates/default/local.conf.sample
@@ -0,0 +1,17 @@
+MACHINE ??= "fp5280g3"
+DISTRO ?= "openbmc-openpower"
+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"