mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-10-22 23:32:16 +02:00
fsl-eula2-unpack2: Remove SBOM from rootfs [YOCIMX-9207]
The SBOM is now added to NXP EULA-licensed archives, so adjust the install so it is not added to the rootfs. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> (cherry picked from commit 9c6b5ab24441a199f7b32bf7729de6c9fa7dba25)
This commit is contained in:
parent
009d653c36
commit
9fdcff60ef
|
@ -17,13 +17,22 @@ D_SUBDIR = ""
|
|||
D_SUBDIR:class-native = "${STAGING_DIR_NATIVE}"
|
||||
D_SUBDIR:class-nativesdk = "/opt/${DISTRO}"
|
||||
|
||||
# SCR is the location and name of the Software Content Register file
|
||||
# relative to ${D}${D_SUBDIR}.
|
||||
# SCR and SBOM are the location and name of the Software Content Register file
|
||||
# and Software Bill of Materials file relative to ${D}${D_SUBDIR}
|
||||
SCR = "SCR.txt"
|
||||
SBOM = "SBOM.spdx.json"
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${D_SUBDIR}
|
||||
cp -r ${S}/* ${D}${D_SUBDIR}
|
||||
rm ${D}${D_SUBDIR}/COPYING
|
||||
if [ ! -f ${D}${D_SUBDIR}/${SCR} ]; then
|
||||
bbfatal "Missing Software Content Register \"${D}${D_SUBDIR}/${SCR}\""
|
||||
fi
|
||||
|
||||
# Don't install the SCR or SBOM
|
||||
rm ${D}${D_SUBDIR}/${SCR}
|
||||
rm -f ${D}${D_SUBDIR}/${SBOM}
|
||||
|
||||
# Adjust for multilib and usrmerge
|
||||
# FIXME: This does not handle nonarch_base_libdir
|
||||
|
@ -37,12 +46,6 @@ do_install () {
|
|||
mv ${D}/usr/lib/* ${D}${libdir}
|
||||
rm -r ${D}/usr/lib
|
||||
fi
|
||||
|
||||
rm ${D}${D_SUBDIR}/COPYING
|
||||
if [ ! -f ${D}${D_SUBDIR}/${SCR} ]; then
|
||||
bbfatal "Missing Software Content Register \"${D}${D_SUBDIR}/${SCR}\""
|
||||
fi
|
||||
rm ${D}${D_SUBDIR}/${SCR}
|
||||
}
|
||||
|
||||
FILES:${PN} = "/"
|
||||
|
|
Loading…
Reference in New Issue
Block a user