meta-quanta: Add meta-runbmc-nuvoton machine

Initial introduction of Quanta RunBMC family.
The meta-runbmc-nuvoton equipped with Nuvoton NPCM750 BMC SoC.

Tested: Build Quanta RunBMC board and load on the target hardware.
Ensure that BMC boots to console.

Change-Id: I1a211ceef91362e6276e09b396a4810f97e76377
Signed-off-by: Samuel Jiang <Samuel.Jiang@quantatw.com>
Signed-off-by: PKLee-Quanta <p.k.lee@quantatw.com>
diff --git a/meta-runbmc-nuvoton/conf/bblayers.conf.sample b/meta-runbmc-nuvoton/conf/bblayers.conf.sample
new file mode 100644
index 0000000..1e6f3b0
--- /dev/null
+++ b/meta-runbmc-nuvoton/conf/bblayers.conf.sample
@@ -0,0 +1,27 @@
+# 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-phosphor \
+  ##OEROOT##/meta-nuvoton \
+  ##OEROOT##/meta-quanta \
+  ##OEROOT##/meta-quanta/meta-runbmc-nuvoton \
+  "
+BBLAYERS_NON_REMOVABLE ?= " \
+  ##OEROOT##/meta \
+  ##OEROOT##/meta-openembedded/meta-oe \
+  ##OEROOT##/meta-openembedded/meta-networking \
+  ##OEROOT##/meta-openembedded/meta-python \
+  ##OEROOT##/meta-phosphor \
+  ##OEROOT##/meta-nuvoton \
+  ##OEROOT##/meta-quanta \
+  ##OEROOT##/meta-quanta/meta-runbmc-nuvoton \
+  "
diff --git a/meta-runbmc-nuvoton/conf/conf-notes.txt b/meta-runbmc-nuvoton/conf/conf-notes.txt
new file mode 100644
index 0000000..9b3c01a
--- /dev/null
+++ b/meta-runbmc-nuvoton/conf/conf-notes.txt
@@ -0,0 +1,2 @@
+Common targets are:
+     obmc-phosphor-image
diff --git a/meta-runbmc-nuvoton/conf/layer.conf b/meta-runbmc-nuvoton/conf/layer.conf
new file mode 100644
index 0000000..0f45bc7
--- /dev/null
+++ b/meta-runbmc-nuvoton/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 += "runbmc-nuvoton-layer"
+BBFILE_PATTERN_runbmc-nuvoton-layer = ""
+LAYERSERIES_COMPAT_runbmc-nuvoton-layer = "thud"
diff --git a/meta-runbmc-nuvoton/conf/local.conf.sample b/meta-runbmc-nuvoton/conf/local.conf.sample
new file mode 100644
index 0000000..37ae2b3
--- /dev/null
+++ b/meta-runbmc-nuvoton/conf/local.conf.sample
@@ -0,0 +1,17 @@
+MACHINE ??= "runbmc-nuvoton"
+DISTRO ?= "openbmc-phosphor"
+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"
diff --git a/meta-runbmc-nuvoton/conf/machine/runbmc-nuvoton.conf b/meta-runbmc-nuvoton/conf/machine/runbmc-nuvoton.conf
new file mode 100644
index 0000000..4653ce5
--- /dev/null
+++ b/meta-runbmc-nuvoton/conf/machine/runbmc-nuvoton.conf
@@ -0,0 +1,11 @@
+KMACHINE = "nuvoton"
+KERNEL_DEVICETREE = "${KMACHINE}-npcm750-runbmc.dtb"
+
+UBOOT_MACHINE = "PolegSVB_config"
+
+FLASH_SIZE = "32768"
+require conf/machine/include/npcm7xx.inc
+require conf/machine/include/obmc-bsp-common.inc
+
+IMAGE_FSTYPES += " cpio.${INITRAMFS_CTYPE}.u-boot"
+IMAGE_FSTYPES += " mtd-ubi-tar"