dhcp: update for stx 5.0 92/8192/1
authorJackie Huang <jackie.huang@windriver.com>
Wed, 16 Jun 2021 07:13:27 +0000 (15:13 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Sun, 8 May 2022 04:59:10 +0000 (12:59 +0800)
* inherit stx-metadata to help install updated files
  from stx 'config-files' repo

Issue-ID: INF-215

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I5de57c954b47935753a0d62f762877e855897ed5

meta-starlingx/meta-stx-integ/recipes-connectivity/dhcp/dhcp_%.bbappend

index 53f793f..9e577c1 100644 (file)
@@ -1,17 +1,12 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+inherit stx-metadata
 
-SRCREV_FORMAT = "opendev"
-SRCREV_opendev = "d778e862571957ece3c404c0c37d325769772fde"
-SUBPATH0 = "dhcp-config"
-DSTSUFX0 = "stx-configfiles"
+STX_REPO = "config-files"
+STX_SUBPATH = "dhcp-config"
 
-SRC_URI += "\
-       git://opendev.org/starlingx/config-files.git;protocol=https;destsuffix=${DSTSUFX0};branch="r/stx.3.0";subpath=${SUBPATH0};name=opendev \
-"
 
 do_install_append () { 
-       install -m 0755 ${WORKDIR}/${DSTSUFX0}/files/dhclient-enter-hooks ${D}/${sysconfdir}/dhcp/dhclient-enter-hooks
-       install -m 0755 ${WORKDIR}/${DSTSUFX0}/files/dhclient.conf ${D}/${sysconfdir}/dhcp/dhclient.conf
+       install -m 0755 ${STX_METADATA_PATH}/files/dhclient-enter-hooks ${D}/${sysconfdir}/dhcp/dhclient-enter-hooks
+       install -m 0755 ${STX_METADATA_PATH}/files/dhclient.conf ${D}/${sysconfdir}/dhcp/dhclient.conf
        ln -rs ${D}/${sysconfdir}/dhcp/dhclient-enter-hooks ${D}/${sysconfdir}/dhclient-enter-hooks
 }