makefile
来自「Linux Kernel 2.6.9 for OMAP1710」· 代码 · 共 89 行
TXT
89 行
# This file is included by the global makefile so that you can add your own# architecture-specific flags and dependencies. Remember to do have actions# for "archclean" and "archdep" for cleaning up and making dependencies for# this architecture## 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) 1994 by Linus Torvalds# Changes for PPC by Gary Thomas# Rewritten by Cort Dougan and Paul Mackerras# Adjusted for PPC64 by Tom Gall#KERNELLOAD := 0xc000000000000000HAS_BIARCH := $(call cc-option-yn, -m64)ifeq ($(HAS_BIARCH),y)AS := $(AS) -a64LD := $(LD) -m elf64ppcCC := $(CC) -m64endifnew_nm := $(shell if $(NM) --help 2>&1 | grep -- '--synthetic' > /dev/null; then echo y; else echo n; fi)ifeq ($(new_nm),y)NM := $(NM) --syntheticendifCHECKFLAGS += -m64 -D__powerpc__LDFLAGS := -m elf64ppcLDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD)CFLAGS += -msoft-float -pipe -mminimal-toc -mtraceback=noneifeq ($(CONFIG_POWER4_ONLY),y) CFLAGS += $(call cc-option,-mcpu=power4)else CFLAGS += $(call cc-option,-mtune=power4)endif# Enable unit-at-a-time mode when possible. It shrinks the# kernel considerably.CFLAGS += $(call cc-option,-funit-at-a-time)head-y := arch/ppc64/kernel/head.olibs-y += arch/ppc64/lib/core-y += arch/ppc64/kernel/core-y += arch/ppc64/mm/core-$(CONFIG_XMON) += arch/ppc64/xmon/drivers-$(CONFIG_OPROFILE) += arch/ppc64/oprofile/boot := arch/ppc64/bootboottarget-$(CONFIG_PPC_PSERIES) := zImage zImage.initrdboottarget-$(CONFIG_PPC_ISERIES) := vmlinux.sminitrd vmlinux.initrd vmlinux.sm$(boottarget-y): vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@bootimage-$(CONFIG_PPC_PSERIES) := zImagebootimage-$(CONFIG_PPC_ISERIES) := vmlinuxBOOTIMAGE := $(bootimage-y)install: vmlinux $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) $@all: $(BOOTIMAGE)archclean: $(Q)$(MAKE) $(clean)=$(boot)prepare: include/asm-ppc64/offsets.harch/ppc64/kernel/asm-offsets.s: include/asm include/linux/version.h \ include/config/MARKERinclude/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.s $(call filechk,gen-asm-offsets)define archhelp echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' echo ' zImage.initrd- Compressed kernel image with initrd attached,' echo ' sourced from arch/$(ARCH)/boot/ramdisk.image.gz' echo ' (arch/$(ARCH)/boot/zImage.initrd)'endefCLEAN_FILES += include/asm-ppc64/offsets.h
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?