rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | inherit workonsrc
|
| 2 | inherit pkgconfig
|
| 3 | inherit systemd
|
| 4 |
|
| 5 | DESCRIPTION = "Encrypted Library Decryption Helper"
|
| 6 | LICENSE = "MediaTekProprietary"
|
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
| 8 | APPS_SRC = "${TOPDIR}/../meta/meta-mediatek/recipes-support/encryptlibrary-init"
|
| 9 | SECURE_PROGRAM = "secure_program"
|
| 10 | WORKONSRC = "${APPS_SRC}"
|
| 11 |
|
| 12 | #####Customization Start#####
|
| 13 | EncryptedLibraryName = "libMtkOmxEac3Dec.so"
|
| 14 | #####Customization End#####
|
| 15 |
|
| 16 | SYSTEMD_PACKAGES = "${PN}"
|
| 17 | SYSTEMD_SERVICE_${PN} = "encryptlibrary-init.service"
|
| 18 | FILES_${PN} += "${systemd_unitdir}/system/encryptlibrary-init.service"
|
| 19 | FILES_${PN} += "etc/encryptlibrary-init.sh"
|
| 20 | FILES_${PN} += "${libdir}/encrypted/${EncryptedLibraryName}"
|
| 21 |
|
| 22 | do_install() {
|
| 23 | install -d ${D}${systemd_system_unitdir}
|
| 24 | install -m 0755 ${S}files/encryptlibrary-init.service ${D}${systemd_system_unitdir}
|
| 25 |
|
| 26 | install -d ${D}/etc
|
| 27 | install -m 755 ${S}files/encryptlibrary-init.sh ${D}/etc/encryptlibrary-init.sh
|
| 28 |
|
| 29 | install -d ${D}${libdir}/encrypted
|
| 30 | install -m 644 ${S}files/${EncryptedLibraryName} ${D}${libdir}/encrypted
|
| 31 |
|
| 32 | echo "${SECURE_PROGRAM} dec /usr/lib/encrypted/${EncryptedLibraryName} /tmp/${EncryptedLibraryName}" >> ${D}/etc/encryptlibrary-init.sh
|
| 33 | }
|
| 34 |
|
| 35 |
|