| #Basic Configuration |
| DESCRIPTION = "Customization." |
| SECTION = "base" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| DEPENDS = "custom" |
| MTK_SRC = "${TOPDIR}/../src/support/libnvram_custom" |
| NVRAM_PREFIX = "${STAGING_DIR}/${MACHINE}${includedir}/install" |
| |
| WORKONSRC = "${MTK_SRC}" |
| BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${TOPDIR}/../src/support/nvram/libnvram" |
| BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST}" |
| |
| inherit deploy workonsrc |
| PRJ_FILENAME = "${MTK_PROJECT}" |
| #Parameters passed to do_compile() |
| EXTRA_OEMAKE = "'CROSS=${TARGET_PREFIX}'\ |
| 'PREFIX=${NVRAM_PREFIX}'\ |
| 'PACKAGE_ARCH=${PACKAGE_ARCH}'\ |
| 'BB_INCLUDE_ADD=${BB_INCLUDE_ADD}'\ |
| 'BB_LDFLAGS_ADD=${BB_LDFLAGS_ADD}'\ |
| 'PRJ_FILENAME=${PRJ_FILENAME}'\ |
| 'NVRAM_COMBO_CHIP_ID=${COMBO_CHIP_ID}'" |
| |
| FILES_${PN} = "${base_libdir}/*.so\ |
| ${base_bindir}\ |
| ${base_sbindir}\ |
| /mnt\ |
| /tmp\ |
| /etc\ |
| /test" |
| |
| FILES_${PN}-dev = "${includedir}" |
| |
| FILES_${PN}-staticdev = "${base_libdir}/*.a" |
| |
| FILES_${PN}-doc = "/doc" |
| |
| FILES_${PN}-dbg = "/usr/src/debug \ |
| ${base_bindir}/.debug \ |
| ${base_libdir}/.debug \ |
| ${base_sbindir}/.debug" |
| |
| |
| #Skip strip check in QA test. |
| INSANE_SKIP_${PN} += "already-stripped" |
| |
| |
| do_compile () { |
| unset LDFLAGS |
| oe_runmake all ROOT=${STAGING_DIR_HOST}${exec_prefix} BOOTDEV_TYPE=${BOOTDEV_TYPE} |
| } |
| |
| do_install () { |
| oe_runmake install ROOT=${D} |
| |
| if [ -d "${S}/CFG/${PRJ_FILENAME}/cgen/" ]; then |
| install -d ${D}${includedir} |
| cp -af ${S}/CFG/${PRJ_FILENAME}/cgen/* ${D}${includedir} |
| else |
| if [ -d "${D}/include" ]; then |
| install -d ${D}${includedir} |
| cp -af ${D}/include/* ${D}${includedir} |
| rm -rf ${D}/include |
| fi |
| fi |
| } |
| |
| addtask nvramclean |
| do_nvramclean () { |
| oe_runmake clean |
| } |
| |
| INSANE_SKIP_${PN} += "ldflags" |
| INSANE_SKIP_${PN} += "installed-vs-shipped" |