URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [parisc/] [Makefile] - Rev 1765
Compare with Previous | Blame | View Log
## 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#ifdef CONFIG_PARISC64LINKFLAGS =-T $(TOPDIR)/arch/parisc/vmlinux64.lds $(LDFLAGS)CROSS_COMPILE := hppa64-linux-UTS_MACHINE := parisc64#CFLAGS += -b hppa64-linuxelseLINKFLAGS =-T $(TOPDIR)/arch/parisc/vmlinux.lds $(LDFLAGS)MACHINE := $(subst 64,,$(shell uname -m))ifneq (${MACHINE},parisc)# cross compilationCROSS_COMPILE := hppa-linux-endifendifOFFSET_H := $(TOPDIR)/include/asm-parisc/offset.hFINAL_LD=$(CROSS_COMPILE)ld --warn-common --warn-section-alignCPP=$(CC) -EOBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -SLDFLAGS =CFLAGS_PIPE := -pipeCFLAGS_NSR := -fno-strength-reduceCFLAGS := $(CFLAGS) -D__linux__ $(CFLAGS_PIPE) $(CFLAGS_NSR)# These should be on for older toolchains or SOM toolchains that don't# enable them by default.CFLAGS += -mno-space-regs -mfast-indirect-calls# No fixed-point multiplyCFLAGS += -mdisable-fpregs# Without this, "ld -r" results in .text sections that are too big# (> 0x40000) for branches to reach stubs.CFLAGS += -ffunction-sections# select which processor to optimise forifdef CONFIG_PA7100CFLAGS += -march=1.1 -mschedule=7100endififdef CONFIG_PA7200CFLAGS += -march=1.1 -mschedule=7200endififdef CONFIG_PA7100LCCFLAGS += -march=1.1 -mschedule=7100LCendififdef CONFIG_PA8X00CFLAGS += -march=2.0 -mschedule=8000endifASFLAGS := -D__ASSEMBLY__ -traditionalHEAD := arch/parisc/kernel/head.oSUBDIRS := $(SUBDIRS) $(addprefix arch/parisc/, tools kernel mm lib hpux)CORE_FILES := $(addprefix arch/parisc/, kernel/pdc_cons.o kernel/process.o \lib/lib.a mm/mm.o kernel/kernel.o hpux/hpux.o) \$(CORE_FILES) arch/parisc/kernel/init_task.oCLEAN_FILES := $(CLEAN_FILES) arch/parisc/tools/offset.[hs]ifdef CONFIG_PARISC64HEAD := arch/parisc/kernel/head64.oendifLIBS := `$(CC) -print-libgcc-file-name` $(TOPDIR)/arch/parisc/lib/lib.a $(LIBS)SUBDIRS := $(SUBDIRS) arch/parisc/math-emuDRIVERS := $(DRIVERS) arch/parisc/math-emu/math.oarch/parisc/kernel: dummy$(MAKE) linuxsubdirs SUBDIRS=arch/parisc/kernelarch/parisc/mm: dummy$(MAKE) linuxsubdirs SUBDIRS=arch/parisc/mmpalo: 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; \fipalo -f ./palo.confoldpalo: vmlinuxexport TOPDIR=`pwd`; \unset STRIP LDFLAGS CPP CPPFLAGS AFLAGS CFLAGS CC LD; cd ../palo && make lifimageImage: paloImage-clean:ramdisk.o:zImage: palobzImage: palocompressed: zImageinstall:archmrproper:rm -f $(OFFSET_H)archclean:archdep: $(OFFSET_H)$(OFFSET_H): include/linux/version.h$(MAKE) -C $(TOPDIR)/arch/$(ARCH)/tools all.PHONY: $(OFFSET_H)
