Lines Matching +full:u +full:- +full:boot

1 # SPDX-License-Identifier: GPL-2.0+
15 # o Do not use make's built-in rules and variables
16 # (this increases performance and avoids hard-to-debug behaviour);
18 MAKEFLAGS += -rR --include-dir=$(CURDIR)
32 # Most importantly: sub-Makefiles should only ever modify files in
35 # unavoidable when linking the built-in.o targets which finally
46 # ---------------------------------------------------------------------------
53 # cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
60 # A simple variant is to prefix commands with $(Q) - that's useful
61 # for commands that shall be hidden in non-verbose mode.
86 # If the user is running make -s (silent mode), suppress echoing of
89 ifneq ($(filter 4.%,$(MAKE_VERSION)),) # make-4
93 else # make-3.8x
94 ifneq ($(filter s% -s%,$(MAKEFLAGS)),)
136 saved-output := $(KBUILD_OUTPUT)
137 KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \
140 $(error failed to create output directory "$(saved-output)"))
142 PHONY += $(MAKECMDGOALS) sub-make
144 $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
147 sub-make: FORCE
148 $(Q)$(MAKE) -C $(KBUILD_OUTPUT) KBUILD_SRC=$(CURDIR) \
149 -f $(CURDIR)/Makefile $(filter-out _all sub-make,$(MAKECMDGOALS))
152 skip-makefile := 1
157 ifeq ($(skip-makefile),)
162 MAKEFLAGS += --no-print-directory
167 # Use 'make C=1' to enable checking of only re-compiled files.
169 # of whether they are re-compiled or not.
225 HOSTARCH := $(shell uname -m | \
226 sed -e s/i.86/x86/ \
227 -e s/sun4u/sparc64/ \
228 -e s/arm.*/arm/ \
229 -e s/sa110/arm/ \
230 -e s/ppc64/powerpc/ \
231 -e s/ppc/powerpc/ \
232 -e s/macppc/powerpc/\
233 -e s/sh.*/sh/)
235 HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
236 sed -e 's/\(cygwin\).*/cygwin/')
251 CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
252 else if [ -x /bin/bash ]; then echo /bin/bash; \
257 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \
258 $(if $(CONFIG_TOOLS_DEBUG),-g)
259 HOSTCXXFLAGS = -O2
262 # standard to GNU11 (see https://gcc.gnu.org/gcc-5/porting_to.html).
266 CSTD_FLAG := -std=gnu11
272 HOSTCFLAGS += -ansi
277 # and use GNU C's cpp. To do this we pass the -traditional-cpp
278 # option to the compiler. Note that the -traditional-cpp flag
284 # -multiply_defined suppress option to turn off this error.
288 DARWIN_MAJOR_VERSION = $(shell sw_vers -productVersion | cut -f 1 -d '.')
289 DARWIN_MINOR_VERSION = $(shell sw_vers -productVersion | cut -f 2 -d '.')
291 os_x_before = $(shell if [ $(DARWIN_MAJOR_VERSION) -le $(1) -a \
292 $(DARWIN_MINOR_VERSION) -le $(2) ] ; then echo "$(3)"; else echo "$(4)"; fi ;)
294 os_x_after = $(shell if [ $(DARWIN_MAJOR_VERSION) -ge $(1) -a \
295 $(DARWIN_MINOR_VERSION) -ge $(2) ] ; then echo "$(3)"; else echo "$(4)"; fi ;)
299 HOSTCFLAGS += $(call os_x_before, 10, 4, "-traditional-cpp")
300 HOSTLDFLAGS += $(call os_x_before, 10, 5, "-multiply_defined suppress")
305 HOSTLDFLAGS += $(call os_x_before, 10, 7, "", "-Xlinker -no_pie")
309 HOSTLDFLAGS += $(call os_x_after, 10, 14, "-lpython -dynamclib", "")
312 # Decide whether to build built-in, modular, or both.
313 # Normally, just do built-in.
318 # If we have only "make modules", don't compile built-in objects.
320 # the built-in objects during the descend as well, in order to
331 # U-Boot does not need modules
351 ifneq ($(shell $(CROSS_COMPILE)ld.bfd -v 2> /dev/null),)
357 CPP = $(CC) -E
374 CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
375 -Wbitwise -Wno-return-void -D__CHECK_ENDIAN__ $(CF)
377 KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__
379 KBUILD_CFLAGS := -Wall -Wstrict-prototypes \
380 -Wno-format-security \
381 -fno-builtin -ffreestanding $(CSTD_FLAG)
382 KBUILD_CFLAGS += -fshort-wchar -fno-strict-aliasing
383 KBUILD_AFLAGS := -D__ASSEMBLY__
386 KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
387 KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
403 # When compiling out-of-tree modules, put MODVERDIR in the module
405 # even be read-only.
410 export RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o \
411 -name CVS -o -name .pc -o -name .hg -o -name .git \) \
412 -prune -o
413 export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn \
414 --exclude CVS --exclude .pc --exclude .hg --exclude .git
423 $(Q)rm -f .tmp_quiet_recordmcount
434 $(Q)ln -fsn $(srctree) source
451 no-dot-config-targets := clean clobber mrproper distclean \
455 config-targets := 0
456 mixed-targets := 0
457 dot-config := 1
459 ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),)
460 ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),)
461 dot-config := 0
467 config-targets := 1
469 mixed-targets := 1
474 ifeq ($(mixed-targets),1)
481 $(filter-out __build_one_by_one, $(MAKECMDGOALS)): __build_one_by_one
485 $(Q)set -e; \
487 $(MAKE) -f $(srctree)/Makefile $$i; \
491 ifeq ($(config-targets),1)
493 # *config targets only - make sure prerequisites are updated, and descend
507 # Build targets only - this includes vmlinux, arch specific targets, clean
517 ifeq ($(dot-config),1)
519 -include include/config/auto.conf
523 -include include/config/auto.conf.cmd
533 $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig
535 @# deleted so "make silentoldconfig" will be re-run on the next build.
536 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.autoconf || \
537 { rm -f include/config/auto.conf; false; }
544 u-boot.cfg spl/u-boot.cfg tpl/u-boot.cfg:
545 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.autoconf $(@)
547 -include include/autoconf.mk
548 -include include/autoconf.mk.dep
551 # is up-to-date. When we switch to a different board configuration, old CONFIG
556 autoconf_is_old := $(shell find . -path ./$(KCONFIG_CONFIG) -newer \
565 # These are set by the arch-specific config.mk. Make sure they are exported
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
602 endif # $(dot-config)
605 # Xtensa linker script cannot be preprocessed with -ansi because of
609 LDPPFLAGS += -ansi
613 KBUILD_CFLAGS += -Os
615 KBUILD_CFLAGS += -O2
618 KBUILD_CFLAGS += $(call cc-option,-fno-stack-protector)
619 KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
622 KBUILD_CFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
624 KBUILD_CFLAGS += -g
625 # $(KBUILD_AFLAGS) sets -g, which causes gcc to pass a suitable -g<format>
627 KBUILD_AFLAGS += -g
633 ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-stack-usage.sh $(CC)),y)
634 KBUILD_CFLAGS += -fstack-usage
638 KBUILD_CFLAGS += $(call cc-option,-Wno-format-nonliteral)
639 KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
641 ifeq ($(cc-name),clang)
642 KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,)
643 KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
644 KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
645 KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
650 ifeq ($(findstring 3.4,$(shell $(CC) --version)),3.4)
651 KBUILD_AFLAGS += -Wa,-gstabs,-S
655 # Prohibit date/time macros, which would make the build non-deterministic
656 KBUILD_CFLAGS += $(call cc-option,-Werror=date-time)
668 -Iinclude \
669 $(if $(KBUILD_SRC), -I$(srctree)/include) \
672 -I$(srctree)/arch/$(ARCH)/thumb1/include),) \
673 -I$(srctree)/arch/$(ARCH)/include \
674 -include $(srctree)/include/linux/kconfig.h
676 NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
685 # U-Boot objects....order is important (i.e. start must be first)
689 libs-y += lib/
690 libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/
691 libs-$(CONFIG_OF_EMBED) += dts/
692 libs-y += fs/
693 libs-y += net/
694 libs-y += disk/
695 libs-y += drivers/
696 libs-y += drivers/dma/
697 libs-y += drivers/gpio/
698 libs-y += drivers/i2c/
699 libs-y += drivers/mtd/
700 libs-$(CONFIG_CMD_NAND) += drivers/mtd/nand/raw/
701 libs-y += drivers/mtd/onenand/
702 libs-$(CONFIG_CMD_UBI) += drivers/mtd/ubi/
703 libs-y += drivers/mtd/spi/
704 libs-y += drivers/net/
705 libs-y += drivers/net/phy/
706 libs-y += drivers/power/ \
713 libs-y += drivers/spi/
714 libs-$(CONFIG_FMAN_ENET) += drivers/net/fm/
715 libs-$(CONFIG_SYS_FSL_DDR) += drivers/ddr/fsl/
716 libs-$(CONFIG_SYS_FSL_MMDC) += drivers/ddr/fsl/
717 libs-$(CONFIG_ALTERA_SDRAM) += drivers/ddr/altera/
718 libs-y += drivers/serial/
719 libs-y += drivers/usb/dwc3/
720 libs-y += drivers/usb/common/
721 libs-y += drivers/usb/emul/
722 libs-y += drivers/usb/eth/
723 libs-$(CONFIG_USB_GADGET) += drivers/usb/gadget/
724 libs-$(CONFIG_USB_GADGET) += drivers/usb/gadget/udc/
725 libs-y += drivers/usb/host/
726 libs-y += drivers/usb/musb/
727 libs-y += drivers/usb/musb-new/
728 libs-y += drivers/usb/phy/
729 libs-y += drivers/usb/ulpi/
730 libs-y += cmd/
731 libs-y += common/
732 libs-y += env/
733 libs-$(CONFIG_API) += api/
734 libs-$(CONFIG_HAS_POST) += post/
735 libs-$(CONFIG_UNIT_TEST) += test/ test/dm/
736 libs-$(CONFIG_UT_ENV) += test/env/
737 libs-$(CONFIG_UT_OVERLAY) += test/overlay/
739 libs-y += $(if $(BOARDDIR),board/$(BOARDDIR)/)
741 libs-y := $(sort $(libs-y))
743 u-boot-dirs := $(patsubst %/,%,$(filter %/, $(libs-y))) tools examples
745 u-boot-alldirs := $(sort $(u-boot-dirs) $(patsubst %/,%,$(filter %/, $(libs-))))
747 libs-y := $(patsubst %/, %/built-in.o, $(libs-y))
749 u-boot-init := $(head-y)
750 u-boot-main := $(libs-y)
757 PLATFORM_LIBGCC := -L $(shell dirname `$(CC) $(c_flags) -print-libgcc-file-name`) -lgcc
762 KBUILD_CFLAGS += --coverage
763 PLATFORM_LIBGCC += -lgcov
773 -include $(srctree)/include/u-boot/u-boot.lds.h \
774 -DCPUDIR=$(CPUDIR) \
775 $(shell $(LD) --version | \
776 sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
783 @actual=`wc -c $@ | awk '{print $$1}'`; \
785 if test $$actual -gt $$limit; then \
789 echo " excess: $$((actual - limit)) bytes" >&2; \
796 # Statically apply RELA-style relocations (currently arm64 only)
801 # $(1) is u-boot ELF, $(2) is u-boot bin, $(3) is text base
803 start=$$($(NM) $(1) | grep __rel_dyn_start | cut -f 1 -d ' '); \
804 end=$$($(NM) $(1) | grep __rel_dyn_end | cut -f 1 -d ' '); \
805 tools/relocate-rela $(2) $(3) $$start $$end
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
840 ALL-$(CONFIG_SPL) += $(CONFIG_SPL_TARGET:"%"=%)
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
865 ALL-y += $(CONFIG_BUILD_TARGET:"%"=%)
869 ALL-y += init_sp_bss_offset_check
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)
884 # Avoid 'missing .note.GNU-stack section implies executable stack'
885 LDFLAGS_u-boot += -z noexecstack
888 LDFLAGS_u-boot += -Ttext $(CONFIG_SYS_TEXT_BASE)
893 cmd_objcopy = $(OBJCOPY) --gap-fill=0xff $(OBJCOPYFLAGS) \
901 cmd_efipayload = $(OBJCOPY) -I binary -O $(EFIPAYLOAD_BFDTARGET) -B $(EFIPAYLOAD_BFDARCH) $< $@
906 cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
910 cmd_mkfitimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -f $(U_BOOT_ITS) -p $(CONFIG_FIT_EX…
914 cmd_cat = cat $(filter-out $(PHONY), $^) > $@
916 append = cat $(filter-out $< $(PHONY), $^) >> $@
919 cmd_pad_cat = $(cmd_objcopy) && $(append) || rm -f $@
921 cfg: u-boot.cfg
924 cmd_cfgcheck = $(srctree)/scripts/check-config.sh $2 \
927 all: $(ALL-y)
941 @echo >&2 "See doc/driver-model/MIGRATION.txt for more info."
951 @echo >&2 "See doc/driver-model/MIGRATION.txt for more info."
961 @echo >&2 "See doc/driver-model/MIGRATION.txt for more info."
971 @echo >&2 "See doc/driver-model/MIGRATION.txt for more info."
981 @echo >&2 "See doc/driver-model/MIGRATION.txt for more info."
990 @echo >&2 "See doc/README.fdt-control for more info."
1000 @echo >&2 "See doc/driver-model/MIGRATION.txt for more info."
1010 @echo >&2 "See doc/driver-model/MIGRATION.txt for more info."
1017 $(call cmd,cfgcheck,u-boot.cfg)
1022 dts/dt.dtb: u-boot
1030 fit-dtb.blob: dts/dt.dtb FORCE
1033 MKIMAGEFLAGS_fit-dtb.blob = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
1034 -a 0 -e 0 -E \
1035 $(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) -d /dev/null
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
1054 $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
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 \
1083 $(if $(CONFIG_X86_16BIT_INIT),-R .start16 -R .resetvec) \
1084 $(if $(CONFIG_MPC85XX_HAVE_RESET_VECTOR),-R .bootpg -R .resetvec)
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 | \
1094 … = $$1} END {if (start != "" && end != "") print "ibase=16; " toupper(end) " - " toupper(start)}' \
1098 if test $$map_size -ne $$file_size; then \
1099 echo "u-boot.map shows a binary size of $$map_size" >&2 ; \
1100 echo " but u-boot-nodtb.bin shows $$file_size" >&2 ; \
1107 subtract_sys_malloc_f_len = space=$$(($${space} - $(CONFIG_SYS_MALLOC_F_LEN)))
1117 # deliberately build-specific, to take account of build-to-build stack usage
1120 init_sp_bss_offset_check: u-boot.dtb FORCE
1121 @dtb_size=$(shell wc -c u-boot.dtb | awk '{print $$1}') ; \
1125 if [ $${dtb_size} -gt $${quarter_space} ]; then \
1126 echo "u-boot.dtb is larger than 1 quarter of " >&2 ; \
1127 echo "(CONFIG_SYS_INIT_SP_BSS_OFFSET - CONFIG_SYS_MALLOC_F_LEN)" >&2 ; \
1132 u-boot-nodtb.bin: u-boot FORCE
1137 u-boot.ldr: u-boot
1139 $(LDR) -T $(CONFIG_CPU) -c $@ $< $(LDR_FLAGS)
1143 # ---------------------------------------------------------------------------
1146 cmd_binman = $(srctree)/tools/binman/binman -u -d u-boot.dtb -O . -m \
1147 -I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \
1148 $(if $(BINMAN_DEBUG),-D) $(BINMAN_$(@F)) $<
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
1172 ifeq ($(CONFIG_SPL_FIT_GENERATOR),"arch/arm/mach-imx/mkimage_fit_atf.sh")
1173 U_BOOT_ITS_DEPS += u-boot-nodtb.bin
1175 ifeq ($(CONFIG_SPL_FIT_GENERATOR),"arch/arm/mach-rockchip/make_fit_atf.py")
1176 U_BOOT_ITS_DEPS += u-boot
1185 MKIMAGEFLAGS_u-boot.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
1186 -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
1187 -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \
1188 $(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST)))
1190 MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \
1191 -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
1192 -n "U-Boot $(UBOOTRELEASE) for $(BOARD) board"
1193 MKIMAGEFLAGS_u-boot-ivt.img = -A $(ARCH) -T firmware_ivt -C none -O u-boot \
1194 -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
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:"%"=%) \
1203 -T kwbimage -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE)
1205 MKIMAGEFLAGS_u-boot-spl.kwb = -n $(srctree)/$(CONFIG_SYS_KWD_CONFIG:"%"=%) \
1206 -T kwbimage -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) \
1207 $(if $(KEYDIR),-k $(KEYDIR))
1209 MKIMAGEFLAGS_u-boot.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \
1210 -R $(srctree)/$(CONFIG_SYS_FSL_PBL_PBI:"%"=%) -T pblimage
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
1234 $(OBJDUMP) -d $< > $@
1239 SPL_PAYLOAD := u-boot.bin
1242 OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \
1243 --pad-to=$(CONFIG_SPL_PAD_TO)
1244 u-boot-with-spl.bin: spl/u-boot-spl.bin $(SPL_PAYLOAD) FORCE
1248 MKIMAGEFLAGS_lpc32xx-spl.img = -T lpc32xximage -a $(CONFIG_SPL_TEXT_BASE)
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
1266 CLEAN_FILES += lpc32xx-*
1269 OBJCOPYFLAGS_u-boot-with-tpl.bin = -I binary -O binary \
1270 --pad-to=$(CONFIG_TPL_PAD_TO)
1271 tpl/u-boot-with-tpl.bin: tpl/u-boot-tpl.bin u-boot.bin FORCE
1274 SPL: spl/u-boot-spl.bin FORCE
1275 $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
1278 flash.bin: spl/u-boot-spl.bin u-boot.itb FORCE
1279 $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
1282 u-boot-with-spl.imx u-boot-with-nand-spl.imx: SPL u-boot.bin FORCE
1283 $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
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), \
1292 -T aisimage -e $(CONFIG_SPL_TEXT_BASE)
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 \
1312 -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) -n XLOADER
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) \
1317 --gap-fill=0xff
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
1342 # x86 uses a large ROM. We fill it with 0xff, put the 16-bit stuff (including
1343 # reset vector) at the top, Intel ME descriptor at the bottom, and U-Boot in
1347 rom: u-boot.rom FORCE
1354 $(filter-out FORCE,$^) -o $@
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
1379 %-dtb-tegra.bin %-tegra.bin %-nodtb-tegra.bin: \
1380 spl/%-spl %.bin FORCE
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
1407 quiet_cmd_u-boot_payload ?= LD $@
1408 cmd_u-boot_payload ?= $(LD) $(LDFLAGS_EFI_PAYLOAD) -o $@ \
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
1414 $(call if_changed,u-boot_payload)
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:"%"=%) \
1427 -R $(srctree)/$(CONFIG_SYS_FSL_PBL_PBI:"%"=%) -T pblimage \
1428 -A $(ARCH) -a $(CONFIG_SPL_TEXT_BASE)
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) \
1444 --gap-fill=0xff
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 \
1456 --pad-to=$(CONFIG_UBOOT_PAD_TO) --gap-fill=0xff
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 $@ \
1466 --defsym=$(PLATFORM_ELFENTRY)=$(CONFIG_SYS_TEXT_BASE) \
1467 -Ttext=$(CONFIG_SYS_TEXT_BASE)
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 \
1485 -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) \
1486 -n "$(patsubst "%",%,$(CONFIG_MTK_BROM_HEADER_INFO))"
1488 u-boot-mtk.bin: u-boot.bin FORCE
1494 # Rule to link u-boot
1496 quiet_cmd_u-boot__ ?= LD $@
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; \
1501 $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
1505 smap=`$(call SYSTEM_MAP,u-boot) | \
1507 $(CC) $(c_flags) -DSYSTEM_MAP="\"$${smap}\"" \
1508 -c $(srctree)/common/system_map.c -o common/system_map.o
1510 u-boot: $(u-boot-init) $(u-boot-main) u-boot.lds FORCE target
1511 +$(call if_changed,u-boot__)
1514 $(call cmd,u-boot__) common/system_map.o
1518 @tools/prelink-riscv $@ 0
1522 cmd_sym ?= $(OBJDUMP) -t $< > $@
1523 u-boot.sym: u-boot FORCE
1528 $(sort $(u-boot-init) $(u-boot-main)): $(u-boot-dirs) ;
1530 # Handle descending into subdirectories listed in $(vmlinux-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))
1558 # A multi level approach is used. prepareN is processed before prepareN-1.
1570 @$(kecho) ' Using $(srctree) as source for U-Boot'
1571 $(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ]; then \
1603 # ---------------------------------------------------------------------------
1607 echo \#define U_BOOT_VERSION \"U-Boot \" PLAIN_VERSION; \
1608 echo \#define CC_VERSION_STRING \"$$(LC_ALL=C $(CC) --version | head -n 1)\"; \
1609 echo \#define LD_VERSION_STRING \"$$(LC_ALL=C $(LD) --version | head -n 1)\"; )
1614 # with the misused '-d' switch. Respect that and search a working date with
1615 # well known pre- and suffixes for the GNU variant of date.
1617 (if test -n "$${SOURCE_DATE_EPOCH}"; then \
1621 $${date} -u -d "$${SOURCE_DATE}" >/dev/null 2>&1 && DATE="$${date}"; \
1623 if test -n "$${DATE}"; then \
1624 LC_ALL=C $${DATE} -u -d "$${SOURCE_DATE}" +'#define U_BOOT_DATE "%b %d %C%y"'; \
1625 LC_ALL=C $${DATE} -u -d "$${SOURCE_DATE}" +'#define U_BOOT_TIME "%T"'; \
1626 LC_ALL=C $${DATE} -u -d "$${SOURCE_DATE}" +'#define U_BOOT_TZ "%z"'; \
1627 LC_ALL=C $${DATE} -u -d "$${SOURCE_DATE}" +'#define U_BOOT_DMI_DATE "%m/%d/%Y"'; \
1628 LC_ALL=C $${DATE} -u -d "$${SOURCE_DATE}" +'#define U_BOOT_BUILD_DATE 0x%Y%m%d'; \
1642 (grep -v '^#' | \
1643 grep -v '^$$' | \
1645 sed -e 's/\\\x0/\n/' | \
1646 xxd -i ; echo ", 0x00" ; )
1658 # ---------------------------------------------------------------------------
1660 cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) \
1661 -D__ASSEMBLY__ -x assembler-with-cpp -std=c99 -P -o $@ $<
1663 u-boot.lds: $(LDSCRIPT) prepare FORCE
1666 spl/u-boot-spl.bin: spl/u-boot-spl
1668 spl/u-boot-spl: tools prepare \
1671 $(Q)$(MAKE) obj=spl -f $(srctree)/scripts/Makefile.spl all
1673 spl/sunxi-spl.bin: spl/u-boot-spl
1676 spl/sunxi-spl-with-ecc.bin: spl/sunxi-spl.bin
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 \
1687 $(Q)$(MAKE) obj=tpl -f $(srctree)/scripts/Makefile.spl all
1689 TAG_SUBDIRS := $(patsubst %,$(srctree)/%,$(u-boot-dirs) include)
1692 FINDFLAGS := -L
1695 ctags -w -o ctags `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \
1696 -name '*.[chS]' -print`
1697 ln -s ctags tags
1700 etags -a -o etags `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \
1701 -name '*.[chS]' -print`
1703 $(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) -name '*.[chS]' -print > \
1705 cscope -b -q -k
1709 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
1711 System.map: u-boot
1716 # ARM relocations should all be R_ARM_RELATIVE (32-bit) or
1717 # R_AARCH64_RELATIVE (64-bit).
1718 checkarmreloc: u-boot
1719 @RELOC="`$(CROSS_COMPILE)readelf -r -W $< | cut -d ' ' -f 4 | \
1720 grep R_A | sort -u`"; \
1721 if test "$$RELOC" != "R_ARM_RELATIVE" -a \
1730 tools-only: scripts_basic $(version_h) $(timestamp_h)
1733 tools-all: export HOST_TOOLS_ALL=y
1734 tools-all: envtools tools ;
1741 git log --no-merges U-Boot-1_1_5.. | \
1742 unexpand -a | sed -e 's/\s\s*$$//' > $@
1756 $(filter-out include, $(shell ls -1 $d 2>/dev/null))))
1759 boot* u-boot* MLO* SPL System.map fit-dtb.blob
1768 # clean - Delete most, but leave enough to build external modules
1770 clean: rm-dirs := $(CLEAN_DIRS)
1771 clean: rm-files := $(CLEAN_FILES)
1773 clean-dirs := $(foreach f,$(u-boot-alldirs),$(if $(wildcard $(srctree)/$f/Makefile),$f))
1775 clean-dirs := $(addprefix _clean_, $(clean-dirs))
1777 PHONY += $(clean-dirs) clean archclean
1778 $(clean-dirs):
1781 clean: $(clean-dirs)
1785 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
1786 -o -name '*.ko.*' -o -name '*.su' \
1787 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
1788 -o -name '*.lex.c' -o -name '*.tab.[ch]' \
1789 -o -name '*.symtypes' -o -name 'modules.order' \
1790 -o -name modules.builtin -o -name '.tmp_*.o.*' \
1791 -o -name 'dsdt.aml' -o -name 'dsdt.asl.tmp' -o -name 'dsdt.c' \
1792 -o -name '*.efi' -o -name '*.gcno' -o -name '*.so' \) \
1793 -type f -print | xargs rm -f
1795 # mrproper - Delete all generated files, including .config
1797 mrproper: rm-dirs := $(wildcard $(MRPROPER_DIRS))
1798 mrproper: rm-files := $(wildcard $(MRPROPER_FILES))
1799 mrproper-dirs := $(addprefix _mrproper_,scripts)
1801 PHONY += $(mrproper-dirs) mrproper archmrproper
1802 $(mrproper-dirs):
1805 mrproper: clean $(mrproper-dirs)
1808 @rm -f arch/*/include/asm/arch
1816 \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
1817 -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
1818 -o -name '.*.rej' -o -name '*%' -o -name 'core' \
1819 -o -name '*.pyc' \) \
1820 -type f -print | xargs rm -f
1821 @rm -f boards.cfg CHANGELOG
1825 gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1829 @echo ' clean - Remove most generated files but keep the config'
1830 @echo ' mrproper - Remove all generated files + config + various backup files'
1831 @echo ' distclean - mrproper + remove editor backup and patch files'
1834 @$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
1838 @echo ' check - Run all automated tests that use sandbox'
1839 @echo ' qcheck - Run quick automated tests that use sandbox'
1842 @echo ' all - Build all necessary images depending on configuration'
1843 @echo ' tests - Build U-Boot for sandbox and run tests'
1844 @echo '* u-boot - Build the bare u-boot'
1845 @echo ' dir/ - Build all files in dir and below'
1846 @echo ' dir/file.[oisS] - Build specified target only'
1847 @echo ' dir/file.lst - Build specified mixed source/assembly target only'
1849 @echo ' tags/ctags - Generate ctags file for editors'
1850 @echo ' etags - Generate etags file for editors'
1851 @echo ' cscope - Generate cscope index'
1852 @echo ' ubootrelease - Output the release version string (use with make -s)'
1853 @echo ' ubootversion - Output the version stored in Makefile (use with make -s)'
1854 @echo " cfg - Don't build, just create the .cfg files"
1855 @echo " envtools - Build only the target-side environment tools"
1858 @echo ' checkstack - Generate a list of stack hogs'
1859 @echo ' coccicheck - Execute static code analysis with Coccinelle'
1862 @$(MAKE) -f $(srctree)/Documentation/Makefile dochelp
1886 # ---------------------------------------------------------------------------
1893 endif #ifeq ($(config-targets),1)
1894 endif #ifeq ($(mixed-targets),1)
1899 $(OBJDUMP) -d u-boot $$(find . -name u-boot-spl) | \
1909 # ---------------------------------------------------------------------------
1911 # - build with mixed source and output
1912 # - build with separate output dir 'make O=...'
1913 # - external modules
1915 # target-dir => where to store outputfile
1916 # build-dir => directory in kernel source tree to use
1919 build-dir = $(patsubst %/,%,$(dir $@))
1920 target-dir = $(dir $@)
1922 zap-slash=$(filter-out .,$(patsubst %/,%,$(dir $@)))
1923 build-dir = $(KBUILD_EXTMOD)$(if $(zap-slash),/$(zap-slash))
1924 target-dir = $(if $(KBUILD_EXTMOD),$(dir $<),$(dir $@))
1928 $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1930 $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1932 $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1934 $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1936 $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1938 $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1940 $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1946 $(build)=$(build-dir)
1950 $(build)=$(build-dir)
1954 $(build)=$(build-dir) $(@:.ko=.o)
1955 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1958 # ---------------------------------------------------------------------------
1968 quiet_cmd_rmdirs = $(if $(wildcard $(rm-dirs)),CLEAN $(wildcard $(rm-dirs)))
1969 cmd_rmdirs = rm -rf $(rm-dirs)
1971 quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files)))
1972 cmd_rmfiles = rm -f $(rm-files)
1984 endif # skip-makefile