diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-02-23 04:50:13 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-02-24 19:51:24 +0300 |
commit | 3217b271500e887b01241da3f4f43f27b9c6ac5d (patch) | |
tree | 41004653feb9f288dfaec7fb96f56dc3f14874f0 /meta-phosphor/classes | |
parent | ae46d563088822a0100cae5f5d9a6192afc1d5c8 (diff) | |
download | openbmc-3217b271500e887b01241da3f4f43f27b9c6ac5d.tar.xz |
Change how hwmon.pl is invoked for MRW systems
This minor tweak removes the need for MRW using systems
to append the phosphor-hwmon recipe in their layer.
Change-Id: I3d9dcfff452e26d191df37ae7d759c6c2c3f2cd4
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/classes')
-rw-r--r-- | meta-phosphor/classes/phosphor-hwmon-mrw.bbclass | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/meta-phosphor/classes/phosphor-hwmon-mrw.bbclass b/meta-phosphor/classes/phosphor-hwmon-mrw.bbclass deleted file mode 100644 index 0821a2240f..0000000000 --- a/meta-phosphor/classes/phosphor-hwmon-mrw.bbclass +++ /dev/null @@ -1,41 +0,0 @@ -#Common code to generate the hwmon conf files from the MRW. -#Can be pulled in on a per system basis. - -DEPENDS += "mrw-perl-tools-native mrw-native" - -do_compile_append() { - ${STAGING_BINDIR_NATIVE}/perl-native/perl \ - ${STAGING_BINDIR_NATIVE}/hwmon.pl \ - -x ${STAGING_DATADIR_NATIVE}/obmc-mrw/${MACHINE}.xml -} - -def find_conf_files(): - from fnmatch import fnmatch - myfiles = [] - - #These conf files generated by hwmon.pl are in - #subdirectories which we need to preserve the path to. - for root, dirs, files in os.walk("./"): - for name in files: - if fnmatch(name, "*.conf"): - myfiles.append(os.path.join(root, name)) - - return myfiles - -python install_conf_files() { - from shutil import copy - - files = find_conf_files() - - install_dir = os.path.join(d.getVar("D", True), - "etc", "default", "obmc", "hwmon") - for f in files: - dest = os.path.join(install_dir, f) - parent = os.path.dirname(dest) - if not os.path.exists(parent): - os.makedirs(parent) - - copy(f, dest) -} - -do_install[postfuncs] += "install_conf_files" |