blob: 5945d811cb4fced7db21b723d495e4017cb89b58 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001SUMMARY = "HSM Efuse Library"
2LICENSE = "MediaTekProprietary"
3
4inherit workonsrc
5WORKONSRC = "${TOPDIR}/../src/bsp/hsm/private/efuse"
6
7EXTRA_OEMAKE = "ARC_GNU_PATH=$(find ${WORKDIR}/../.. -maxdepth 3 -name arc_gnu_*_prebuilt_elf32_le_linux_install)"
8
9FILES_${PN}-dev = "${includedir}"
10FILES_${PN}-staticdev = "${libdir}/*.a"
11
12do_compile() {
13 oe_runmake
14}
15
16do_install() {
17 if [ -d "${WORKONSRC}" ]; then
18 # install header
19 install -d ${D}/${includedir}
20 install -m 644 include/efuse*.h ${D}/${includedir}
21
22 # install lib
23 install -d ${D}/${libdir}
24 install -m 644 efuse.a ${D}/${libdir}
25 else
26 # install header
27 install -d ${D}/${includedir}
28 install -m 644 usr/include/efuse*.h ${D}/${includedir}
29
30 # install lib
31 install -d ${D}/${libdir}
32 install -m 644 usr/lib/efuse.a ${D}/${libdir}
33 fi
34}