u-boot Kconfig structure analysis

1

/u-boot-2019.07/Kconfig

source "arch/Kconfig"

 

2

/u-boot-2019.07/arch/Kconfig -> there is a an option to select the ARM architecture

choice
    prompt "Architecture select"
    default SANDBOX

config ARM
    bool "ARM architecture"
    select CREATE_ARCH_SYMLINK
    select HAVE_PRIVATE_LIBGCC if !ARM64
    select SUPPORT_OF_CONTROL

 

3

/u-boot-2019.07/arch/arm/Kconfig

the MENU "ARM Architecture"
    The depends on ARM # ON-dependent layer selected ARM

 

sys_arch config
    default "ARM" #CONFIG_SYS_ARCH default ARM

config arm64
    BOOL #bool not set, this time to rely on other items the SELECT
    the SELECT PHYS_64BIT
    the SELECT SYS_CACHE_SHIFT_6

 

choice       #在这里选machine
    prompt "Target select"
    default TARGET_HIKEY

Case Study # to mx6

config ARCH_MX6 # there is a configuration item can be selected where the election is only possible there are many types of cards, and then look at how to deal with the MX6 architecture, this architecture.
    BOOL "the Freescale MX6"
    SELECT CPU_V7A  
    SELECT IF SECURE_BOOT SYS_FSL_HAS_SEC
    SELECT SYS_FSL_SEC_COMPAT_4
    SELECT SYS_FSL_SEC_LE
    SELECT IF SYS_THUMB_BUILD the SPL
    Imply MXC_GPIO

IF ARCH_MX6
config SPL_LDSCRIPT
    default "Arch / ARM / Mach-OMAP2 / u-boot-spl.lds"
endif

config ARCH_OWL
    BOOL "Semi the Actions SoCs OWL "
    the SELECT aRM64 # here chose aRM64, aRM64 and then go through another election
    the SELECT DM
    the SELECT DM_SERIAL
    the SELECT OF_CONTROL
    Imply CMD_DM

source "arch / arm / mach-imx / Kconfig" # whole imx some configuration

source "arch / arm / mach-imx / mx6 / Kconfig" of some configuration # mx6

# The board should also mx6 config but does not seem to be as usual, each company code different source "board / freescale / mx6ullevk / Kconfig"

 

4

/u-boot-2019.07/arch/arm/mach-imx/mx6/Kconfig

ARCH_MX6 IF
Choice # where the election board Board
    prompt "MX6 Board the SELECT"
    optional


config TARGET_MX6ULL_14X14_EVK
    bool "Support mx6ull_14x14_evk"
    select BOARD_LATE_INIT
    select DM
    select DM_THERMAL
    select MX6ULL
    imply CMD_DM

 

config SYS_SOC # This defines SYS_SOC
    default "MX6"

source "board/freescale/mx6ullevk/Kconfig"

5

/u-boot-2019.07/board/freescale/mx6ullevk/Kconfig

if TARGET_MX6ULL_14X14_EVK

config SYS_BOARD
    default "mx6ullevk"

config SYS_VENDOR
    default "freescale"

config SYS_CONFIG_NAME
    default "mx6ullevk"

endif

 

Guess you like

Origin www.cnblogs.com/idyllcheung/p/11514265.html