i.MX6 u-boot 怎么确定板级头文件

/**********************************************************************
 *                     i.MX6 u-boot 怎么确定板级头文件
 * 说明:
 *     拿到u-boot之后,能够快速确定到相应的班级头文件是挺重要的事情。
 *
 *                                2018-6-29 深圳 宝安西乡 曾剑锋
 *********************************************************************/

一、获取Linux默认班级配置文件:
    1.1 Linux:
        zengjf@desk-ubuntu:~/uboot-fsl_uboot_L4.1.15_from_TP/configs$ make mx6dlsabresd_defconfig V=1
        make -f ./scripts/Makefile.build obj=scripts/basic
        rm -f .tmp_quiet_recordmcount
        make -f ./scripts/Makefile.build obj=scripts/kconfig mx6dlsabresd_defconfig
        scripts/kconfig/conf  --defconfig=arch/../configs/mx6dlsabresd_defconfig Kconfig
        #
        # configuration written to .config
        #
    1.2 Android:
        zengjf@desk-ubuntu:~/uboot-fsl_uboot_L4.1.15_from_TP/configs$ make mx6dlsabresdandroid_defconfig V=1
        make -f ./scripts/Makefile.build obj=scripts/basic
        rm -f .tmp_quiet_recordmcount
        make -f ./scripts/Makefile.build obj=scripts/kconfig mx6dlsabresdandroid_defconfig
        scripts/kconfig/conf  --defconfig=arch/../configs/mx6dlsabresdandroid_defconfig Kconfig
        #
        # configuration written to .config
        #

二、获取班级头文件目标:
    2.1 Linux:
        zengjf@desk-ubuntu:~/uboot-fsl_uboot_L4.1.15_from_TP/configs$ cat arch/../configs/mx6dlsabresd_defconfig
        CONFIG_ARM=y
        CONFIG_ARCH_MX6=y
        CONFIG_TARGET_MX6SABRESD=y
        CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6dlsabresd.cfg,MX6DL,SYS_USE_SPINOR"
        CONFIG_CMD_GPIO=y
    2.2 Android:
        zengjf@desk-ubuntu:~/uboot-fsl_uboot_L4.1.15_from_TP/configs$ cat arch/../configs/mx6dlsabresdandroid_defconfig
        CONFIG_ARM=y
        CONFIG_ARCH_MX6=y
        CONFIG_TARGET_MX6SABRESD=y
        CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6dlsabresd.cfg,MX6DL,SYS_USE_SPINOR,ANDROID_SUPPORT"
        CONFIG_CMD_GPIO=y
    
三、板级头文件:
    1. 根据前面的CONFIG_TARGET_MX6SABRESD --> mx6sabresd
    2. include/configs/mx6sabresd.h
        1. #include "mx6sabre_common.h"
        2. #include "mx6sabreandroid_common.h"      # 依据CONFIG_ANDROID_SUPPORT宏进行加载

 

posted on 2018-06-29 14:21  zengjf  阅读(482)  评论(0编辑  收藏  举报

导航