📄 makefile
字号:
## This file is subject to the terms and conditions of the GNU General Public# License. See the file "COPYING" in the main directory of this archive# for more details.## Copyright (C) 2004-2006 Atmel Corporation.# Default target when executing plain make.PHONY: allall: uImage vmlinux.elfKBUILD_DEFCONFIG := atstk1002_defconfigKBUILD_CFLAGS += -pipe -fno-builtin -mno-picKBUILD_AFLAGS += -mrelax -mno-picCFLAGS_MODULE += -mno-relaxLDFLAGS_vmlinux += --relaxcpuflags-$(CONFIG_CPU_AT32AP7000) += -mcpu=ap7000KBUILD_CFLAGS += $(cpuflags-y)KBUILD_AFLAGS += $(cpuflags-y)CHECKFLAGS += -D__avr32__ -D__BIG_ENDIANhead-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/head.ohead-y += arch/avr32/kernel/head.ocore-$(CONFIG_PLATFORM_AT32AP) += arch/avr32/mach-at32ap/core-$(CONFIG_BOARD_ATSTK1000) += arch/avr32/boards/atstk1000/core-$(CONFIG_BOARD_ATNGW100) += arch/avr32/boards/atngw100/core-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/core-y += arch/avr32/kernel/core-y += arch/avr32/mm/libs-y += arch/avr32/lib/archincdir-$(CONFIG_PLATFORM_AT32AP) := arch-at32apinclude/asm-avr32/.arch: $(wildcard include/config/platform/*.h) include/config/auto.conf @echo ' SYMLINK include/asm-avr32/arch -> include/asm-avr32/$(archincdir-y)'ifneq ($(KBUILD_SRC),) $(Q)mkdir -p include/asm-avr32 $(Q)ln -fsn $(srctree)/include/asm-avr32/$(archincdir-y) include/asm-avr32/archelse $(Q)ln -fsn $(archincdir-y) include/asm-avr32/archendif @touch $@archprepare: include/asm-avr32/.archCLEAN_FILES += include/asm-avr32/.arch include/asm-avr32/archBOOT_TARGETS := vmlinux.elf vmlinux.bin uImage uImage.srec.PHONY: $(BOOT_TARGETS) installboot := arch/$(ARCH)/boot/images KBUILD_IMAGE := $(boot)/uImagevmlinux.elf: KBUILD_IMAGE := $(boot)/vmlinux.elfvmlinux.cso: KBUILD_IMAGE := $(boot)/vmlinux.csouImage.srec: KBUILD_IMAGE := $(boot)/uImage.srecuImage: KBUILD_IMAGE := $(boot)/uImagequiet_cmd_listing = LST $@ cmd_listing = avr32-linux-objdump $(OBJDUMPFLAGS) -lS $< > $@quiet_cmd_disasm = DIS $@ cmd_disasm = avr32-linux-objdump $(OBJDUMPFLAGS) -d $< > $@vmlinux.elf vmlinux.bin uImage.srec uImage vmlinux.cso: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@install: vmlinux $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@vmlinux.s: vmlinux $(call if_changed,disasm)vmlinux.lst: vmlinux $(call if_changed,listing)CLEAN_FILES += vmlinux.s vmlinux.lstarchclean: $(Q)$(MAKE) $(clean)=$(boot)define archhelp @echo '* vmlinux.elf - ELF image with load address 0' @echo ' vmlinux.cso - PathFinder CSO image' @echo '* uImage - Create a bootable image for U-Boot'endef
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -