| FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| |
| # don't include kernel-image to rootfs |
| RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" |
| |
| DEPENDS += "kern-tools-native" |
| |
| SRC_URI += " \ |
| file://kernel_nfsb_enable.cfg \ |
| file://auto2731fpga_ivt_mcp_nand_defconfig.cfg \ |
| file://auto2731evb_ivt_mcp_lp2_nand_defconfig.cfg \ |
| file://auto2731evb_ivt_mt6389.cfg \ |
| file://auto2731evb_ivt_mt6356.cfg \ |
| file://auto2731evb_ivt_trustonic.cfg \ |
| file://auto2731evb_ivt_optee.cfg \ |
| file://debug_aee.cfg \ |
| file://debug.cfg \ |
| file://user_build.cfg \ |
| file://bt_audio_pcm.cfg \ |
| file://hsm.cfg \ |
| " |
| |
| merge_defconfig_function () { |
| if [ -f "${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/$2 |
| else |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/$1 ${WORKDIR}/$2 |
| fi |
| } |
| |
| do_configure_prepend () { |
| if [ "${KBUILD_DEFCONFIG}" = "auto2731evb_ivt_emmc_defconfig" ]; then |
| if [ "${MTK_PMIC_CHIP_TYPE}" = "MT6389" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/mt2731_defconfig ${WORKDIR}/auto2731evb_ivt_mt6389.cfg |
| fi |
| if [ "${MTK_PMIC_CHIP_TYPE}" = "MT6356" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/mt2731_sub_defconfig ${WORKDIR}/auto2731evb_ivt_mt6356.cfg |
| fi |
| if [ "${TEE_SUPPORT}" = "tbase" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/auto2731evb_ivt_trustonic.cfg |
| fi |
| if [ "${TEE_SUPPORT}" = "optee" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/auto2731evb_ivt_optee.cfg |
| fi |
| if [ "${KERNEL_AEE_CFG}" = "yes" ] ; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/debug_aee.cfg |
| fi |
| fi |
| |
| if [ "${KBUILD_DEFCONFIG}" = "auto2731evb_ivt_mcp_lp2_nand_defconfig" ]; then |
| if [ "${MTK_PMIC_CHIP_TYPE}" = "MT6389" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/mt2731_defconfig ${WORKDIR}/${KBUILD_DEFCONFIG}.cfg |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/auto2731evb_ivt_mt6389.cfg |
| fi |
| if [ "${MTK_PMIC_CHIP_TYPE}" = "MT6356" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/mt2731_sub_defconfig ${WORKDIR}/${KBUILD_DEFCONFIG}.cfg |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/auto2731evb_ivt_mt6356.cfg |
| fi |
| if [ "${TEE_SUPPORT}" = "tbase" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/auto2731evb_ivt_trustonic.cfg |
| fi |
| if [ "${TEE_SUPPORT}" = "optee" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/auto2731evb_ivt_optee.cfg |
| fi |
| if [ "${KERNEL_AEE_CFG}" = "yes" ] ; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/debug_aee.cfg |
| fi |
| fi |
| |
| if [ "${KBUILD_DEFCONFIG}" = "auto2731evb_ivt_spi_nand_defconfig" ]; then |
| if [ "${MTK_PMIC_CHIP_TYPE}" = "MT6389" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/mt2731_defconfig ${WORKDIR}/${KBUILD_DEFCONFIG}.cfg |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/auto2731evb_ivt_mt6389.cfg |
| fi |
| if [ "${MTK_PMIC_CHIP_TYPE}" = "MT6356" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/mt2731_sub_defconfig ${WORKDIR}/${KBUILD_DEFCONFIG}.cfg |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/auto2731evb_ivt_mt6356.cfg |
| fi |
| if [ "${TEE_SUPPORT}" = "tbase" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/auto2731evb_ivt_trustonic.cfg |
| fi |
| if [ "${TEE_SUPPORT}" = "optee" ]; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/auto2731evb_ivt_optee.cfg |
| fi |
| if [ "${KERNEL_AEE_CFG}" = "yes" ] ; then |
| merge_config.sh -O ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/ -m ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${WORKDIR}/debug_aee.cfg |
| fi |
| fi |
| |
| if [ "${SECURE_BOOT_ENABLE}" = "yes" ]; then |
| merge_defconfig_function mt2731_defconfig kernel_nfsb_enable.cfg |
| fi |
| |
| if [ "${BT_AUDIO_PCM_INTERFACE}" = "yes" ]; then |
| merge_defconfig_function mt2731_defconfig bt_audio_pcm.cfg |
| fi |
| |
| if [ "${BUILD_LOAD_TYPE}" = "eng" ]; then |
| merge_defconfig_function mt2731_defconfig debug.cfg |
| fi |
| if [ "${BUILD_LOAD_TYPE}" = "user" ]; then |
| merge_defconfig_function mt2731_defconfig user_build.cfg |
| fi |
| |
| if [ "${HSM_OS_SUPPORT}" = "yes" ]; then |
| merge_defconfig_function mt2731_defconfig hsm.cfg |
| fi |
| |
| if [ -f "${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config" ]; then |
| mv ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/.config ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/${KBUILD_DEFCONFIG} |
| fi |
| } |
| |
| do_configure_append () { |
| if [ "${KBUILD_DEFCONFIG}" = "auto2731evb_ivt_emmc_defconfig" ]; then |
| rm ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/${KBUILD_DEFCONFIG} |
| fi |
| if [ "${KBUILD_DEFCONFIG}" = "auto2731fpga_ivt_mcp_nand_defconfig" ]; then |
| rm ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/${KBUILD_DEFCONFIG} |
| fi |
| if [ "${KBUILD_DEFCONFIG}" = "auto2731evb_ivt_mcp_lp2_nand_defconfig" ]; then |
| rm ${TOPDIR}/../src/kernel/linux/v4.14/arch/${KERNEL_ARCH}/configs/${KBUILD_DEFCONFIG} |
| fi |
| } |
| |
| KERNEL_MODULE_AUTOLOAD += "wmt_drv" |
| KERNEL_MODULE_AUTOLOAD += "stp_chrdev_bt" |