Use OE reference qemuarm
-Replace qemuphosphor sample bsp with reference qemuarm.
-Pull in phosphor features via local.conf
diff --git a/conf/bblayers.conf.sample b/conf/bblayers.conf.sample
index caab032..2f0321f 100644
--- a/conf/bblayers.conf.sample
+++ b/conf/bblayers.conf.sample
@@ -9,7 +9,6 @@
##OEROOT##/meta \
##OEROOT##/meta-yocto \
##OEROOT##/meta-phosphor \
- ##OEROOT##/meta-phosphor/meta-sample-bsp \
"
BBLAYERS_NON_REMOVABLE ?= " \
##OEROOT##/meta \
diff --git a/conf/conf-notes.txt b/conf/conf-notes.txt
index 3570355..f2db15f 100644
--- a/conf/conf-notes.txt
+++ b/conf/conf-notes.txt
@@ -2,5 +2,4 @@
obmc-phosphor-image
You can also run generated qemu images with a command like:
- idir=tmp/deploy/images/qemuphosphor
- runqemu qemuarm $idir/zImage-qemuphosphor.bin $idir/obmc-phosphor-image-qemuphosphor.ext4
+ runqemu qemuarm
diff --git a/conf/distro/openbmc-phosphor.conf b/conf/distro/openbmc-phosphor.conf
index ee457c8..94f1752 100644
--- a/conf/distro/openbmc-phosphor.conf
+++ b/conf/distro/openbmc-phosphor.conf
@@ -25,3 +25,7 @@
obmc-phosphor-system-mgmt \
${DISTRO_FEATURES_LIBC} \
"
+
+MACHINE_FEATURES += " \
+ ${OBMC_MACHINE_FEATURES} \
+ "
diff --git a/conf/local.conf.sample b/conf/local.conf.sample
index e6b6d66..6a91927 100644
--- a/conf/local.conf.sample
+++ b/conf/local.conf.sample
@@ -34,7 +34,7 @@
#MACHINE ?= "edgerouter"
#
# This sets the default machine to be qemux86 if no other machine is selected:
-MACHINE ??= "qemuphosphor"
+MACHINE ??= "qemuarm"
#
# Where to place downloads
@@ -242,3 +242,5 @@
EXTRA_USERS_PARAMS = " \
usermod -p '\$1\$UGMqyqdG\$FZiylVFmRRfl9Z0Ue8G7e/' root; \
"
+
+require conf/machine/include/sample.inc
diff --git a/conf/machine/include/qemuphosphor.inc b/conf/machine/include/qemuphosphor.inc
deleted file mode 100644
index 04db4ba..0000000
--- a/conf/machine/include/qemuphosphor.inc
+++ /dev/null
@@ -1,5 +0,0 @@
-# The qemu helper scripts don't work with
-# cpio images.
-
-# Prefer linux-yocto with qemu.
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
diff --git a/conf/machine/include/sample.inc b/conf/machine/include/sample.inc
new file mode 100644
index 0000000..7db2883
--- /dev/null
+++ b/conf/machine/include/sample.inc
@@ -0,0 +1,19 @@
+OBMC_MACHINE_FEATURES += "\
+ obmc-phosphor-fan-mgmt \
+ obmc-phosphor-chassis-mgmt \
+ obmc-phosphor-sensor-mgmt \
+ obmc-phosphor-flash-mgmt \
+ "
+
+VIRTUAL-RUNTIME_obmc-phosphor-fan-ctl = " \
+ obmc-phosphor-qemu \
+ "
+VIRTUAL-RUNTIME_obmc-phosphor-sensor-ctl = " \
+ obmc-phosphor-qemu \
+ "
+VIRTUAL-RUNTIME_obmc-phosphor-chassis-ctl = " \
+ obmc-phosphor-qemu \
+ "
+VIRTUAL-RUNTIME_obmc-phosphor-flash-ctl = " \
+ obmc-phosphor-qemu \
+ "