makefile
来自「linux 内核源代码」· 代码 · 共 130 行
TXT
130 行
## arch/blackfin/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.#CROSS_COMPILE ?= bfin-uclinux-LDFLAGS_vmlinux := -XOBJCOPYFLAGS := -O binary -R .note -R .comment -SGZFLAGS := -9KBUILD_CFLAGS += $(call cc-option,-mno-fdpic)KBUILD_AFLAGS += $(call cc-option,-mno-fdpic)CFLAGS_MODULE += -mlong-callsKALLSYMS += --symbol-prefix=_KBUILD_DEFCONFIG := BF537-STAMP_defconfig# setup the machine name and the machine dependent settingsmachine-$(CONFIG_BF522) := bf527machine-$(CONFIG_BF525) := bf527machine-$(CONFIG_BF527) := bf527machine-$(CONFIG_BF531) := bf533machine-$(CONFIG_BF532) := bf533machine-$(CONFIG_BF533) := bf533machine-$(CONFIG_BF534) := bf537machine-$(CONFIG_BF536) := bf537machine-$(CONFIG_BF537) := bf537machine-$(CONFIG_BF542) := bf548machine-$(CONFIG_BF544) := bf548machine-$(CONFIG_BF547) := bf548machine-$(CONFIG_BF548) := bf548machine-$(CONFIG_BF549) := bf548machine-$(CONFIG_BF561) := bf561MACHINE := $(machine-y)export MACHINEcpu-$(CONFIG_BF522) := bf522cpu-$(CONFIG_BF525) := bf525cpu-$(CONFIG_BF527) := bf527cpu-$(CONFIG_BF531) := bf531cpu-$(CONFIG_BF532) := bf532cpu-$(CONFIG_BF533) := bf533cpu-$(CONFIG_BF534) := bf534cpu-$(CONFIG_BF536) := bf536cpu-$(CONFIG_BF537) := bf537cpu-$(CONFIG_BF542) := bf542cpu-$(CONFIG_BF544) := bf544cpu-$(CONFIG_BF547) := bf547cpu-$(CONFIG_BF548) := bf548cpu-$(CONFIG_BF549) := bf549cpu-$(CONFIG_BF561) := bf561rev-$(CONFIG_BF_REV_0_0) := 0.0rev-$(CONFIG_BF_REV_0_1) := 0.1rev-$(CONFIG_BF_REV_0_2) := 0.2rev-$(CONFIG_BF_REV_0_3) := 0.3rev-$(CONFIG_BF_REV_0_4) := 0.4rev-$(CONFIG_BF_REV_0_5) := 0.5rev-$(CONFIG_BF_REV_NONE) := nonerev-$(CONFIG_BF_REV_ANY) := anyKBUILD_CFLAGS += -mcpu=$(cpu-y)-$(rev-y)KBUILD_AFLAGS += -mcpu=$(cpu-y)-$(rev-y)head-y := arch/$(ARCH)/mach-$(MACHINE)/head.o arch/$(ARCH)/kernel/init_task.ocore-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/ arch/$(ARCH)/mach-common/# If we have a machine-specific directory, then include it in the build.ifneq ($(machine-y),)core-y += arch/$(ARCH)/mach-$(MACHINE)/core-y += arch/$(ARCH)/mach-$(MACHINE)/boards/endiflibs-y += arch/$(ARCH)/lib/drivers-$(CONFIG_OPROFILE) += arch/$(ARCH)/oprofile/# Update machine arch symlinks if something which affects# them changed. We use .mach to indicate when they were updated# last, otherwise make uses the target directory mtime.include/asm-blackfin/.mach: $(wildcard include/config/arch/*.h) include/config/auto.conf @echo ' SYMLINK include/asm-$(ARCH)/mach-$(MACHINE) -> include/asm-$(ARCH)/mach'ifneq ($(KBUILD_SRC),) $(Q)mkdir -p include/asm-$(ARCH) $(Q)ln -fsn $(srctree)/include/asm-$(ARCH)/mach-$(MACHINE) include/asm-$(ARCH)/machelse $(Q)ln -fsn mach-$(MACHINE) include/asm-$(ARCH)/machendif @touch $@CLEAN_FILES += \ include/asm-$(ARCH)/asm-offsets.h \ arch/$(ARCH)/kernel/asm-offsets.s \ include/asm-$(ARCH)/mach \ include/asm-$(ARCH)/.macharchprepare: include/asm-blackfin/.macharchclean: $(Q)$(MAKE) $(clean)=$(boot)boot := arch/$(ARCH)/bootBOOT_TARGETS = vmImagePHONY += $(BOOT_TARGETS) installKBUILD_IMAGE := $(boot)/vmImageall: vmImage$(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@install: $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) installdefine archhelp echo '* vmImage - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage)' echo ' install - Install kernel using' echo ' (your) ~/bin/$(CROSS_COMPILE)installkernel or' echo ' (distribution) PATH: $(CROSS_COMPILE)installkernel or' echo ' install to $$(INSTALL_PATH)'endef
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?