?? makefile
字號:
## 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_4xx) := mktreetools-$(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/pImage# 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =