[Openswan dev] ppc rename to powerpc issue

Paul Wouters paul at xelerance.com
Mon Feb 9 23:55:41 EST 2009

On Sun, 28 Dec 2008, Gilles Espinasse wrote:

> Date: Sun, 28 Dec 2008 12:22:08 +0100
> From: Gilles Espinasse <g.esp at free.fr>
> To: Dev at openswan.org
> Subject: [Openswan dev] 2.6.20dr2 fail on ppc arch with 2.6.27 kernel
> The reason is that there is no more linux-2.6.27/arch/ppc
> Everything is under linux-2.6.27/arch/powerpc
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=917f0af9e5a9ceecf9e72537fabb501254ba321d
> The error is as follow

> mkdir -p /usr/src/openswan-2.6.20dr2/modobj26/aes
> cp /usr/src/openswan-2.6.20dr2/packaging/makefiles/module26.make
> /usr/src/openswan-2.6.20dr2/modobj26/Makefile
> echo "# "                        >>
> /usr/src/openswan-2.6.20dr2/modobj26/Makefile
> echo "# Local Variables: "       >>
> /usr/src/openswan-2.6.20dr2/modobj26/Makefile
> echo "# compile-command: \"make -C /usr/src/openswan-2.6.20dr2 ARCH=ppc
> KERNELSRC=/usr/src/linux-2.6.27

Well, since uname -m returns "ppc", that is the arch we use. If
the Linux folks now want that to be powerpc, they should talk to
the glibc people I guess?

You can do:

 	 export ARCH=powerpc

to override this.

There is a "sanitize" bit in Makefile.inc:

# supply kernel-configuration ARCH defaults
ifeq ($(ARCH),)
ARCH := $(shell uname -m)
# always sanitize $(ARCH)
ARCH := $(shell echo $(ARCH) | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/ -e 's/ //g')

However, I am not sure how to deal with the *rename*. Since we should leave it
as "ppc" for some of the older kernels.


More information about the Dev mailing list