⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 内核linux2.4.20,可跟rtlinux3.2打补丁 组成实时linux系统,编译内核
💻
字号:
## 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-powerpcifeq ($(CONFIG_SMP),y)TFTPSIMAGE=/tftpboot/sImage.smpelseTFTPSIMAGE=/tftpboot/sImageendiflib/zlib.a:	$(MAKE) -C libimages/vmlinux.gz: $(TOPDIR)/vmlinux	$(MAKE) -C images vmlinux.gz# Subdirs and tools needed for each.subdir-y			:= lib images commonsubdir-$(CONFIG_ALL_PPC)	+= chrp pmac preptools-$(CONFIG_ALL_PPC)		:= addnote piggyback mknote hack-coff mkprepsubdir-$(CONFIG_4xx)		+= treesubdir-$(CONFIG_8xx)		+= mbxsubdir-$(CONFIG_8260)		+= mbxtools-$(CONFIG_GEMINI)		:= mksimage# These are dirs we don't want to go into on BOOT_TARGETSNONBOOT				:= lib images 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 = zImageifndef CONFIG_GEMINIBOOT_TARGETS += zImage.initrd znetboot znetboot.initrdendif$(BOOT_TARGETS): sImage vmapus lib/zlib.a images/vmlinux.gz maketoolsifneq ($(BOOTDIRS),)	for d in $(BOOTDIRS); do $(MAKE) -C $$d $@; doneendifsImage: $(TOPDIR)/vmlinuxifdef CONFIG_GEMINI	$(OBJCOPY) -I elf32-powerpc -O binary $(TOPDIR)/vmlinux images/sImageendifvmapus: $(TOPDIR)/vmlinuxifdef CONFIG_APUS	$(STRIP) $(TOPDIR)/vmlinux -o images/vmapus	gzip $(GZIP_FLAGS) images/vmapusendififdef CONFIG_GEMINIznetboot : zImage	cp images/sImage $(TFTPSIMAGE)endif# Clean up after ourselves.  We have to do it like this since only some dirs# need to be gone into. -- Tomclean:	$(MAKE) -C images clean	$(MAKE) -C tree clean	$(MAKE) -C utils cleaninclude $(TOPDIR)/Rules.make

⌨️ 快捷键说明

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