rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | SUMMARY = "HSM Efuse Library" |
| 2 | LICENSE = "MediaTekProprietary" |
| 3 | |
| 4 | inherit workonsrc |
| 5 | WORKONSRC = "${TOPDIR}/../src/bsp/hsm/private/efuse" |
| 6 | |
| 7 | EXTRA_OEMAKE = "ARC_GNU_PATH=$(find ${WORKDIR}/../.. -maxdepth 3 -name arc_gnu_*_prebuilt_elf32_le_linux_install)" |
| 8 | |
| 9 | FILES_${PN}-dev = "${includedir}" |
| 10 | FILES_${PN}-staticdev = "${libdir}/*.a" |
| 11 | |
| 12 | do_compile() { |
| 13 | oe_runmake |
| 14 | } |
| 15 | |
| 16 | do_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 | } |