meta-starlingx/meta-stx-flock/stx-utilities/build-info.bb
Babak Sarashki 5130da8af1 stx-utilities: set and limit checkouts to subpaths
Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
2020-09-22 20:02:41 -07:00

27 lines
643 B
BlitzBasic

DESCRIPTION = "Build Info"
SUMMARY = "Build Info"
SRC_URI += " \
file://build.info \
file://0001-build_info_license.patch \
"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=89aea4e17d99a7cacdbeed46a0096b10"
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install_append() {
install -d ${D}/${sysconfdir}
install -m 644 ${WORKDIR}/build.info ${D}/${sysconfdir}
sed -i -e "s/@OS@/${DISTRO}/" \
-e "s/@STX_RELEASE@/${STX_REL}/" \
-e "s/@STX_ID@/${STX_ID}/" \
-e "s/@BUILD_DATE@/${STX_BUILD_DATE}/" \
${D}/${sysconfdir}/build.info
}
do_install[vardepsexclude] += "STX_BUILD_DATE"