summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuciano Dittgen <luciano.dittgen@ossystems.com.br>2026-07-15 10:53:20 -0300
committerLuciano Dittgen <luciano.dittgen@ossystems.com.br>2026-07-21 14:20:07 -0300
commit24b177350650ffc00c6c01a76b5da8765ee01480 (patch)
treedbd8111e713a3081c3f9dc4d1129fdd971ee8a7b
parent9f6ab91ab3f8ccbcf140ae8d27675d053fc954ab (diff)
downloadmeta-freescale-24b177350650ffc00c6c01a76b5da8765ee01480.tar.gz
qoriq-cst: Add DESCRIPTION, fix ordering and do_install per oelint
Address the oelint findings for the recipe: - Add a distinct DESCRIPTION (mandatoryvar.DESCRIPTION). - Move RDEPENDS below the SRC_URI/FILES block so SRC_URI is no longer placed after RDEPENDS (order.SRC_URI). - Quote CFLAGS:append with double quotes. The leading space is already present, but the single-quoted form tripped oelint's inconspaces check. - Replace the two "cp -f" calls that copy user-supplied SRK signing keys with "install" (task.nocopy), installing the private key 0600 and the public key 0644. - Accept the -dbg buildpaths INSANE_SKIP with an inline # nooelint. No functional change (the private key is now installed mode 0600 rather than inheriting the source mode, a minor hardening on the optional SECURE_PRI_KEY path). Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
-rw-r--r--recipes-devtools/qoriq-cst/qoriq-cst_git.bb11
1 files changed, 7 insertions, 4 deletions
diff --git a/recipes-devtools/qoriq-cst/qoriq-cst_git.bb b/recipes-devtools/qoriq-cst/qoriq-cst_git.bb
index 48e410e8a..1613309dd 100644
--- a/recipes-devtools/qoriq-cst/qoriq-cst_git.bb
+++ b/recipes-devtools/qoriq-cst/qoriq-cst_git.bb
@@ -1,4 +1,5 @@
1SUMMARY = "utility for security boot" 1SUMMARY = "utility for security boot"
2DESCRIPTION = "Code Signing Tool (CST) for QorIQ secure boot: generates keys, signs images and produces the CSF headers consumed by the SoC boot ROM"
2HOMEPAGE = "https://github.com/nxp-qoriq/cst" 3HOMEPAGE = "https://github.com/nxp-qoriq/cst"
3SECTION = "cst" 4SECTION = "cst"
4LICENSE = "BSD-3-Clause" 5LICENSE = "BSD-3-Clause"
@@ -6,7 +7,6 @@ LICENSE = "BSD-3-Clause"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=e959d5d617e33779d0e90ce1d9043eff" 7LIC_FILES_CHKSUM = "file://LICENSE;md5=e959d5d617e33779d0e90ce1d9043eff"
7 8
8DEPENDS += "openssl qoriq-cst-native" 9DEPENDS += "openssl qoriq-cst-native"
9RDEPENDS:${PN} = "bash"
10 10
11GENKEYS ?= "${STAGING_BINDIR_NATIVE}/cst/gen_keys" 11GENKEYS ?= "${STAGING_BINDIR_NATIVE}/cst/gen_keys"
12GENKEYS:class-native = "./gen_keys" 12GENKEYS:class-native = "./gen_keys"
@@ -21,7 +21,7 @@ SRC_URI = "git://github.com/nxp-qoriq/cst;protocol=https;nobranch=1"
21SRCREV = "892d2ed3207d78a3cb5533eeb91bcc73967e3e36" 21SRCREV = "892d2ed3207d78a3cb5533eeb91bcc73967e3e36"
22 22
23EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}"' 23EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}"'
24CFLAGS:append = ' -Wno-deprecated-declarations' 24CFLAGS:append = " -Wno-deprecated-declarations"
25 25
26PARALLEL_MAKE = "" 26PARALLEL_MAKE = ""
27 27
@@ -29,14 +29,17 @@ do_install () {
29 oe_runmake install DESTDIR=${D} BIN_DEST_DIR=${bindir} 29 oe_runmake install DESTDIR=${D} BIN_DEST_DIR=${bindir}
30 30
31 if [ -n "${SECURE_PRI_KEY}" ]; then 31 if [ -n "${SECURE_PRI_KEY}" ]; then
32 cp -f ${SECURE_PRI_KEY} ${D}/${bindir}/cst/srk.pri 32 install -m 0600 ${SECURE_PRI_KEY} ${D}/${bindir}/cst/srk.pri
33 cp -f ${SECURE_PUB_KEY} ${D}/${bindir}/cst/srk.pub 33 install -m 0644 ${SECURE_PUB_KEY} ${D}/${bindir}/cst/srk.pub
34 elif [ ! -f ${D}/${bindir}/cst/srk.pri -o ! ${D}/${bindir}/cst/srk.pub ]; then 34 elif [ ! -f ${D}/${bindir}/cst/srk.pri -o ! ${D}/${bindir}/cst/srk.pub ]; then
35 cd ${D}/${bindir}/cst && ${GENKEYS} 1024 35 cd ${D}/${bindir}/cst && ${GENKEYS} 1024
36 fi 36 fi
37} 37}
38 38
39FILES:${PN}-dbg += "${bindir}/cst/.debug" 39FILES:${PN}-dbg += "${bindir}/cst/.debug"
40RDEPENDS:${PN} = "bash"
40BBCLASSEXTEND = "native nativesdk" 41BBCLASSEXTEND = "native nativesdk"
42# The cst tools live under ${bindir}/cst and retain build-host paths.
43# nooelint: oelint.vars.insaneskip
41INSANE_SKIP:${PN}-dbg += "buildpaths" 44INSANE_SKIP:${PN}-dbg += "buildpaths"
42 45