makefile

来自「是关于linux2.5.1的完全源码」· 代码 · 共 85 行

TXT
85
字号
## arch/ppc/boot/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) 1994 by Linus Torvalds# Adapted for PowerPC by Gary Thomas# modified by Cort (cort@cs.nmt.edu)#GZIP_FLAGS = -v9fCFLAGS	+= -fno-builtin -D__BOOTER__ -I$(TOPDIR)/arch/$(ARCH)/boot/includeAFLAGS	+= -D__BOOTER__OBJCOPY_ARGS = -O elf32-powerpcMKIMAGE				:= ./utils/mkimage.wrapperlib/zlib.a: lib/zlib.c	$(MAKE) -C libimages/vmlinux.gz: $(TOPDIR)/vmlinux	$(MAKE) -C images vmlinux.gz# Subdirs and tools needed for each.  Assume we always need to go into# 'simple' unless told otherwise.subdir-y			:= lib common simplesubdir-$(CONFIG_ALL_PPC)	:= chrp pmac preptools-$(CONFIG_ALL_PPC)		:= addnote mknote hack-coff mkpreptools-$(CONFIG_PPLUS)		:= mkbugboot mkpreptools-$(CONFIG_4xx)		:= mktreetools-$(CONFIG_LOPEC)		:= mkbugboot mkpreptools-$(CONFIG_MCPN765)		:= mkbugboot mkpreptools-$(CONFIG_MENF1)		:= mkpreptools-$(CONFIG_MVME5100)	:= mkbugboot mkpreptools-$(CONFIG_PRPMC750)	:= mkbugboot mkpreptools-$(CONFIG_PRPMC800)	:= mkbugboot mkpreptools-$(CONFIG_SPRUCE)		:= mktree# These are dirs we don't want to go into on BOOT_TARGETS.  We have them for# the 'depend' stage.NONBOOT				:= lib common# These are the subdirs we want to useBOOTDIRS			= $(filter-out $(NONBOOT), $(subdir-y))# This will make the tools we need.  We do it like this to ensure that we use# HOSTCC. -- Tommaketools:	$(MAKE) -C utils $(tools-y)# The targets all boards support for boot images.BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd$(BOOT_TARGETS): vmapus lib/zlib.a images/vmlinux.gz maketoolsifneq ($(BOOTDIRS),)	for d in $(BOOTDIRS); do $(MAKE) -C $$d $@; doneendifvmapus: $(TOPDIR)/vmlinuxifdef CONFIG_APUS	$(STRIP) $(TOPDIR)/vmlinux -o images/vmapus	gzip $(GZIP_FLAGS) images/vmapusendif# Make an image for PPCBootpImage: images/vmlinux.gz	$(MKIMAGE) -A ppc -O linux -T kernel -C gzip -a 00000000 -e 00000000 \	-n 'Linux-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)' \	-d $< images/vmlinux.PPCBoot	ln -sf vmlinux.PPCBoot images/pImagevmlinux.sm: $(TOPDIR)/vmlinux utils/addSystemMap	./utils/addSystemMap $(TOPDIR)/System.map $(TOPDIR)/vmlinux images/vmlinux.sm# These are subdirs with files not normally rm'ed. -- Tomclean:	$(MAKE) -C images clean	$(MAKE) -C utils cleaninclude $(TOPDIR)/Rules.make

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?