diff options
70 files changed, 6524 insertions, 1886 deletions
diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index f3d0d7c70977..ae4a9b3d4fd6 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile | |||
| @@ -19,26 +19,27 @@ | |||
| 19 | NM = sh $(srctree)/arch/parisc/nm | 19 | NM = sh $(srctree)/arch/parisc/nm |
| 20 | CHECKFLAGS += -D__hppa__=1 | 20 | CHECKFLAGS += -D__hppa__=1 |
| 21 | 21 | ||
| 22 | MACHINE := $(shell uname -m) | ||
| 23 | ifeq ($(MACHINE),parisc*) | ||
| 24 | NATIVE := 1 | ||
| 25 | endif | ||
| 26 | |||
| 22 | ifdef CONFIG_64BIT | 27 | ifdef CONFIG_64BIT |
| 23 | CROSS_COMPILE := $(shell if [ -x /usr/bin/hppa64-linux-gnu-gcc ]; then \ | ||
| 24 | echo hppa64-linux-gnu-; else echo hppa64-linux-; fi) | ||
| 25 | UTS_MACHINE := parisc64 | 28 | UTS_MACHINE := parisc64 |
| 26 | CHECKFLAGS += -D__LP64__=1 -m64 | 29 | CHECKFLAGS += -D__LP64__=1 -m64 |
| 27 | else | 30 | WIDTH := 64 |
| 28 | MACHINE := $(subst 64,,$(shell uname -m)) | 31 | CROSS_COMPILE := hppa64-linux-gnu- |
| 29 | ifneq ($(MACHINE),parisc) | 32 | else # 32-bit |
| 30 | CROSS_COMPILE := hppa-linux- | 33 | WIDTH := |
| 31 | endif | ||
| 32 | endif | 34 | endif |
| 33 | 35 | ||
| 34 | FINAL_LD=$(CROSS_COMPILE)ld --warn-common --warn-section-align | 36 | # attempt to help out folks who are cross-compiling |
| 37 | ifeq ($(NATIVE),1) | ||
| 38 | CROSS_COMPILE := hppa$(WIDTH)-linux- | ||
| 39 | endif | ||
| 35 | 40 | ||
| 36 | OBJCOPY_FLAGS =-O binary -R .note -R .comment -S | 41 | OBJCOPY_FLAGS =-O binary -R .note -R .comment -S |
| 37 | 42 | ||
| 38 | ifneq ($(call cc-ifversion, -lt, 0303, "bad"),) | ||
| 39 | $(error Sorry, GCC v3.3 or above is required.) | ||
| 40 | endif | ||
| 41 | |||
| 42 | cflags-y := -pipe | 43 | cflags-y := -pipe |
| 43 | 44 | ||
| 44 | # These flags should be implied by an hppa-linux configuration, but they | 45 | # These flags should be implied by an hppa-linux configuration, but they |
| @@ -69,7 +70,7 @@ kernel-y := mm/ kernel/ math-emu/ kernel/init_task.o | |||
| 69 | kernel-$(CONFIG_HPUX) += hpux/ | 70 | kernel-$(CONFIG_HPUX) += hpux/ |
| 70 | 71 | ||
| 71 | core-y += $(addprefix arch/parisc/, $(kernel-y)) | 72 | core-y += $(addprefix arch/parisc/, $(kernel-y)) |
| 72 | libs-y += arch/parisc/lib/ `$(CC) -print-libgcc-file-name` | 73 | libs-y += arch/parisc/lib/ |
| 73 | 74 | ||
| 74 | drivers-$(CONFIG_OPROFILE) += arch/parisc/oprofile/ | 75 | drivers-$(CONFIG_OPROFILE) += arch/parisc/oprofile/ |
| 75 | 76 | ||
| @@ -77,27 +78,27 @@ PALO := $(shell if which palo; then : ; \ | |||
| 77 | elif [ -x /sbin/palo ]; then echo /sbin/palo; \ | 78 | elif [ -x /sbin/palo ]; then echo /sbin/palo; \ |
| 78 | fi) | 79 | fi) |
| 79 | 80 | ||
| 81 | PALOCONF := $(shell if [ -f $(src)/palo.conf ]; then echo $(src)/palo.conf; \ | ||
| 82 | else echo $(obj)/palo.conf; \ | ||
| 83 | fi) | ||
| 84 | |||
| 80 | palo: vmlinux | 85 | palo: vmlinux |
| 81 | @if [ -x $PALO ]; then \ | 86 | @if test ! -x "$(PALO)"; then \ |
| 82 | echo 'ERROR: Please install palo first (apt-get install palo)';\ | 87 | echo 'ERROR: Please install palo first (apt-get install palo)';\ |
| 83 | echo 'or build it from source and install it somewhere in your $$PATH';\ | 88 | echo 'or build it from source and install it somewhere in your $$PATH';\ |
| 84 | false; \ | 89 | false; \ |
| 85 | fi | 90 | fi |
| 86 | @if [ ! -f ./palo.conf ]; then \ | 91 | @if test ! -f "$(PALOCONF)"; then \ |
| 87 | cp arch/parisc/defpalo.conf palo.conf; \ | 92 | cp $(src)/arch/parisc/defpalo.conf $(obj)/palo.conf; \ |
| 88 | echo 'A generic palo config file (./palo.conf) has been created for you.'; \ | 93 | echo 'A generic palo config file ($(obj)/palo.conf) has been created for you.'; \ |
| 89 | echo 'You should check it and re-run "make palo".'; \ | 94 | echo 'You should check it and re-run "make palo".'; \ |
| 90 | echo 'WARNING: the "lifimage" file is now placed in this directory by default!'; \ | 95 | echo 'WARNING: the "lifimage" file is now placed in this directory by default!'; \ |
| 91 | false; \ | 96 | false; \ |
| 92 | fi | 97 | fi |
| 93 | $(PALO) -f ./palo.conf | 98 | $(PALO) -f $(PALOCONF) |
| 94 | |||
| 95 | oldpalo: vmlinux | ||
| 96 | export TOPDIR=`pwd`; \ | ||
