[PATCH openbmc v2 1/2] Add config-in-skeleton variables OBMC_SKELETON_REPO
OpenBMC Patches
openbmc-patches at stwcx.xyz
Fri Jun 17 09:50:32 AEST 2016
From: Brad Bishop <bradleyb at fuzziesquirrel.com>
Add OBMC_SKELETON_REPO and OBMC_SKELETON_MACHINE.
This makes it easy to point at an alternate repository when hacking
on new systems, before support for the new system is mainlined.
OBMC_SKELETON_REPO: an alternate skeleton repository or branch.
- The default is "github:openbmc/skeleton"
OBMC_SKELETON_MACHINE: an alternate machine to use within skeleton.
- The default is "${MACHINE}"
Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
---
meta-phosphor/classes/config-in-skeleton.bbclass | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta-phosphor/classes/config-in-skeleton.bbclass b/meta-phosphor/classes/config-in-skeleton.bbclass
index 33266be..5a290da 100644
--- a/meta-phosphor/classes/config-in-skeleton.bbclass
+++ b/meta-phosphor/classes/config-in-skeleton.bbclass
@@ -4,11 +4,14 @@
inherit allarch
inherit setuptools
-SRC_URI += "git://github.com/openbmc/skeleton;subpath=configs"
+OBMC_SKELETON_REPO ?= "git://github.com/openbmc/skeleton"
+OBMC_SKELETON_MACHINE ?= "${MACHINE}"
+
+SRC_URI += "${OBMC_SKELETON_REPO};subpath=configs"
S = "${WORKDIR}/configs"
python() {
- machine = d.getVar('MACHINE', True).capitalize() + '.py'
+ machine = d.getVar('OBMC_SKELETON_MACHINE', True).capitalize() + '.py'
d.setVar('_config_in_skeleton', machine)
}
--
2.8.4
More information about the openbmc
mailing list