From ffcba419b140d71c391c5e9dddfa5bf857bac603 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Thu, 3 Jun 2021 15:57:33 +0800 Subject: [PATCH] systemd: update for stx 5.0 * inherit stx-metadata to help install updated files from stx 'config-files' repo * remove do_copy_config_files since it's not needed after using stx-metadata Issue-ID: INF-215 Signed-off-by: Jackie Huang Change-Id: I3a76d467ea519a6523685897f5636535a697a142 --- .../recipes-core/systemd/systemd_241.bbappend | 38 +++++++--------------- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/meta-starlingx/meta-stx-integ/recipes-core/systemd/systemd_241.bbappend b/meta-starlingx/meta-stx-integ/recipes-core/systemd/systemd_241.bbappend index 8b9d988..bfb86ac 100644 --- a/meta-starlingx/meta-stx-integ/recipes-core/systemd/systemd_241.bbappend +++ b/meta-starlingx/meta-stx-integ/recipes-core/systemd/systemd_241.bbappend @@ -1,35 +1,19 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" -SRCREV_FORMAT = "opendev" -SRCREV_opendev = "d778e862571957ece3c404c0c37d325769772fde" -SUBPATH0 = "systemd-config" -DSTSUFX0 = "stx-configfiles" -SUBPATH1 = "io-scheduler" -DSTSUFX1 = "stx-io-scheduler" +inherit stx-metadata +STX_REPO = "config-files" +STX_SUBPATH0 = "systemd-config" +STX_SUBPATH1 = "io-scheduler" LICENSE_append = "& Apache-2.0" LIC_FILES_CHKSUM += "\ - file://stx-configfiles-LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ - file://stx-ioscheduler-LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ - " -SRC_URI += " \ - file://0900-inject-milisec-in-syslog-date.patch \ - git://opendev.org/starlingx/config-files.git;protocol=https;destsuffix=${DSTSUFX0};branch="r/stx.3.0";subpath=${SUBPATH0};name=opendev \ - git://opendev.org/starlingx/config-files.git;protocol=https;destsuffix=${DSTSUFX1};branch="r/stx.3.0";subpath=${SUBPATH1};name=opendev \ + file://${STX_METADATA_PATH}/${STX_SUBPATH0}/files/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ + file://${STX_METADATA_PATH}/${STX_SUBPATH1}/centos/files/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ " STX_DEFAULT_LOCALE ?= "en_US.UTF-8" -do_unpack_append() { - bb.build.exec_func('do_copy_config_files', d) -} - -do_copy_config_files () { - cp -f ${WORKDIR}/${DSTSUFX0}/files/LICENSE ${S}/stx-configfiles-LICENSE - cp -f ${WORKDIR}/${DSTSUFX1}/centos/files/LICENSE ${S}/stx-ioscheduler-LICENSE -} - do_install_append () { install -d ${D}${sysconfdir} echo LANG=${STX_DEFAULT_LOCALE} >> ${D}${sysconfdir}/locale.conf @@ -38,13 +22,13 @@ do_install_append () { install -d -m 0755 ${D}/${sysconfdir}/tmpfiles.d install -d -m 0755 ${D}/${sysconfdir}/systemd - install -m644 ${WORKDIR}/${DSTSUFX0}/files/60-persistent-storage.rules \ + install -m644 ${STX_METADATA_PATH}/${STX_SUBPATH0}/files/60-persistent-storage.rules \ ${D}/${sysconfdir}/udev/rules.d/60-persistent-storage.rules - install -m644 ${WORKDIR}/${DSTSUFX0}/files/systemd.conf.tmpfiles.d ${D}/${sysconfdir}/tmpfiles.d/systemd.conf - install -m644 ${WORKDIR}/${DSTSUFX0}/files/tmp.conf.tmpfiles.d ${D}/${sysconfdir}/tmpfiles.d/tmp.conf - install -m644 ${WORKDIR}/${DSTSUFX0}/files/tmp.mount ${D}/${sysconfdir}/systemd/system/tmp.mount - install -m644 ${WORKDIR}/${DSTSUFX1}/centos/files/60-io-scheduler.rules \ + install -m644 ${STX_METADATA_PATH}/${STX_SUBPATH0}/files/systemd.conf.tmpfiles.d ${D}/${sysconfdir}/tmpfiles.d/systemd.conf + install -m644 ${STX_METADATA_PATH}/${STX_SUBPATH0}/files/tmp.conf.tmpfiles.d ${D}/${sysconfdir}/tmpfiles.d/tmp.conf + install -m644 ${STX_METADATA_PATH}/${STX_SUBPATH0}/files/tmp.mount ${D}/${sysconfdir}/systemd/system/tmp.mount + install -m644 ${STX_METADATA_PATH}/${STX_SUBPATH1}/centos/files/60-io-scheduler.rules \ ${D}/${sysconfdir}/udev/rules.d/60-io-scheduler.rules } -- 2.16.6