uboot device tree宏定义

  • 了解 uboot device tree 宏定义(README.fdt-control)

1.CONFIG_OF_CONTROL

  To enable this device tree feature, add CONFIG_OF_CONTROL to your board config file.

2.CONFIG_DEFAULT_DEVICE_TREE

  To set the filename of the device tree source.

#define CONFIG_DEFAULT_DEVICE_TREE  "<name>"

Example:

 configs/trats2_defconfig:
 CONFIG_DEFAULT_DEVICE_TREE="exynos4412-trats2"

编译之后,在arch/arm/dts目录下生成exynos4412-trats2.dtb, dts/Makefile定义有:

  8 DEVICE_TREE ?= $(CONFIG_DEFAULT_DEVICE_TREE:"%"=%)
  9 ifeq ($(DEVICE_TREE),)
 10 DEVICE_TREE := unset
 11 endif
 12 
 13 ifneq ($(EXT_DTB),)
 14 DTB := $(EXT_DTB)
 15 else
 16 DTB := arch/$(ARCH)/dts/$(DEVICE_TREE).dtb
 17 endif

3.CONFIG_OF_EMBED

  If CONFIG_OF_EMBED is defined, then it will be picked up and built into the U-Boot image (including u-boot.bin). This is suitable for debugging and development only and is not recommended for production devices.

详细查看: dts/Kconfig

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值