diff options
Diffstat (limited to 'recipes-security/optee-qoriq/optee-client.nxp.inc')
| -rw-r--r-- | recipes-security/optee-qoriq/optee-client.nxp.inc | 58 |
1 files changed, 14 insertions, 44 deletions
diff --git a/recipes-security/optee-qoriq/optee-client.nxp.inc b/recipes-security/optee-qoriq/optee-client.nxp.inc index a7e51a29d..590540cd8 100644 --- a/recipes-security/optee-qoriq/optee-client.nxp.inc +++ b/recipes-security/optee-qoriq/optee-client.nxp.inc | |||
| @@ -1,52 +1,22 @@ | |||
| 1 | # Copyright 2020-2021 NXP | 1 | # Copyright 2020-2021,2025 NXP |
| 2 | 2 | ||
| 3 | SUMMARY = "OPTEE Client libs" | 3 | require recipes-security/optee-imx/optee-client-fslc.inc |
| 4 | HOMEPAGE = "http://www.optee.org/" | ||
| 5 | LICENSE = "BSD" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b" | ||
| 7 | 4 | ||
| 8 | inherit python3native systemd | 5 | # The patch same as imx-optee, so point FILESEXTRAPATHS to optee-imx/optee-client, |
| 6 | # avoid duplicate copy files to optee-qoriq | ||
| 7 | FILESEXTRAPATHS:prepend := "${THISDIR}/../optee-imx/optee-client:" | ||
| 9 | 8 | ||
| 10 | SRC_URI = "git://github.com/nxp-qoriq/optee_client.git;protocol=https;nobranch=1" | 9 | DEPENDS = "util-linux-libuuid" |
| 11 | SRCREV = "7c9c423d00e96bf51debd5fe10fd70dce83be5cc" | ||
| 12 | 10 | ||
| 13 | FILESEXTRAPATHS:prepend := "${THISDIR}/optee-client:" | 11 | SRC_URI:remove = "git://github.com/OP-TEE/optee_client.git;branch=master;protocol=https" |
| 14 | SRC_URI += "file://tee-supplicant.service" | 12 | SRC_URI:prepend = "${OPTEE_CLIENT_SRC};branch=${OPTEE_CLIENT_BRANCH} " |
| 15 | 13 | ||
| 16 | B = "${WORKDIR}/build" | 14 | OPTEE_CLIENT_SRC ?= "git://github.com/nxp-qoriq/optee_client.git;protocol=https" |
| 17 | 15 | ||
| 18 | OPTEE_ARCH ?= "arm32" | 16 | inherit pkgconfig |
| 19 | OPTEE_ARCH:armv7a = "arm32" | ||
| 20 | OPTEE_ARCH:aarch64 = "arm64" | ||
| 21 | 17 | ||
| 22 | EXTRA_OEMAKE = "ARCH=${OPTEE_ARCH} O=${B}" | 18 | do_install:append () { |
| 23 | 19 | if ! ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | |
| 24 | do_install () { | 20 | rm -rf ${D}${libdir}/systemd |
| 25 | oe_runmake -C ${S} install | 21 | fi |
| 26 | |||
| 27 | install -d ${D}${libdir}/ | ||
| 28 | install -p -m0644 ${B}/export${libdir}/libteec.so.1.0.0 ${D}${libdir}/ | ||
| 29 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1.0 | ||
| 30 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1 | ||
| 31 | ln -sf libteec.so.1 ${D}${libdir}/libteec.so | ||
| 32 | |||
| 33 | install -D -p -m0644 ${B}/export/usr/lib/libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1.0 | ||
| 34 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1 | ||
| 35 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0 | ||
| 36 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so | ||
| 37 | |||
| 38 | install -D -p -m0755 ${B}/export/usr/sbin/tee-supplicant ${D}${bindir}/tee-supplicant | ||
| 39 | |||
| 40 | cp -a ${B}/export/usr/include ${D}${includedir} | ||
| 41 | |||
| 42 | install -d ${D}${systemd_system_unitdir}/ | ||
| 43 | install -m0644 ${UNPACKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/ | ||
| 44 | sed -i -e s:/etc:${sysconfdir}:g -e s:/usr/bin:${bindir}:g ${D}${systemd_system_unitdir}/tee-supplicant.service | ||
| 45 | } | 22 | } |
| 46 | |||
| 47 | SYSTEMD_SERVICE:${PN} = "tee-supplicant.service" | ||
| 48 | |||
| 49 | FILES:${PN} += "${libdir}/* ${includedir}/*" | ||
| 50 | |||
| 51 | INSANE_SKIP:${PN} = "ldflags dev-elf" | ||
| 52 | INSANE_SKIP:${PN}-dev = "ldflags dev-elf" | ||
