From 9936f86df6fc55be042cec5eb15f6e19a9e7c890 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Mon, 19 Sep 2022 09:13:20 -0700 Subject: Run oe-stylize on our files In all of our recipes, we should be following yoctos lead on formatting, order, and other things, for consistency in our meta layers. This commit runs oe-stylize.py on all of our files. The types of changes being made can be seen in the commit, but amount to: 1. Setting an explicit key ordering 2. Sectioning the files appropriately 3. Applying rules checking to our files At some point in the near future, we would turn this on as part of repotest, but some minor changes need to be upstreamed to meta-oe (WIP) to make that happen. Looking for input on whether this is something we'd like to do, and whether the diffs below look reasonable to folks. Signed-off-by: Ed Tanous Change-Id: I489dd21d38a9fe4f3ece89cc7a5e1d0463224abf --- .../recipes-phosphor/libmctp/libmctp_git.bb | 36 ++++++++++------------ 1 file changed, 16 insertions(+), 20 deletions(-) (limited to 'meta-phosphor/recipes-phosphor/libmctp') diff --git a/meta-phosphor/recipes-phosphor/libmctp/libmctp_git.bb b/meta-phosphor/recipes-phosphor/libmctp/libmctp_git.bb index 8183d08afa..909c486c08 100644 --- a/meta-phosphor/recipes-phosphor/libmctp/libmctp_git.bb +++ b/meta-phosphor/recipes-phosphor/libmctp/libmctp_git.bb @@ -1,38 +1,34 @@ SUMMARY = "MCTP stack" DESCRIPTION = "MCTP library implementing the MCTP base specification" -PR = "r1" -PV = "1.0+git${SRCPV}" - -inherit systemd -inherit autotools pkgconfig - HOMEPAGE = "https://github.com/openbmc/libmctp" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=0d30807bb7a4f16d36e96b78f9ed8fae" -SRC_URI = "git://github.com/openbmc/libmctp;branch=master;protocol=https \ - file://default" -SRCREV = "fe763e9820668b90c22b0101994ac6bd6cd41c09" - DEPENDS += "autoconf-archive-native \ systemd \ " - -SYSTEMD_SERVICE:${PN} = "mctp-demux.service \ - mctp-demux.socket \ - " - +SRCREV = "fe763e9820668b90c22b0101994ac6bd6cd41c09" PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} pcap" PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}, \ --without-systemdsystemunitdir,systemd" - PACKAGECONFIG[astlpc-raw-kcs] = "--enable-astlpc-raw-kcs,--disable-astlpc-raw-kcs,udev,udev" PACKAGECONFIG[pcap] = "--enable-capture,--disable-capture,libpcap," +PV = "1.0+git${SRCPV}" +PR = "r1" -CONFFILES:${PN} = "${sysconfdir}/default/mctp" +SRC_URI = "git://github.com/openbmc/libmctp;branch=master;protocol=https \ + file://default" + +SYSTEMD_SERVICE:${PN} = "mctp-demux.service \ + mctp-demux.socket \ + " +S = "${WORKDIR}/git" + +inherit systemd +inherit autotools pkgconfig do_install:append() { - install -d ${D}${sysconfdir}/default - install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/mctp + install -d ${D}${sysconfdir}/default + install -m 0644 ${WORKDIR}/default ${D}${sysconfdir}/default/mctp } -S = "${WORKDIR}/git" +CONFFILES:${PN} = "${sysconfdir}/default/mctp" -- cgit v1.2.3