rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #Basic Configuration |
| 2 | DESCRIPTION = "Customization." |
| 3 | SECTION = "base" |
| 4 | LICENSE = "MediaTekProprietary" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 6 | MTK_SRC = "${TOPDIR}/../src/support/libnvram_custom/CFG" |
| 7 | |
| 8 | WORKONSRC = "${MTK_SRC}" |
| 9 | |
| 10 | inherit deploy workonsrc |
| 11 | |
| 12 | PRJ_FILENAME = "${MTK_PROJECT}" |
| 13 | |
| 14 | #Parameters passed to do_compile() |
| 15 | EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\ |
| 16 | 'PRJ_FILENAME=${PRJ_FILENAME}'" |
| 17 | ALLOW_EMPTY_${PN} = "1" |
| 18 | |
| 19 | FILES_${PN}-dev = "*" |
| 20 | FILES_${PN} = "*" |
| 21 | do_install () { |
| 22 | oe_runmake install ROOT=${D} |
| 23 | |
| 24 | if test -d "${WORKDIR}/${MTK_NVRAM_PROJECT}/cgen"; then |
| 25 | mkdir -p ${D}/include/custom/${MTK_PROJECT} |
| 26 | cp -rf ${WORKDIR}/${MTK_NVRAM_PROJECT}/cgen ${D}/include/custom/${MTK_PROJECT} |
| 27 | fi |
| 28 | |
| 29 | install -d ${D}${includedir} |
| 30 | cp -af ${D}/include/* ${D}${includedir} |
| 31 | rm -rf ${D}/include |
| 32 | |
| 33 | } |
| 34 | |
| 35 | addtask nvramclean |
| 36 | do_nvramclean () { |
| 37 | oe_runmake clean |
| 38 | } |