mirror of
git://git.yoctoproject.org/meta-freescale.git
synced 2025-07-05 05:14:44 +02:00

The series [1] changed the way sources are fetched/unpacked and S needs to follow that. Additionally for git repos it moved away from having 'git/' as the checkout directory. This has been partly tested by building weston based image for imx6/imx6ull/imx7/imx8/imx8mm/imx8mp/imx95 based images. E.g. none of the recipes specific for qoriq is built time tested. As walnascar is no longer compatible with master/whinlatter drop it from LAYERSERIES_COMPAT. [1] https://lore.kernel.org/openembedded-core/20250616095000.2918921-1-alex.kanavin@gmail.com/ Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
39 lines
1.1 KiB
BlitzBasic
39 lines
1.1 KiB
BlitzBasic
DESCRIPTION = "PKCS library"
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=803852533e29eb1d6d5e55ad3078b625"
|
|
|
|
SRC_URI = "git://github.com/nxp-qoriq/libpkcs11;protocol=https;nobranch=1 \
|
|
file://0001-fix-multiple-definition-error.patch \
|
|
"
|
|
SRCREV = "8d85182b7a7cd393ab6dd72930f8d1b69468f741"
|
|
|
|
DEPENDS = "openssl secure-obj"
|
|
|
|
WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}"
|
|
export CROSS_COMPILE_HOST = "${CROSS_COMPILE}"
|
|
export CROSS_COMPILE_TA = "${CROSS_COMPILE}"
|
|
|
|
CFLAGS += "-fPIC"
|
|
|
|
EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}" CFLAGS="${CFLAGS}"'
|
|
|
|
do_compile() {
|
|
export OPENSSL_PATH="${RECIPE_SYSROOT}/usr"
|
|
export CROSS_COMPILE="${WRAP_TARGET_PREFIX}"
|
|
oe_runmake all
|
|
}
|
|
|
|
do_install(){
|
|
mkdir -p ${D}/${libdir}
|
|
mkdir -p ${D}/${includedir} ${D}/${bindir}
|
|
cp ${S}/out/export/lib/libpkcs11.so ${D}/${libdir}
|
|
cp ${S}/out/export/include/*.h ${D}/${includedir}
|
|
rm -f ${D}${includedir}/pkcs11.h
|
|
cp ${S}/out/export/app/* ${D}/${bindir}
|
|
}
|
|
|
|
PARALLEL_MAKE = ""
|
|
INSANE_SKIP:${PN} = "ldflags dev-deps"
|
|
INSANE_SKIP:${PN}-dev = "ldflags dev-elf"
|
|
COMPATIBLE_MACHINE = "(qoriq-arm64)"
|