meta-quanta: add meta-gbs machine
The meta-gbs equipped with Nuvoton NPCM730 BMC SoC.
Tested: Build GBS image and load on the target hardware
(From meta-quanta rev: c679ff6a47362319a59a511d710a116ddd90ca2a)
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: I5b85609a5c310ce1b7dc13df867b7c230cf59c39
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-quanta/meta-gbs/conf/machine/gbs.conf b/meta-quanta/meta-gbs/conf/machine/gbs.conf
new file mode 100644
index 0000000..32dae06
--- /dev/null
+++ b/meta-quanta/meta-gbs/conf/machine/gbs.conf
@@ -0,0 +1,40 @@
+KMACHINE = "nuvoton"
+KERNEL_DEVICETREE = "${KMACHINE}-npcm730-gbs.dtb"
+
+UBOOT_MACHINE = "PolegSVB_config"
+IGPS_MACHINE = "GBS"
+
+FLASH_SIZE = "32768"
+
+MACHINEOVERRIDES .= ":npcm7xx"
+
+require conf/machine/include/npcm7xx.inc
+require conf/machine/include/obmc-bsp-common.inc
+
+SERIAL_CONSOLES = "115200;ttyS0"
+
+OBMC_MACHINE_FEATURES += "\
+ obmc-phosphor-fan-mgmt \
+ obmc-phosphor-chassis-mgmt \
+ obmc-phosphor-flash-mgmt \
+ obmc-host-ipmi \
+ obmc-host-state-mgmt \
+ obmc-chassis-state-mgmt \
+ obmc-bmc-state-mgmt \
+ "
+
+VIRTUAL-RUNTIME_obmc-host-state-manager = "x86-power-control"
+VIRTUAL-RUNTIME_obmc-chassis-state-manager = "x86-power-control"
+VIRTUAL-RUNTIME_obmc-discover-system-state = "x86-power-control"
+
+PREFERRED_PROVIDER_virtual/obmc-chassis-mgmt = "packagegroup-gbs-apps"
+PREFERRED_PROVIDER_virtual/obmc-fan-mgmt = "packagegroup-gbs-apps"
+PREFERRED_PROVIDER_virtual/obmc-flash-mgmt = "packagegroup-gbs-apps"
+PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw = "phosphor-ipmi-kcs"
+PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native = "gbs-led-manager-config-native"
+
+# Remove unneeded binaries from image
+IMAGE_FEATURES_remove = "obmc-fan-control"
+IMAGE_FEATURES_remove = "obmc-software"
+IMAGE_FEATURES_remove = "obmc-debug-collector"
+IMAGE_FEATURES_remove = "obmc-net-ipmi"