uboot 2016.05编译uboot.bin和spl

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

你可能感兴趣的:(uboot)