blob: aabf68ef9ecc4afcd2c1b31a8303377b03babf0a [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "Customization."
3SECTION = "base"
4LICENSE = "MediaTekProprietary"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
6MTK_SRC = "${TOPDIR}/../src/support/libnvram_custom/CFG"
7
8WORKONSRC = "${MTK_SRC}"
9
10inherit deploy workonsrc
11
12PRJ_FILENAME = "${MTK_PROJECT}"
13
14#Parameters passed to do_compile()
15EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\
16 'PRJ_FILENAME=${PRJ_FILENAME}'"
17ALLOW_EMPTY_${PN} = "1"
18
19FILES_${PN}-dev = "*"
20FILES_${PN} = "*"
21do_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
35addtask nvramclean
36do_nvramclean () {
37 oe_runmake clean
38}