Skip to content

Commit cfa76f0

Browse files
author
Linus Torvalds
committed
Merge branch 'master' of hera.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6
* 'master' of hera.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6: (29 commits) [PARISC] fix uninitialized variable warning in asm/rtc.h [PARISC] Port checkstack.pl to parisc [PARISC] Make palo target work when $obj != $src [PARISC] Zap unused variable warnings in pci.c [PARISC] Fix tests in palo target [PARISC] Fix palo target [PARISC] Restore palo target [PARISC] Attempt to clean up parisc/Makefile [PARISC] Fix infinite loop in /proc/iomem [PARISC] Quiet sysfs_create_link __must_check warnings in pdc_stable [PARISC] Squelch pci_enable_device __must_check warning in superio [PARISC] Kill off broken irqstack code [PARISC] Remove hardcoded uses of PAGE_SIZE [PARISC] Clean up pointless ASM_PAGE_SIZE_DIV use [PARISC] Kill off the last vestiges of ASM_PAGE_SIZE [PARISC] Kill off ASM_PAGE_SIZE use [PARISC] Beautify parisc vmlinux.lds.S [PARISC] Clean up a resource_size_t warning in sba_iommu [PARISC] Kill incorrect cast warning in unwinder [PARISC] Kill zone_to_nid printk warning ... Fixed trivial conflict in include/asm-parisc/tlbflush.h manually
2 parents 093faa1 + 7210c67 commit cfa76f0

70 files changed

Lines changed: 6524 additions & 1886 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/parisc/Makefile‎

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,27 @@
1919
NM = sh $(srctree)/arch/parisc/nm
2020
CHECKFLAGS += -D__hppa__=1
2121

22+
MACHINE := $(shell uname -m)
23+
ifeq ($(MACHINE),parisc*)
24+
NATIVE := 1
25+
endif
26+
2227
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)
2528
UTS_MACHINE := parisc64
2629
CHECKFLAGS += -D__LP64__=1 -m64
27-
else
28-
MACHINE := $(subst 64,,$(shell uname -m))
29-
ifneq ($(MACHINE),parisc)
30-
CROSS_COMPILE := hppa-linux-
31-
endif
30+
WIDTH := 64
31+
CROSS_COMPILE := hppa64-linux-gnu-
32+
else # 32-bit
33+
WIDTH :=
3234
endif
3335

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
3540

3641
OBJCOPY_FLAGS =-O binary -R .note -R .comment -S
3742

38-
ifneq ($(call cc-ifversion, -lt, 0303, "bad"),)
39-
$(error Sorry, GCC v3.3 or above is required.)
40-
endif
41-
4243
cflags-y := -pipe
4344

4445
# These flags should be implied by an hppa-linux configuration, but they
@@ -69,35 +70,35 @@ kernel-y := mm/ kernel/ math-emu/ kernel/init_task.o
6970
kernel-$(CONFIG_HPUX) += hpux/
7071

7172
core-y += $(addprefix arch/parisc/, $(kernel-y))
72-
libs-y += arch/parisc/lib/ `$(CC) -print-libgcc-file-name`
73+
libs-y += arch/parisc/lib/
7374

7475
drivers-$(CONFIG_OPROFILE) += arch/parisc/oprofile/
7576

7677
PALO := $(shell if which palo; then : ; \
7778
elif [ -x /sbin/palo ]; then echo /sbin/palo; \
7879
fi)
7980

81+
PALOCONF := $(shell if [ -f $(src)/palo.conf ]; then echo $(src)/palo.conf; \
82+
else echo $(obj)/palo.conf; \
83+
fi)
84+
8085
palo: vmlinux
81-
@if [ -x $PALO ]; then \
86+
@if test ! -x "$(PALO)"; then \
8287
echo 'ERROR: Please install palo first (apt-get install palo)';\
8388
echo 'or build it from source and install it somewhere in your $$PATH';\
8489
false; \
8590
fi
86-
@if [ ! -f ./palo.conf ]; then \
87-
cp arch/parisc/defpalo.conf palo.conf; \
88-
echo 'A generic palo config file (./palo.conf) has been created for you.'; \
91+
@if test ! -f "$(PALOCONF)"; then \
92+
cp $(src)/arch/parisc/defpalo.conf $(obj)/palo.conf; \
93+
echo 'A generic palo config file ($(obj)/palo.conf) has been created for you.'; \
8994
echo 'You should check it and re-run "make palo".'; \
9095
echo 'WARNING: the "lifimage" file is now placed in this directory by default!'; \
9196
false; \
9297
fi
93-
$(PALO) -f ./palo.conf
94-
95-
oldpalo: vmlinux
96-
export TOPDIR=`pwd`; \
97-
unset STRIP LDFLAGS CPP CPPFLAGS AFLAGS CFLAGS CC LD; cd ../palo && make lifimage
98+
$(PALO) -f $(PALOCONF)
9899

99-
# Shorthands for known targets not supported by parisc, use palo as default
100-
Image zImage bzImage: palo
100+
# Shorthands for known targets not supported by parisc, use vmlinux as default
101+
Image zImage bzImage: vmlinux
101102

102103
kernel_install: vmlinux
103104
sh $(src)/arch/parisc/install.sh \
@@ -116,3 +117,12 @@ define archhelp
116117
@echo ' (distribution) /sbin/installkernel or'
117118
@echo ' copy to $$(INSTALL_PATH)'
118119
endef
120+
121+
# we require gcc 3.3 or above to compile the kernel
122+
archprepare: checkbin
123+
checkbin:
124+
@if test "$(call cc-version)" -lt "0303"; then \
125+
echo -n "Sorry, GCC v3.3 or above is required to build " ; \
126+
echo "the kernel." ; \
127+
false ; \
128+
fi

0 commit comments

Comments
 (0)