uboot 2016.05编译uboot.bin和spl

本文详细介绍了U-Boot的编译流程,包括Makefile的配置与目标定义,从源代码到最终生成的固件文件的过程。展示了如何通过Makefile来组织编译任务,并逐步解释了编译过程中涉及的各种步骤和技术细节。
摘要由CSDN通过智能技术生成
1: $(srctree)/Makefile
Makefile中的all目标编译出相应的文件. 我们来看看这个all目标
all: $(ALL-y)

# Always append ALL so that arch config.mk's can add custom ones
ALL-y += u-boot.srec u-boot.bin System.map u-boot.cfg binary_size_check

ALL-$(CONFIG_SPL) += spl/u-boot-spl.bin

spl/u-boot-spl.bin: spl/u-boot-spl
@:
spl/u-boot-spl: tools prepare
$(Q)$(MAKE) obj=spl -f $(srctree)/scripts/Makefile.spl all
2: s cripts/Makefile.spl,drivers/Makefile
3:编译过程:
Build U-Boot on the /ti-sdk-am57xx-evm-03.00.00.04/scripts/../source/u-boot-2016.05 
CHK     include/config/uboot.release 
CHK     include/generated/timestamp_autogenerated.h
  HOSTCC  scripts/basic/fixdep
  UPD     include/generated/timestamp_autogenerated.h
  CFG     u-boot.cfg
  CHK     include/generated/version_autogenerated.h
...
  HOSTCC  tools/aisimage.o
  HOSTCC  tools/atmelimage.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/mkimage.o
  HOSTCC  tools/proftool
...
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  LD      arch/arm/cpu/built-in.o
  CC      board/ti/common/board_detect.o
  CC      board/ti/gf33/board.o
...
  CC      lib/panic.o
  CC      lib/strto.o
  LD      lib/built-in.o
  CC      examples/standalone/stubs.o
  LD      examples/standalone/libstubs.o
  LD      examples/standalone/hello_world
  OBJCOPY examples/standalone/hello_world.srec
  OBJCOPY examples/standalone/hello_world.bin
  LD      u-boot
  OBJCOPY u-boot-nodtb.bin
  OBJCOPY u-boot.srec
  DTC     arch/arm/dts/am57xx-beagle-x15.dtb
  DTC     arch/arm/dts/am572x-idk.dtb
  SYM     u-boot.sym
  DTC     arch/arm/dts/am571x-idk.dtb
  SHIPPED dts/dt.dtb
  COPY    u-boot.dtb
  MKIMAGE u-boot-dtb.img
  MKIMAGE u-boot.img
  CAT     u-boot-dtb.bin
  COPY    u-boot.bin
  LD      spl/arch/arm/cpu/built-in.o
  CC      spl/board/ti/gf33/board.o
 ...
  CC      spl/arch/arm/cpu/armv7/omap5/fdt.o
  CC      spl/arch/arm/cpu/armv7/omap5/dra7xx_iodelay.o
  LD      spl/arch/arm/cpu/armv7/omap5/built-in.o
  LD      spl/arch/arm/cpu/armv7/built-in.o
  LD      spl/fs/fat/built-in.o
  LD      spl/fs/built-in.o
  LD      spl/lib/built-in.o
  LD      spl/u-boot-spl
  OBJCOPY spl/u-boot-spl-nodtb.bin
  COPY    spl/u-boot-spl.bin
  MKIMAGE MLO 
Build U-Boot and drivers Done
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值