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 | DEPENDS = "bach-init" |
| 7 | #MTK_SRC = "${@'${BACH_SRC}/custom' if d.getVar('BUILD_LOAD_TYPE', True) == 'eng' else '${BACH_SRC}/custom_user'}" |
| 8 | MTK_SRC = "${BACH_SRC}/custom.${TARGET_PLATFORM}" |
| 9 | |
| 10 | WORKONSRC = "${MTK_SRC}" |
| 11 | |
| 12 | inherit deploy workonsrc |
| 13 | |
| 14 | #Parameters passed to do_compile() |
| 15 | EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\ |
| 16 | 'PROJECT=${PROJ}'\ |
| 17 | 'PLATFORM_CHIP=${PLATFORM_CHIP}'\ |
| 18 | 'PRJ_FILENAME=${PRJ_FILENAME}'\ |
| 19 | 'COMPLIST=${COMPLIST}'\ |
| 20 | 'LINUX_KERNEL=${LINUX_KERNEL}'" |
| 21 | |
| 22 | ALLOW_EMPTY_${PN} = "1" |
| 23 | |
| 24 | FILES_${PN}-dev = "*" |
| 25 | FILES_${PN} = "*" |
| 26 | |
| 27 | do_install () { |
| 28 | oe_runmake install ROOT=${D} |
| 29 | install -d ${D}${includedir} |
| 30 | cp -af ${D}/include/* ${D}${includedir} |
| 31 | rm -rf ${D}/include |
| 32 | } |
| 33 | |
| 34 | addtask bachclean |
| 35 | do_bachclean () { |
| 36 | oe_runmake clean |
| 37 | } |