diff options
| author | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-07-15 10:53:20 -0300 |
|---|---|---|
| committer | Luciano Dittgen <luciano.dittgen@ossystems.com.br> | 2026-07-21 14:20:07 -0300 |
| commit | 24b177350650ffc00c6c01a76b5da8765ee01480 (patch) | |
| tree | dbd8111e713a3081c3f9dc4d1129fdd971ee8a7b | |
| parent | 9f6ab91ab3f8ccbcf140ae8d27675d053fc954ab (diff) | |
| download | meta-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.bb | 11 |
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 @@ | |||
| 1 | SUMMARY = "utility for security boot" | 1 | SUMMARY = "utility for security boot" |
| 2 | DESCRIPTION = "Code Signing Tool (CST) for QorIQ secure boot: generates keys, signs images and produces the CSF headers consumed by the SoC boot ROM" | ||
| 2 | HOMEPAGE = "https://github.com/nxp-qoriq/cst" | 3 | HOMEPAGE = "https://github.com/nxp-qoriq/cst" |
| 3 | SECTION = "cst" | 4 | SECTION = "cst" |
| 4 | LICENSE = "BSD-3-Clause" | 5 | LICENSE = "BSD-3-Clause" |
| @@ -6,7 +7,6 @@ LICENSE = "BSD-3-Clause" | |||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e959d5d617e33779d0e90ce1d9043eff" | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e959d5d617e33779d0e90ce1d9043eff" |
| 7 | 8 | ||
| 8 | DEPENDS += "openssl qoriq-cst-native" | 9 | DEPENDS += "openssl qoriq-cst-native" |
| 9 | RDEPENDS:${PN} = "bash" | ||
| 10 | 10 | ||
| 11 | GENKEYS ?= "${STAGING_BINDIR_NATIVE}/cst/gen_keys" | 11 | GENKEYS ?= "${STAGING_BINDIR_NATIVE}/cst/gen_keys" |
| 12 | GENKEYS:class-native = "./gen_keys" | 12 | GENKEYS:class-native = "./gen_keys" |
| @@ -21,7 +21,7 @@ SRC_URI = "git://github.com/nxp-qoriq/cst;protocol=https;nobranch=1" | |||
| 21 | SRCREV = "892d2ed3207d78a3cb5533eeb91bcc73967e3e36" | 21 | SRCREV = "892d2ed3207d78a3cb5533eeb91bcc73967e3e36" |
| 22 | 22 | ||
| 23 | EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}"' | 23 | EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}"' |
| 24 | CFLAGS:append = ' -Wno-deprecated-declarations' | 24 | CFLAGS:append = " -Wno-deprecated-declarations" |
| 25 | 25 | ||
| 26 | PARALLEL_MAKE = "" | 26 | PARALLEL_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 | ||
| 39 | FILES:${PN}-dbg += "${bindir}/cst/.debug" | 39 | FILES:${PN}-dbg += "${bindir}/cst/.debug" |
| 40 | RDEPENDS:${PN} = "bash" | ||
| 40 | BBCLASSEXTEND = "native nativesdk" | 41 | BBCLASSEXTEND = "native nativesdk" |
| 42 | # The cst tools live under ${bindir}/cst and retain build-host paths. | ||
| 43 | # nooelint: oelint.vars.insaneskip | ||
| 41 | INSANE_SKIP:${PN}-dbg += "buildpaths" | 44 | INSANE_SKIP:${PN}-dbg += "buildpaths" |
| 42 | 45 | ||
