uboot 添加新的编译目标
1.在u-boot-2015.01-mainline/configs下创建新的板卡文件,例如am335x_evm_xj_encryption_128m_defconfig,加入内容
CONFIG_SPL=y CONFIG_SYS_EXTRA_OPTIONS="NAND" CONFIG_CONS_INDEX=1 +S:CONFIG_ARM=y +S:CONFIG_TARGET_AM335X_XJ_ENCRYPTION_128M_EVM=y
2.在u-boot-2015.01-mainline/arch/arm/Kconfig,添加菜单项
config TARGET_AM335X_XJ_ENCRYPTION_128M_EVM
bool "Support am335x_evm"
select CPU_V7
select SUPPORT_SPL
3.在u-boot-2015.01-mainline/ard/ti/am335x/Kconfig添加新板卡
if TARGET_AM335X_XJ_ENCRYPTION_128M_EVM
config SYS_BOARD
default "am335x"
config SYS_VENDOR
default "ti"
config SYS_SOC
default "am33xx"
config SYS_CONFIG_NAME
default "am335x_evm"
config CONS_INDEX
int "UART used for console"
range 1 6
default 1
help
The AM335x SoC has a total of 6 UARTs (UART0 to UART5 as referenced
in documentation, etc) available to it. Depending on your specific
board you may want something other than UART0 as for example the IDK
uses UART3 so enter 4 here.
config NOR
bool "Support for NOR flash"
help
The AM335x SoC supports having a NOR flash connected to the GPMC.
In practice this is seen as a NOR flash module connected to the
"memory cape" for the BeagleBone family.
config NOR_BOOT
bool "Support for booting from NOR flash"
depends on NOR
help
Enabling this will make a U-Boot binary that is capable of being
booted via NOR. In this case we will enable certain pinmux early
as the ROM only partially sets up pinmux. We also default to using
NOR for environment.
endif
4.在Rules.make里加入新的编译目标
UBOOT_MACHINE_XJ_ENCRYPRION_128M=am335x_evm_xj_encryption_128m_defconfig
5.在Makefile里加入编译目标
u-boot-xj-encryption-128m:
$(MAKE) -C $(TI_SDK_PATH)/board-support/u-boot-2015* CROSS_COMPILE=$(CROSS_COMPILE) $(UBOOT_MACHINE_XJ_ENCRYPRION_128M)
$(MAKE) -C $(TI_SDK_PATH)/board-support/u-boot-2015* CROSS_COMPILE=$(CROSS_COMPILE)
u-boot-spl-xj-encryption-128m: u-boot-xj-encryption-128m
浙公网安备 33010602011771号