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