diff options
| author | Oleksandr Suvorov <oleksandr.suvorov@foundries.io> | 2023-05-01 18:34:20 +0300 |
|---|---|---|
| committer | Oleksandr Suvorov <oleksandr.suvorov@foundries.io> | 2023-05-02 17:30:15 +0300 |
| commit | 5b1cce6b7020b954db045009b4956b7f71349bb2 (patch) | |
| tree | f6bf6ec914207183b178fbc09f9a6e7af875ebe1 | |
| parent | c4288a04f82cea6763f12448e87d95e5c0364cf7 (diff) | |
| download | meta-freescale-5b1cce6b7020b954db045009b4956b7f71349bb2.tar.gz | |
optee: restructure optee-client recipe
Add include files for optee-client.
The include files feature requirements that are specific to
optee/optee-client projects and i.MX platforms.
The recipe file with version number features the git branch and
commit hash.
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
| -rw-r--r-- | recipes-security/optee-imx/optee-client-fslc-imx.inc | 7 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-client-fslc.inc | 42 | ||||
| -rw-r--r-- | recipes-security/optee-imx/optee-client_3.19.0.imx.bb | 46 |
3 files changed, 50 insertions, 45 deletions
diff --git a/recipes-security/optee-imx/optee-client-fslc-imx.inc b/recipes-security/optee-imx/optee-client-fslc-imx.inc new file mode 100644 index 000000000..4cfe18bf8 --- /dev/null +++ b/recipes-security/optee-imx/optee-client-fslc-imx.inc | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # Copyright (C) 2017-2021 NXP | ||
| 2 | |||
| 3 | require optee-client-fslc.inc | ||
| 4 | |||
| 5 | SRC_URI += "git://github.com/nxp-imx/imx-optee-client.git;protocol=https;branch=${SRCBRANCH}" | ||
| 6 | |||
| 7 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||
diff --git a/recipes-security/optee-imx/optee-client-fslc.inc b/recipes-security/optee-imx/optee-client-fslc.inc new file mode 100644 index 000000000..92f9f1d1f --- /dev/null +++ b/recipes-security/optee-imx/optee-client-fslc.inc | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | # Copyright (C) 2017-2021 NXP | ||
| 2 | |||
| 3 | SUMMARY = "OPTEE Client libs" | ||
| 4 | HOMEPAGE = "http://www.optee.org/" | ||
| 5 | LICENSE = "BSD-2-Clause" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b" | ||
| 7 | |||
| 8 | SRC_URI = "file://tee-supplicant.service" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | B = "${WORKDIR}/build" | ||
| 12 | |||
| 13 | inherit python3native systemd features_check pkgconfig | ||
| 14 | |||
| 15 | DEPENDS = "util-linux-libuuid" | ||
| 16 | |||
| 17 | REQUIRED_MACHINE_FEATURES = "optee" | ||
| 18 | |||
| 19 | SYSTEMD_SERVICE:${PN} = "tee-supplicant.service" | ||
| 20 | |||
| 21 | EXTRA_OEMAKE = " \ | ||
| 22 | -C ${S} O=${B} \ | ||
| 23 | " | ||
| 24 | |||
| 25 | do_install () { | ||
| 26 | oe_runmake -C ${S} install | ||
| 27 | |||
| 28 | install -D -p -m0644 ${B}/export/usr/lib/libteec.so.1.0.0 ${D}${libdir}/libteec.so.1.0.0 | ||
| 29 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1 | ||
| 30 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so | ||
| 31 | |||
| 32 | install -D -p -m0644 ${B}/export/usr/lib/libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1.0 | ||
| 33 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0 | ||
| 34 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so | ||
| 35 | |||
| 36 | install -D -p -m0755 ${B}/export/usr/sbin/tee-supplicant ${D}${bindir}/tee-supplicant | ||
| 37 | |||
| 38 | cp -a ${B}/export/usr/include ${D}${includedir} | ||
| 39 | |||
| 40 | sed -i -e s:/etc:${sysconfdir}:g -e s:/usr/bin:${bindir}:g ${WORKDIR}/tee-supplicant.service | ||
| 41 | install -D -p -m0644 ${WORKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/tee-supplicant.service | ||
| 42 | } | ||
diff --git a/recipes-security/optee-imx/optee-client_3.19.0.imx.bb b/recipes-security/optee-imx/optee-client_3.19.0.imx.bb index b0fb9178c..40675e35b 100644 --- a/recipes-security/optee-imx/optee-client_3.19.0.imx.bb +++ b/recipes-security/optee-imx/optee-client_3.19.0.imx.bb | |||
| @@ -1,48 +1,4 @@ | |||
| 1 | # Copyright (C) 2017-2021 NXP | 1 | require optee-client-fslc-imx.inc |
| 2 | 2 | ||
| 3 | SUMMARY = "OPTEE Client libs" | ||
| 4 | HOMEPAGE = "http://www.optee.org/" | ||
| 5 | LICENSE = "BSD-2-Clause" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b" | ||
| 7 | |||
| 8 | SRC_URI = " \ | ||
| 9 | git://github.com/nxp-imx/imx-optee-client.git;protocol=https;branch=${SRCBRANCH} \ | ||
| 10 | file://tee-supplicant.service" | ||
| 11 | SRCBRANCH = "lf-5.15.71_2.2.0" | 3 | SRCBRANCH = "lf-5.15.71_2.2.0" |
| 12 | SRCREV = "644022f8970c832a40be00747fcec70c7b5d488c" | 4 | SRCREV = "644022f8970c832a40be00747fcec70c7b5d488c" |
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | B = "${WORKDIR}/build" | ||
| 16 | |||
| 17 | inherit python3native systemd features_check pkgconfig | ||
| 18 | |||
| 19 | DEPENDS = "util-linux-libuuid" | ||
| 20 | |||
| 21 | REQUIRED_MACHINE_FEATURES = "optee" | ||
| 22 | |||
| 23 | SYSTEMD_SERVICE:${PN} = "tee-supplicant.service" | ||
| 24 | |||
| 25 | EXTRA_OEMAKE = " \ | ||
| 26 | -C ${S} O=${B} \ | ||
| 27 | " | ||
| 28 | |||
| 29 | do_install () { | ||
| 30 | oe_runmake -C ${S} install | ||
| 31 | |||
| 32 | install -D -p -m0644 ${B}/export/usr/lib/libteec.so.1.0.0 ${D}${libdir}/libteec.so.1.0.0 | ||
| 33 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so.1 | ||
| 34 | ln -sf libteec.so.1.0.0 ${D}${libdir}/libteec.so | ||
| 35 | |||
| 36 | install -D -p -m0644 ${B}/export/usr/lib/libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0.1.0 | ||
| 37 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so.0 | ||
| 38 | ln -sf libckteec.so.0.1.0 ${D}${libdir}/libckteec.so | ||
| 39 | |||
| 40 | install -D -p -m0755 ${B}/export/usr/sbin/tee-supplicant ${D}${bindir}/tee-supplicant | ||
| 41 | |||
| 42 | cp -a ${B}/export/usr/include ${D}${includedir} | ||
| 43 | |||
| 44 | sed -i -e s:/etc:${sysconfdir}:g -e s:/usr/bin:${bindir}:g ${WORKDIR}/tee-supplicant.service | ||
| 45 | install -D -p -m0644 ${WORKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/tee-supplicant.service | ||
| 46 | } | ||
| 47 | |||
| 48 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | ||
