blob: dd0da03d360efafed1f5087d71b35bf988d08084 [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"
6DEPENDS = "bach-init"
7#MTK_SRC = "${@'${BACH_SRC}/custom' if d.getVar('BUILD_LOAD_TYPE', True) == 'eng' else '${BACH_SRC}/custom_user'}"
8MTK_SRC = "${BACH_SRC}/custom.${TARGET_PLATFORM}"
9
10WORKONSRC = "${MTK_SRC}"
11
12inherit deploy workonsrc
13
14#Parameters passed to do_compile()
15EXTRA_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
22ALLOW_EMPTY_${PN} = "1"
23
24FILES_${PN}-dev = "*"
25FILES_${PN} = "*"
26
27do_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
34addtask bachclean
35do_bachclean () {
36 oe_runmake clean
37}