meta-inspur: nf5280m7 Add new machine layer
the Inspur NF5280M7 is an x86 platform server with an AST2600-based BMC.
Tested: Built nf5280m7 and verified the image-bmc is generated.
Change-Id: Iab86a8682d1fc8f3320590e63613a22a14571fcd
Signed-off-by: Xiaoyu Ma <maxiaoyu@inspur.com>
diff --git a/meta-inspur/meta-nf5280m7/conf/layer.conf b/meta-inspur/meta-nf5280m7/conf/layer.conf
new file mode 100644
index 0000000..478b530
--- /dev/null
+++ b/meta-inspur/meta-nf5280m7/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 += "nf5280m7-layer"
+BBFILE_PATTERN_nf5280m7-layer = "^${LAYERDIR}/"
+LAYERSERIES_COMPAT_nf5280m7-layer = "langdale mickledore"
diff --git a/meta-inspur/meta-nf5280m7/conf/machine/nf5280m7.conf b/meta-inspur/meta-nf5280m7/conf/machine/nf5280m7.conf
new file mode 100644
index 0000000..10e3fd2
--- /dev/null
+++ b/meta-inspur/meta-nf5280m7/conf/machine/nf5280m7.conf
@@ -0,0 +1,16 @@
+# Add a device tree for nf5280m7
+KMACHINE = "aspeed"
+KERNEL_DEVICETREE = "${KMACHINE}-bmc-inspur-${MACHINE}.dtb"
+
+UBOOT_MACHINE = "ast2600_openbmc_spl_defconfig"
+UMACHINE = "ast2600"
+UBOOT_DEVICETREE = "${UMACHINE}-inspur-${MACHINE}"
+SPL_BINARY = "spl/u-boot-spl.bin"
+
+require conf/machine/include/ast2600.inc
+require conf/machine/include/obmc-bsp-common.inc
+
+FLASH_SIZE = "65536"
+
+SOCSEC_SIGN_ENABLE = "0"
+
diff --git a/meta-inspur/meta-nf5280m7/conf/templates/default/bblayers.conf.sample b/meta-inspur/meta-nf5280m7/conf/templates/default/bblayers.conf.sample
new file mode 100644
index 0000000..9b84ff7
--- /dev/null
+++ b/meta-inspur/meta-nf5280m7/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-security \
+ ##OEROOT##/meta-phosphor \
+ ##OEROOT##/meta-aspeed \
+ ##OEROOT##/meta-inspur \
+ ##OEROOT##/meta-inspur/meta-nf5280m7 \
+ "
diff --git a/meta-inspur/meta-nf5280m7/conf/templates/default/conf-notes.txt b/meta-inspur/meta-nf5280m7/conf/templates/default/conf-notes.txt
new file mode 100644
index 0000000..9b3c01a
--- /dev/null
+++ b/meta-inspur/meta-nf5280m7/conf/templates/default/conf-notes.txt
@@ -0,0 +1,2 @@
+Common targets are:
+ obmc-phosphor-image
diff --git a/meta-inspur/meta-nf5280m7/conf/templates/default/local.conf.sample b/meta-inspur/meta-nf5280m7/conf/templates/default/local.conf.sample
new file mode 100644
index 0000000..31ff68e
--- /dev/null
+++ b/meta-inspur/meta-nf5280m7/conf/templates/default/local.conf.sample
@@ -0,0 +1,18 @@
+MACHINE ??= "nf5280m7"
+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"
+