makefile

来自「Linux Kernel 2.6.9 for OMAP1710」· 代码 · 共 104 行

TXT
104
字号
## parisc/Makefile## 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# Portions Copyright (C) 1999 The Puffin Group## Modified for PA-RISC Linux by Paul Lahaie, Alex deVries, # Mike Shaver, Helge Deller and Martin K. Petersen#NM		= sh $(srctree)/arch/parisc/nmifdef CONFIG_PARISC64CROSS_COMPILE	:= hppa64-linux-UTS_MACHINE	:= parisc64elseMACHINE := $(subst 64,,$(shell uname -m))ifneq ($(MACHINE),parisc)CROSS_COMPILE	:= hppa-linux-endifendifFINAL_LD=$(CROSS_COMPILE)ld --warn-common --warn-section-align OBJCOPY_FLAGS =-O binary -R .note -R .comment -Scflags-y	:= -pipe# These flags should be implied by an hppa-linux configuration, but they# are not in gcc 3.2.cflags-y	+= -mno-space-regs -mfast-indirect-calls# No fixed-point multiplycflags-y	+= -mdisable-fpregs# Without this, "ld -r" results in .text sections that are too big# (> 0x40000) for branches to reach stubs.cflags-y	+= -ffunction-sections# select which processor to optimise forcflags-$(CONFIG_PA7100)		+= -march=1.1 -mschedule=7100cflags-$(CONFIG_PA7200)		+= -march=1.1 -mschedule=7200cflags-$(CONFIG_PA7100LC)	+= -march=1.1 -mschedule=7100LCcflags-$(CONFIG_PA7300LC)	+= -march=1.1 -mschedule=7300cflags-$(CONFIG_PA8X00)		+= -march=2.0 -mschedule=8000head-y			:= arch/parisc/kernel/head.o head-$(CONFIG_PARISC64)	:= arch/parisc/kernel/head64.oCFLAGS	+= $(cflags-y)kernel-y			:= mm/ kernel/ math-emu/ kernel/init_task.okernel-$(CONFIG_HPUX)		+= hpux/core-y	+= $(addprefix arch/parisc/, $(kernel-y))libs-y	+= arch/parisc/lib/ `$(CC) -print-libgcc-file-name`drivers-$(CONFIG_OPROFILE)		+= arch/parisc/oprofile/palo: vmlinux	@if [ $$(palo -f /dev/null >/dev/null 2>&1 ; echo $$?) != 2 ]; then \		echo 'ERROR: Please install palo first (apt-get install palo)';\		echo 'or build it from source and install it somewhere in your $$PATH';\		false; \	fi	@if [ ! -f ./palo.conf ]; then \		cp arch/parisc/defpalo.conf palo.conf; \		echo 'A generic palo config file (./palo.conf) has been created for you.'; \		echo 'You should check it and re-run "make palo".'; \		echo 'WARNING: the "lifimage" file is now placed in this directory by default!'; \		false; \	fi	palo -f ./palo.confoldpalo: vmlinux	export TOPDIR=`pwd`; \	unset STRIP LDFLAGS CPP CPPFLAGS AFLAGS CFLAGS CC LD; cd ../palo && make lifimage# Shorthands for known targets not supported by parisc, use palo as defaultImage zImage bzImage: paloprepare: include/asm-parisc/offsets.harch/parisc/kernel/asm-offsets.s: include/asm include/linux/version.h \				   include/config/MARKERinclude/asm-parisc/offsets.h: arch/parisc/kernel/asm-offsets.s	$(call filechk,gen-asm-offsets)CLEAN_FILES	+= lifimage include/asm-parisc/offsets.hMRPROPER_FILES	+= palo.confdefine archhelp	@echo  '* vmlinux	- Uncompressed kernel image (./vmlinux)'	@echo  '  palo		- Bootable image (./lifimage)'endef

⌨️ 快捷键说明

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