Skip to contentSkip to conversation

parisc: define SRCARCH=parisc for parisc64 builds

PATCH In review Helge Deller 2 participants 10 messages Feb 1, 2009 – Mar 15, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parisc: define SRCARCH=parisc for parisc64 builds

The parisc64 target (HP PARISC, 64bit kernel) is similar to the sparc64 or m68knommu targets, as it shares all sources for 32- and 64-bit in one single source path which is arch/parisc/.
This patch now allows one to use ARCH=parisc64 and just directly build the 64bit kernel without creating symlinks in arch/ and include/asm-* manually the same way as it's done for sparc64 and m68knommu.

Makefile +5 -0
index cf9e20d..3582985 100644
@@ -210,6 +210,11 @@ ifeq ($(ARCH),sparc64)
        SRCARCH := sparc
 endif
 
+# Additional ARCH settings for parisc
+ifeq ($(ARCH),parisc64)
+       SRCARCH := parisc
+endif
+
 # Where to locate arch specific headers
 hdr-arch  := $(SRCARCH)
 
#1 lore raw
Quoted 7 lines · Helge Deller

The parisc64 target (HP PARISC, 64bit kernel) is similar to the sparc64 or m68knommu targets, as it shares all sources for 32- and 64-bit in one single source path which is arch/parisc/.
This patch now allows one to use ARCH=parisc64 and just directly build the 64bit kernel without creating symlinks in arch/ and include/asm-* manually the same way as it's done for sparc64 and m68knommu.

I'm going to drop this patch, powerpc and mips don't do it, and 'parisc64' hasn't been valid as $ARCH since v2.3 or something equally ancient, so I can't see any point in it.

regards, Kyle

#2 lore raw
Quoted 2 lines · Kyle McMartin
Quoted 1 line · Helge Deller

The parisc64 target (HP PARISC, 64bit kernel) is similar to the spar=

c64 or=20

Quoted 1 line
Quoted 1 line

m68knommu targets, as it shares all sources for 32- and 64-bit in on=

e single

Quoted 2 lines
Quoted 2 lines

source path which is arch/parisc/.
This patch now allows one to use ARCH=3Dparisc64 and just directly b=

uild the

Quoted 1 line
Quoted 1 line

64bit kernel without creating symlinks in arch/ and include/asm-* ma=

nually

Quoted 4 lines
Quoted 2 lines

the same way as it's done for sparc64 and m68knommu.

=20
I'm going to drop this patch, powerpc and mips don't do it,=20

they maybe don't need it ?

Quoted 1 line

and 'parisc64' hasn't been valid as $ARCH since v2.3 or something equ=

ally

Quoted 1 line

ancient, so I can't see any point in it.

=C4h ?
And how do you build a 64bit parisc kernel then ?

Helge
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 1 line · Helge Deller
Quoted 1 line

and 'parisc64' hasn't been valid as $ARCH since v2.3 or something e=

qually

Quoted 5 lines
Quoted 1 line

ancient, so I can't see any point in it.

=20
=C4h ?
And how do you build a 64bit parisc kernel then ?
=20

CONFIG_64BIT.
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 2 lines · Kyle McMartin
Quoted 1 line · Helge Deller
Quoted 1 line

and 'parisc64' hasn't been valid as $ARCH since v2.3 or something e=

qually

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

ancient, so I can't see any point in it.

=C4h ?
And how do you build a 64bit parisc kernel then ?

=20
CONFIG_64BIT

No, this does not work with a cleanly checked-out tree. Just remove the arch/parisc64 link which you created manually.

Helge
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 3 lines · Helge Deller
Quoted 2 lines · Kyle McMartin
Quoted 1 line · Helge Deller
Quoted 1 line

and 'parisc64' hasn't been valid as $ARCH since v2.3 or something=

equally

Quoted 10 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

ancient, so I can't see any point in it.

=C4h ?
And how do you build a 64bit parisc kernel then ?

=20
CONFIG_64BIT

=20
No, this does not work with a cleanly checked-out tree. Just remove the arch/parisc64 link which you created manually. =20

It's simple, set CONFIG_64BIT, and just call it 'parisc' like everyone else has done for years now.

regards, Kyle
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
Quoted 4 lines · Kyle McMartin
Quoted 3 lines · Helge Deller
Quoted 2 lines · Kyle McMartin
Quoted 1 line · Helge Deller
Quoted 1 line

and 'parisc64' hasn't been valid as $ARCH since v2.3 or something=

equally

Quoted 11 lines
Quoted 8 lines
Quoted 5 lines
Quoted 4 lines
Quoted 1 line

ancient, so I can't see any point in it.

=C4h ?
And how do you build a 64bit parisc kernel then ?

CONFIG_64BIT

No, this does not work with a cleanly checked-out tree. Just remove the arch/parisc64 link which you created manually.

=20
It's simple, set CONFIG_64BIT, and just call it 'parisc' like everyone else has done for years now.

Everyone besides me it seems :-)

Shame on me ... seems you are right.
sorry.

Helge
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc"=
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 6 lines · Helge Deller

Everyone besides me it seems :-)

Shame on me ... seems you are right.
sorry.

heh, dude, not your fault. I guess you've just been at this a lot longer than I have. :)

#8 lore raw
In reply to Helge Deller
Quoted 6 lines · Helge Deller

Everyone besides me it seems :-)

Shame on me ... seems you are right.
sorry.

on second thought, if it makes your life measurably easier, i rescind my nak and will merge the patch.

let me know,
kyle

#9 lore raw
Quoted 7 lines · Kyle McMartin
Quoted 5 lines · Helge Deller

Everyone besides me it seems :-)

Shame on me ... seems you are right.
sorry.

Quoted 5 lines

on second thought, if it makes your life measurably easier, i rescind my nak and will merge the patch.

let me know,
kyle

Thanks for the offer, Kyle.
But I think I can easily change my scripts, so it's not necessary.

Helge