4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies. Remember to do have actions
6 # for "archclean" and "archdep" for cleaning up and making dependencies for
9 # This file is subject to the terms and conditions of the GNU General Public
10 # License. See the file "COPYING" in the main directory of this archive
13 # Copyright (C) 1994 by Linus Torvalds
14 # Portions Copyright (C) 1999 The Puffin Group
16 # Modified for PA-RISC Linux by Paul Lahaie, Alex deVries,
17 # Mike Shaver, Helge Deller and Martin K. Petersen
19 <<<<<<< HEAD
:arch
/parisc
/Makefile
22 KBUILD_DEFCONFIG
:= default_defconfig
24 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:arch
/parisc
/Makefile
25 NM
= sh
$(srctree
)/arch
/parisc
/nm
26 CHECKFLAGS
+= -D__hppa__
=1
28 MACHINE
:= $(shell uname
-m
)
29 ifeq ($(MACHINE
),parisc
*)
34 UTS_MACHINE
:= parisc64
35 CHECKFLAGS
+= -D__LP64__
=1 -m64
37 CROSS_COMPILE
:= hppa64-linux-gnu-
42 # attempt to help out folks who are cross-compiling
44 CROSS_COMPILE
:= hppa
$(WIDTH
)-linux-
47 OBJCOPY_FLAGS
=-O binary
-R .note
-R .comment
-S
51 # These flags should be implied by an hppa-linux configuration, but they
53 cflags-y
+= -mno-space-regs
-mfast-indirect-calls
55 # Currently we save and restore fpregs on all kernel entry/interruption paths.
56 # If that gets optimized, we might need to disable the use of fpregs in the
58 cflags-y
+= -mdisable-fpregs
60 # Without this, "ld -r" results in .text sections that are too big
61 # (> 0x40000) for branches to reach stubs.
62 cflags-y
+= -ffunction-sections
64 # select which processor to optimise for
65 cflags-
$(CONFIG_PA7100
) += -march
=1.1 -mschedule
=7100
66 cflags-
$(CONFIG_PA7200
) += -march
=1.1 -mschedule
=7200
67 cflags-
$(CONFIG_PA7100LC
) += -march
=1.1 -mschedule
=7100LC
68 cflags-
$(CONFIG_PA7300LC
) += -march
=1.1 -mschedule
=7300
69 cflags-
$(CONFIG_PA8X00
) += -march
=2.0 -mschedule
=8000
71 head-y
:= arch
/parisc
/kernel
/head.o
73 KBUILD_CFLAGS
+= $(cflags-y
)
75 kernel-y
:= mm
/ kernel
/ math-emu
/ kernel
/init_task.o
76 kernel-
$(CONFIG_HPUX
) += hpux
/
78 core-y
+= $(addprefix arch
/parisc
/, $(kernel-y
))
79 libs-y
+= arch
/parisc
/lib
/ `$(CC) -print-libgcc-file-name`
81 drivers-
$(CONFIG_OPROFILE
) += arch
/parisc
/oprofile
/
83 PALO
:= $(shell if which palo
; then
: ; \
84 elif
[ -x
/sbin
/palo
]; then echo
/sbin
/palo
; \
87 PALOCONF
:= $(shell if
[ -f
$(src
)/palo.conf
]; then echo
$(src
)/palo.conf
; \
88 else echo
$(obj
)/palo.conf
; \
92 @if
test ! -x
"$(PALO)"; then \
93 echo
'ERROR: Please install palo first (apt-get install palo)';\
94 echo
'or build it from source and install it somewhere in your $$PATH';\
97 @if
test ! -f
"$(PALOCONF)"; then \
98 cp
$(src
)/arch
/parisc
/defpalo.conf
$(obj
)/palo.conf
; \
99 echo
'A generic palo config file ($(obj)/palo.conf) has been created for you.'; \
100 echo
'You should check it and re-run "make palo".'; \
101 echo
'WARNING: the "lifimage" file is now placed in this directory by default!'; \
104 $(PALO
) -f
$(PALOCONF
)
106 # Shorthands for known targets not supported by parisc, use vmlinux as default
107 Image zImage bzImage
: vmlinux
109 kernel_install
: vmlinux
110 sh
$(src
)/arch
/parisc
/install.sh \
111 $(KERNELRELEASE
) $< System.map
"$(INSTALL_PATH)"
113 install: kernel_install modules_install
115 CLEAN_FILES
+= lifimage
116 MRPROPER_FILES
+= palo.conf
119 @echo
'* vmlinux - Uncompressed kernel image (./vmlinux)'
120 @echo
' palo - Bootable image (./lifimage)'
121 @echo
' install - Install kernel using'
122 @echo
' (your) ~/bin/installkernel or'
123 @echo
' (distribution) /sbin/installkernel or'
124 @echo
' copy to $$(INSTALL_PATH)'
127 # we require gcc 3.3 or above to compile the kernel
128 archprepare
: checkbin
130 @if
test "$(call cc-version)" -lt
"0303"; then \
131 echo
-n
"Sorry, GCC v3.3 or above is required to build " ; \
132 echo
"the kernel." ; \