diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2021-08-26 22:04:05 +0300 |
---|---|---|
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | 2021-08-26 22:04:05 +0300 |
commit | ae908254d22318b9e27acf6e5e28d1a4ab5e2195 (patch) | |
tree | 0d057ad30ca7f77c7c299762d60929e34ff51ab5 /meta-google/recipes-google/kcs/gbmc-kcs-config.bb | |
parent | 67327ddc580cb9a85219a534844832a1682780d4 (diff) | |
parent | 66d661a7f7784d58c8a437f1cdeb0c0ab03f0364 (diff) | |
download | openbmc-ae908254d22318b9e27acf6e5e28d1a4ab5e2195.tar.xz |
Merge tag '0.70' of ssh://git-amr-1.devtools.intel.com:29418/openbmc-openbmc into update
Diffstat (limited to 'meta-google/recipes-google/kcs/gbmc-kcs-config.bb')
-rw-r--r-- | meta-google/recipes-google/kcs/gbmc-kcs-config.bb | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/meta-google/recipes-google/kcs/gbmc-kcs-config.bb b/meta-google/recipes-google/kcs/gbmc-kcs-config.bb deleted file mode 100644 index ca7110660..000000000 --- a/meta-google/recipes-google/kcs/gbmc-kcs-config.bb +++ /dev/null @@ -1,46 +0,0 @@ -SUMMARY = "Configures KCS for a gBMC system" -PR = "r1" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" - -inherit systemd - -S = "${WORKDIR}" - -PROVIDES += "virtual-obmc-host-ipmi-hw" -RPROVIDES_${PN} += "virtual-obmc-host-ipmi-hw" - -FILES_${PN} += "${systemd_system_unitdir}" -RDEPENDS_${PN} += "google-kcsbridge" - -GBMC_KCS_DEV ?= "" - -def systemd_escape_char(c): - return '\\x{:x}'.format(ord(c)) - -def systemd_escape(unit): - import string - ret = '' - if len(unit) > 0 and unit[0] == '.': - ret += systemd_escape_char(unit[0]) - unit = unit[1:] - for c in unit: - if c == '/': - ret += '-' - elif c not in {*string.ascii_letters, *string.digits, ':', '_', '.'}: - ret += systemd_escape_char(c) - else: - ret += c - return ret - -do_install_append() { - if [ -z '${GBMC_KCS_DEV}' ]; then - echo "Missing GBMC_KCS_DEV" >&2 - exit 1 - fi - - wantdir=${D}${systemd_system_unitdir}/multi-user.target.wants - install -d -m0755 $wantdir - inst="${@systemd_escape(GBMC_KCS_DEV)}" - ln -sv ../kcsbridge@.service $wantdir/kcsbridge@$inst.service -} |