| #Basic Configuration |
| DESCRIPTION = "Log multiplexier kernel module." |
| SECTION = "base" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| DEPENDS = "custom virtual/kernel" |
| MTK_SRC = "${BACH_SRC}/mod-logmux" |
| |
| WORKONSRC = "${MTK_SRC}" |
| BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${BACH_SRC}/mod-crosslink/include " |
| BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST}" |
| |
| inherit deploy workonsrc |
| |
| #Parameters passed to do_compile() |
| EXTRA_OEMAKE += "'CROSS=${TARGET_PREFIX}'\ |
| 'PREFIX=${BACH_PREFIX}'\ |
| 'PACKAGE_ARCH=${PACKAGE_ARCH}'\ |
| 'ARCH=${KERNEL_ARCH}'\ |
| 'KERNELDIR=${KERNEL_OUT_DIR}'\ |
| 'CONFIG=${BB_INCLUDE_ADD}'" |
| |
| FILES_${PN} = "/lib/modules" |
| |
| FILES_${PN}-dev = "${includedir}" |
| |
| #Skip strip check in QA test. |
| INSANE_SKIP_${PN} += "already-stripped" |
| |
| |
| do_compile () { |
| unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE |
| oe_runmake KBUILD_EXTRA_INCLUDE=${STAGING_INCDIR}/asm/arch |
| } |
| |
| do_install () { |
| unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE |
| oe_runmake install SYSROOT=${D} KBUILD_EXTRA_INCLUDE=${D}/include/asm/arch |
| find ${D} -name "modules.*" -exec rm -f '{}' \; |
| |
| if [ -d "${D}/include" ]; then |
| install -d ${D}${includedir} |
| cp -af ${D}/include/* ${D}${includedir} |
| rm -rf ${D}/include |
| fi |
| } |
| |
| addtask bachclean |
| do_bachclean () { |
| oe_runmake clean |
| } |