makefile
来自「Linux Kernel 2.6.9 for OMAP1710」· 代码 · 共 121 行
TXT
121 行
## arch/arm26/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) 1995-2001 by Russell KingLDFLAGS_vmlinux :=-p -XLDFLAGS_BLOB :=--format binaryAFLAGS_vmlinux.lds.o = -DTEXTADDR=$(TEXTADDR) -DDATAADDR=$(DATAADDR)OBJCOPYFLAGS :=-O binary -R .note -R .comment -SGZFLAGS :=-9ifeq ($(CONFIG_FRAME_POINTER),y)CFLAGS +=-fno-omit-frame-pointer -mno-sched-prologendififeq ($(CONFIG_DEBUG_INFO),y)CFLAGS +=-gendif# Force -mno-fpu to be passed to the assembler. Some versions of gcc don't# do this with -msoft-floatCFLAGS_BOOT :=-mapcs-26 -mcpu=arm3 -malignment-traps -msoft-float -Wa,-mno-fpu -UarmCFLAGS +=-mapcs-26 -mcpu=arm3 -malignment-traps -msoft-float -Wa,-mno-fpu -UarmAFLAGS +=-mapcs-26 -mcpu=arm3 -mno-fpu -msoft-float -Wa,-mno-fpuhead-y := arch/arm26/machine/head.o arch/arm26/kernel/init_task.oLDFLAGS_BLOB += --oformat elf32-littlearmifeq ($(CONFIG_XIP_KERNEL),y) TEXTADDR := 0x03880000 DATAADDR := 0x02080000else TEXTADDR := 0x02080000 DATAADDR := .endififeq ($(incdir-y),)incdir-y :=endifINCDIR := export MACHINE TEXTADDR GZFLAGS CFLAGS_BOOT# If we have a machine-specific directory, then include it in the build.core-y += arch/arm26/kernel/ arch/arm26/mm/ arch/arm26/machine/core-$(CONFIG_FPE_NWFPE) += arch/arm26/nwfpe/libs-y += arch/arm26/lib/# Default target when executing plain makeall: zImageboot := arch/arm26/bootprepare: include/asm-$(ARCH)/asm_offsets.hCLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h.PHONY: maketools FORCEmaketools: FORCE # Convert bzImage to zImagebzImage: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImagezImage Image bootpImage xipImage: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@zinstall install: vmlinux $(Q)$(MAKE) $(build)=$(boot) $@# We use MRPROPER_FILES and CLEAN_FILES nowarchclean: $(Q)$(MAKE) $(clean)=$(boot)# My testing targets (that short circuit a few dependencies)zImg:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImageImg:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/Imagebp:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/bootpImagei:; $(Q)$(MAKE) $(build)=$(boot) installzi:; $(Q)$(MAKE) $(build)=$(boot) zinstall## Configuration targets. Use these to select a# configuration for your architecture%_config: @( \ CFG=$(@:_config=); \ if [ -f arch/arm26/def-configs/$$CFG ]; then \ [ -f .config ] && mv -f .config .config.old; \ cp arch/arm26/def-configs/$$CFG .config; \ echo "*** Default configuration for $$CFG installed"; \ echo "*** Next, you may run 'make oldconfig'"; \ else \ echo "$$CFG does not exist"; \ fi; \ )arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ include/config/MARKERinclude/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s $(call filechk,gen-asm-offsets)define archhelp echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' echo ' bootpImage - Combined zImage and initial RAM disk' echo ' initrd - Create an initial image' echo ' install - Install uncompressed kernel' echo ' zinstall - Install compressed kernel' echo ' Install using (your) ~/bin/installkernel or' echo ' (distribution) /sbin/installkernel or' echo ' install to $$(INSTALL_PATH) and run lilo'endef
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?