Lines Matching full:boot
331 # U-Boot does not need modules
544 u-boot.cfg spl/u-boot.cfg tpl/u-boot.cfg:
579 #LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot.lds.debug
589 LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot.lds
592 LDSCRIPT := $(srctree)/$(CPUDIR)/u-boot.lds
595 LDSCRIPT := $(srctree)/arch/$(ARCH)/cpu/u-boot.lds
685 # U-Boot objects....order is important (i.e. start must be first)
743 u-boot-dirs := $(patsubst %/,%,$(filter %/, $(libs-y))) tools examples
745 u-boot-alldirs := $(sort $(u-boot-dirs) $(patsubst %/,%,$(filter %/, $(libs-))))
749 u-boot-init := $(head-y)
750 u-boot-main := $(libs-y)
773 -include $(srctree)/include/u-boot/u-boot.lds.h \
801 # $(1) is u-boot ELF, $(2) is u-boot bin, $(3) is text base
811 ALL-y += u-boot.srec u-boot.bin u-boot.sym System.map binary_size_check
813 ALL-$(CONFIG_ONENAND_U_BOOT) += u-boot-onenand.bin
815 ALL-$(CONFIG_RAMBOOT_PBL) += u-boot-with-spl-pbl.bin
818 # For Secure Boot The Image needs to be signed and Header must also
820 ALL-$(CONFIG_RAMBOOT_PBL) += u-boot.pbl
823 ALL-$(CONFIG_SPL) += spl/u-boot-spl.bin
825 ALL-$(CONFIG_SPL_FRAMEWORK) += u-boot-ivt.img
828 ALL-$(CONFIG_SPL_FRAMEWORK) += u-boot-ivt.img
830 ALL-$(CONFIG_SPL_FRAMEWORK) += u-boot.img
833 ALL-$(CONFIG_TPL) += tpl/u-boot-tpl.bin
834 ALL-$(CONFIG_OF_SEPARATE) += u-boot.dtb
836 ALL-$(CONFIG_OF_SEPARATE) += u-boot-dtb.img
838 ALL-$(CONFIG_OF_HOSTFILE) += u-boot.dtb
842 ALL-$(CONFIG_REMAKE_ELF) += u-boot.elf
843 ALL-$(CONFIG_EFI_APP) += u-boot-app.efi
844 ALL-$(CONFIG_EFI_STUB) += u-boot-payload.efi
847 ALL-$(CONFIG_X86_RESET_VECTOR) += u-boot.rom
850 # Build a combined spl + u-boot image for sunxi
852 ALL-y += u-boot-sunxi-with-spl.bin
855 # enable combined SPL/u-boot/dtb rules for tegra
857 ALL-y += u-boot-tegra.bin u-boot-nodtb-tegra.bin
858 ALL-$(CONFIG_OF_SEPARATE) += u-boot-dtb-tegra.bin
861 ALL-$(CONFIG_ARCH_MEDIATEK) += u-boot-mtk.bin
873 ALL-y += u-boot-with-dtb.bin
876 LDFLAGS_u-boot += $(LDFLAGS_FINAL)
879 LDFLAGS_u-boot += $(call ld-option, --no-dynamic-linker)
881 # Avoid 'warning: u-boot-spl has a LOAD segment with RWX permissions'
882 LDFLAGS_u-boot += $(call ld-option,--no-warn-rwx-segments)
885 LDFLAGS_u-boot += -z noexecstack
888 LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE)
921 cfg: u-boot.cfg
1017 $(call cmd,cfgcheck,u-boot.cfg)
1022 dts/dt.dtb: u-boot
1033 MKIMAGEFLAGS_fit-dtb.blob = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
1037 u-boot-fit-dtb.bin: u-boot-nodtb.bin fit-dtb.blob
1040 u-boot.bin: u-boot-fit-dtb.bin FORCE
1043 u-boot-dtb.bin: u-boot-nodtb.bin dts/dt.dtb FORCE
1046 u-boot.bin: u-boot-dtb.bin FORCE
1049 u-boot.bin: u-boot-nodtb.bin FORCE
1062 u-boot.dtb: dts/dt.dtb
1065 OBJCOPYFLAGS_u-boot.hex := -O ihex
1067 OBJCOPYFLAGS_u-boot.srec := -O srec
1069 u-boot.hex u-boot.srec: u-boot FORCE
1072 OBJCOPYFLAGS_u-boot-elf.srec := $(OBJCOPYFLAGS_u-boot.srec)
1074 u-boot-elf.srec: u-boot.elf FORCE
1077 OBJCOPYFLAGS_u-boot-spl.srec = $(OBJCOPYFLAGS_u-boot.srec)
1079 spl/u-boot-spl.srec: spl/u-boot-spl FORCE
1082 OBJCOPYFLAGS_u-boot-nodtb.bin := -O binary \
1086 OBJCOPYFLAGS_u-boot-spl.hex = $(OBJCOPYFLAGS_u-boot.hex)
1088 spl/u-boot-spl.hex: spl/u-boot-spl FORCE
1091 binary_size_check: u-boot-nodtb.bin FORCE
1092 @file_size=$(shell wc -c u-boot-nodtb.bin | awk '{print $$1}') ; \
1093 map_size=$(shell cat u-boot.map | \
1099 echo "u-boot.map shows a binary size of $$map_size" >&2 ; \
1100 echo " but u-boot-nodtb.bin shows $$file_size" >&2 ; \
1120 init_sp_bss_offset_check: u-boot.dtb FORCE
1121 @dtb_size=$(shell wc -c u-boot.dtb | awk '{print $$1}') ; \
1126 echo "u-boot.dtb is larger than 1 quarter of " >&2 ; \
1132 u-boot-nodtb.bin: u-boot FORCE
1137 u-boot.ldr: u-boot
1146 cmd_binman = $(srctree)/tools/binman/binman -u -d u-boot.dtb -O . -m \
1150 OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex
1152 OBJCOPYFLAGS_u-boot.ldr.srec := -I binary -O srec
1154 u-boot.ldr.hex u-boot.ldr.srec: u-boot.ldr FORCE
1158 # U-Boot entry point, needed for booting of full-blown U-Boot
1159 # from the SPL U-Boot version.
1171 U_BOOT_ITS := u-boot.its
1173 U_BOOT_ITS_DEPS += u-boot-nodtb.bin
1176 U_BOOT_ITS_DEPS += u-boot
1185 MKIMAGEFLAGS_u-boot.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
1187 -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \
1190 MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \
1192 -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board"
1193 MKIMAGEFLAGS_u-boot-ivt.img = -A $(ARCH) -T firmware_ivt -C none -O u-boot \
1195 -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board"
1196 u-boot-ivt.img: MKIMAGEOUTPUT = u-boot-ivt.img.log
1197 CLEAN_FILES += u-boot-ivt.img.log u-boot-dtb.imx.log SPL.log u-boot.imx.log
1200 MKIMAGEFLAGS_u-boot-dtb.img = $(MKIMAGEFLAGS_u-boot.img)
1202 MKIMAGEFLAGS_u-boot.kwb = -n $(srctree)/$(CONFIG_SYS_KWD_CONFIG:"%"=%) \
1205 MKIMAGEFLAGS_u-boot-spl.kwb = -n $(srctree)/$(CONFIG_SYS_KWD_CONFIG:"%"=%) \
1209 MKIMAGEFLAGS_u-boot.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \
1212 u-boot-dtb.img u-boot.img u-boot.kwb u-boot.pbl u-boot-ivt.img: \
1213 $(if $(CONFIG_SPL_LOAD_FIT),u-boot-nodtb.bin dts/dt.dtb,u-boot.bin) FORCE
1218 MKIMAGEFLAGS_u-boot.itb =
1220 MKIMAGEFLAGS_u-boot.itb = -E
1223 u-boot.itb: u-boot-nodtb.bin dts/dt.dtb $(U_BOOT_ITS) FORCE
1227 u-boot-spl.kwb: u-boot.img spl/u-boot-spl.bin FORCE
1230 u-boot.sha1: u-boot.bin
1231 tools/ubsha1 u-boot.bin
1233 u-boot.dis: u-boot
1239 SPL_PAYLOAD := u-boot.bin
1242 OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \
1244 u-boot-with-spl.bin: spl/u-boot-spl.bin $(SPL_PAYLOAD) FORCE
1250 lpc32xx-spl.img: spl/u-boot-spl.bin FORCE
1253 OBJCOPYFLAGS_lpc32xx-boot-0.bin = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO)
1255 lpc32xx-boot-0.bin: lpc32xx-spl.img FORCE
1258 OBJCOPYFLAGS_lpc32xx-boot-1.bin = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO)
1260 lpc32xx-boot-1.bin: lpc32xx-spl.img FORCE
1263 lpc32xx-full.bin: lpc32xx-boot-0.bin lpc32xx-boot-1.bin u-boot.img FORCE
1269 OBJCOPYFLAGS_u-boot-with-tpl.bin = -I binary -O binary \
1271 tpl/u-boot-with-tpl.bin: tpl/u-boot-tpl.bin u-boot.bin FORCE
1274 SPL: spl/u-boot-spl.bin FORCE
1278 flash.bin: spl/u-boot-spl.bin u-boot.itb FORCE
1282 u-boot-with-spl.imx u-boot-with-nand-spl.imx: SPL u-boot.bin FORCE
1285 MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e $(CONFIG_SYS_TEXT_BASE)
1287 u-boot.ubl: u-boot-with-spl.bin FORCE
1290 MKIMAGEFLAGS_u-boot-spl.ais = -s -n $(if $(CONFIG_AIS_CONFIG_FILE), \
1293 spl/u-boot-spl.ais: spl/u-boot-spl.bin FORCE
1296 OBJCOPYFLAGS_u-boot.ais = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO)
1297 u-boot.ais: spl/u-boot-spl.ais u-boot.img FORCE
1300 u-boot-signed.sb: u-boot.bin spl/u-boot-spl.bin
1301 $(Q)$(MAKE) $(build)=arch/arm/cpu/arm926ejs/mxs u-boot-signed.sb
1302 u-boot.sb: u-boot.bin spl/u-boot-spl.bin
1303 $(Q)$(MAKE) $(build)=arch/arm/cpu/arm926ejs/mxs u-boot.sb
1305 # On x600 (SPEAr600) U-Boot is appended to U-Boot SPL.
1310 # The resulting image containing both U-Boot images is called u-boot.spr
1311 MKIMAGEFLAGS_u-boot-spl.img = -A $(ARCH) -T firmware -C none \
1313 spl/u-boot-spl.img: spl/u-boot-spl.bin FORCE
1316 OBJCOPYFLAGS_u-boot.spr = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO) \
1318 u-boot.spr: spl/u-boot-spl.img u-boot.img FORCE
1323 cmd_socboot = cat spl/u-boot-spl.sfp spl/u-boot-spl.sfp \
1324 spl/u-boot-spl.sfp spl/u-boot-spl.sfp \
1325 u-boot.img > $@ || rm -f $@
1326 u-boot-with-spl.sfp: spl/u-boot-spl.sfp u-boot.img FORCE
1331 u-boot-with-dtb.bin: u-boot.bin u-boot.dtb \
1332 $(if $(CONFIG_MPC85XX_HAVE_RESET_VECTOR), u-boot-br.bin) FORCE
1336 OBJCOPYFLAGS_u-boot-br.bin := -O binary -j .bootpg -j .resetvec
1337 u-boot-br.bin: u-boot FORCE
1343 # reset vector) at the top, Intel ME descriptor at the bottom, and U-Boot in
1347 rom: u-boot.rom FORCE
1356 u-boot.rom: u-boot-x86-16bit.bin u-boot.bin \
1357 $(if $(CONFIG_SPL_X86_16BIT_INIT),spl/u-boot-spl.bin) \
1361 OBJCOPYFLAGS_u-boot-x86-16bit.bin := -O binary -j .start16 -j .resetvec
1362 u-boot-x86-16bit.bin: u-boot FORCE
1368 u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb FORCE
1371 u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.itb FORCE
1378 # Makes u-boot-dtb-tegra.bin u-boot-tegra.bin u-boot-nodtb-tegra.bin
1383 OBJCOPYFLAGS_u-boot-nodtb-tegra.bin = -O binary --pad-to=$(CONFIG_SYS_TEXT_BASE)
1384 u-boot-nodtb-tegra.bin: spl/u-boot-spl u-boot-nodtb.bin FORCE
1387 OBJCOPYFLAGS_u-boot-tegra.bin = -O binary --pad-to=$(CONFIG_SYS_TEXT_BASE)
1388 u-boot-tegra.bin: spl/u-boot-spl u-boot.bin FORCE
1391 u-boot-dtb-tegra.bin: u-boot-tegra.bin FORCE
1396 OBJCOPYFLAGS_u-boot-app.efi := $(OBJCOPYFLAGS_EFI)
1397 u-boot-app.efi: u-boot FORCE
1400 u-boot.bin.o: u-boot.bin FORCE
1403 u-boot-payload.lds: $(LDSCRIPT_EFI) FORCE
1406 # Rule to link the EFI payload which contains a stub and a U-Boot binary
1409 -T u-boot-payload.lds arch/x86/cpu/call32.o \
1410 lib/efi/efi.o lib/efi/efi_stub.o u-boot.bin.o \
1413 u-boot-payload: u-boot.bin.o u-boot-payload.lds FORCE
1416 OBJCOPYFLAGS_u-boot-payload.efi := $(OBJCOPYFLAGS_EFI)
1417 u-boot-payload.efi: u-boot-payload FORCE
1420 u-boot-img.bin: spl/u-boot-spl.bin u-boot.img FORCE
1423 #Add a target to create boot binary having SPL binary in PBI format
1424 #concatenated with u-boot binary. It is need by PowerPC SoC having
1426 MKIMAGEFLAGS_u-boot-spl.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \
1430 spl/u-boot-spl.pbl: spl/u-boot-spl.bin FORCE
1434 UBOOT_BINLOAD := u-boot.img
1437 UBOOT_BINLOAD := u-boot-with-dtb.bin
1439 UBOOT_BINLOAD := u-boot.bin
1443 OBJCOPYFLAGS_u-boot-with-spl-pbl.bin = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO) \
1446 u-boot-with-spl-pbl.bin: spl/u-boot-spl.pbl $(UBOOT_BINLOAD) FORCE
1450 # is located at 0xfffffffc. So we can't use the "u-boot-img.bin" target
1451 # and need to introduce a new build target with the full blown U-Boot
1455 OBJCOPYFLAGS_u-boot-img-spl-at-end.bin := -I binary -O binary \
1457 u-boot-img-spl-at-end.bin: u-boot.img spl/u-boot-spl.bin FORCE
1464 quiet_cmd_u-boot-elf ?= LD $@
1465 cmd_u-boot-elf ?= $(LD) u-boot-elf.o -o $@ \
1468 u-boot.elf: u-boot.bin
1469 $(Q)$(OBJCOPY) -I binary $(PLATFORM_ELFFLAGS) $< u-boot-elf.o
1470 $(call if_changed,u-boot-elf)
1472 # MediaTek's ARM-based u-boot needs a header to contains its load address
1475 # and the spl binary and the u-boot.img will be combined into one file.
1476 # Otherwise the header will be added to the u-boot.bin directly.
1479 spl/u-boot-spl-mtk.bin: spl/u-boot-spl
1481 u-boot-mtk.bin: u-boot.dtb u-boot.img spl/u-boot-spl-mtk.bin FORCE
1484 MKIMAGEFLAGS_u-boot-mtk.bin = -T mtk_image \
1488 u-boot-mtk.bin: u-boot.bin FORCE
1494 # Rule to link u-boot
1497 cmd_u-boot__ ?= $(LD) $(LDFLAGS) $(LDFLAGS_u-boot) -o $@ \
1498 -T u-boot.lds $(u-boot-init) \
1499 --start-group $(u-boot-main) --end-group \
1500 $(PLATFORM_LIBS) -Map u-boot.map; \
1505 smap=`$(call SYSTEM_MAP,u-boot) | \
1510 u-boot: $(u-boot-init) $(u-boot-main) u-boot.lds FORCE
1523 u-boot.sym: u-boot FORCE
1528 $(sort $(u-boot-init) $(u-boot-main)): $(u-boot-dirs) ;
1536 PHONY += $(u-boot-dirs)
1537 $(u-boot-dirs): prepare scripts
1542 $(filter-out tools, $(u-boot-dirs)): tools
1543 # The "examples" conditionally depend on U-Boot (say, when USE_PRIVATE_LIBGCC
1544 # is "yes"), so compile examples after U-Boot is compiled.
1545 examples: $(filter-out examples, $(u-boot-dirs))
1570 @$(kecho) ' Using $(srctree) as source for U-Boot'
1607 echo \#define U_BOOT_VERSION \"U-Boot \" PLAIN_VERSION; \
1663 u-boot.lds: $(LDSCRIPT) prepare FORCE
1666 spl/u-boot-spl.bin: spl/u-boot-spl
1668 spl/u-boot-spl: tools prepare \
1673 spl/sunxi-spl.bin: spl/u-boot-spl
1679 spl/u-boot-spl.sfp: spl/u-boot-spl
1682 spl/boot.bin: spl/u-boot-spl
1685 tpl/u-boot-tpl.bin: tools prepare \
1689 TAG_SUBDIRS := $(patsubst %,$(srctree)/%,$(u-boot-dirs) include)
1711 System.map: u-boot
1718 checkarmreloc: u-boot
1741 git log --no-merges U-Boot-1_1_5.. | \
1759 boot* u-boot* MLO* SPL System.map fit-dtb.blob
1773 clean-dirs := $(foreach f,$(u-boot-alldirs),$(if $(wildcard $(srctree)/$f/Makefile),$f))
1843 @echo ' tests - Build U-Boot for sandbox and run tests'
1844 @echo '* u-boot - Build the bare u-boot'
1899 $(OBJDUMP) -d u-boot $$(find . -name u-boot-spl) | \