rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | inherit deploy workonsrc |
| 2 | |
| 3 | DESCRIPTION = "crypt_tool" |
| 4 | LICENSE = "MediaTekProprietary" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 6 | MTK_SRC = "${TOPDIR}/../src/devtools/nfsb/crypt_tool" |
| 7 | |
| 8 | WORKONSRC = "${MTK_SRC}" |
| 9 | |
| 10 | INSANE_SKIP_${PN} += "installed-vs-shipped" |
| 11 | INSANE_SKIP_${PN} += "already-stripped" |
| 12 | |
| 13 | EXTRA_OEMAKE = "CROSS=${TARGET_PREFIX} OUT=${WORKDIR} ARCH=${KERNEL_ARCH} DM_PROTECT_KEY=${MTK_KEY_DIR}/${DM_PROTECT_ENC_KEY}" |
| 14 | |
| 15 | INSANE_SKIP_${PN} = "ldflags" |
| 16 | INSANE_SKIP_${PN}-dev = "ldflags already-stripped" |
| 17 | FILES_${PN} = "${bindir}/crypt_target_tool" |
| 18 | FILES_${PN} += "${bindir}/dmsetup" |
| 19 | FILES_${PN} += "${libdir}/libdevmapper.so.1.02" |
| 20 | |
| 21 | DEPENDS += " tzapp " |
| 22 | |
| 23 | do_compile () { |
| 24 | oe_runmake all |
| 25 | } |
| 26 | |
| 27 | do_install () { |
| 28 | oe_runmake install DESTDIR="${D}" |
| 29 | } |
| 30 | |
| 31 | |