From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eu1sys200aog116.obsmtp.com ([207.126.144.141]) by metis.ext.pengutronix.de with smtp (Exim 4.72) (envelope-from ) id 1U3qo7-0002d1-2T for ptxdist@pengutronix.de; Fri, 08 Feb 2013 17:28:14 +0100 Received: by mail-ea0-f198.google.com with SMTP id e10so4077692eaa.9 for ; Fri, 08 Feb 2013 08:28:10 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20130207173615.GA6194@pengutronix.de> References: <20130207173615.GA6194@pengutronix.de> Date: Fri, 8 Feb 2013 17:28:09 +0100 Message-ID: From: Albert Antony Subject: Re: [ptxdist] Platformconfig CPU architecture for x86_64 Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0649944142==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0649944142== Content-Type: multipart/alternative; boundary=bcaec54ee8c87da76604d5390b73 --bcaec54ee8c87da76604d5390b73 Content-Type: text/plain; charset=ISO-8859-1 > I know. It's on my todo list, but I've not found the time to implement this > yet. > Send patches :-) > > Michael > The following patch works for me. Have only patched files for the packages I am using. Comments and suggestions appreciated :) Cheers, Albert. Index: ptxdist-2013.01.0/platforms/architecture.in =================================================================== --- ptxdist-2013.01.0.orig/platforms/architecture.in 2013-01-08 10:40:10.000000000 +0100 +++ ptxdist-2013.01.0/platforms/architecture.in 2013-02-08 11:03:57.877905582 +0100 @@ -52,6 +52,14 @@ help This is support for the Intel x86 architecture. + config ARCH_X86_64 + bool "x86_64 " + select HAS_MMU + select HAS_PCI + select ARCH_SUPPORTS_ENDIAN_LITTLE + help + This is support for the Intel x86_64 architecture. + config ARCH_MINGW bool "mingw " select HAS_MMU @@ -241,6 +249,7 @@ prompt "hardware floating point" default y if ARCH_ALPHA default y if ARCH_X86 + default y if ARCH_X86_64 default y if ARCH_SPARC default n @@ -263,7 +272,7 @@ config SIZEOF_LONG_DOUBLE string default "12" if ARCH_X86 -# default "16" if ARCH_X86_64 + default "16" if ARCH_X86_64 default "8" # FIXME: add more values @@ -278,6 +287,7 @@ default "alpha" if ARCH_ALPHA default "blackfin" if ARCH_BLACKFIN default "i386" if ARCH_X86 + default "x86_64" if ARCH_X86_64 default "i386" if ARCH_MINGW default "m68k" if ARCH_M68K default "ppc" if ARCH_PPC Index: ptxdist-2013.01.0/rules/openssl.make =================================================================== --- ptxdist-2013.01.0.orig/rules/openssl.make 2013-01-08 10:40:10.000000000 +0100 +++ ptxdist-2013.01.0/rules/openssl.make 2013-02-08 11:11:51.237919688 +0100 @@ -40,6 +40,7 @@ OPENSSL_ARCH-$(PTXCONF_ARCH_X86_I686) += debian-i386-i686/cmov OPENSSL_ARCH-$(PTXCONF_ARCH_X86_P2) += debian-i386-i686/cmov OPENSSL_ARCH-$(PTXCONF_ARCH_X86_P3M) += debian-i386-i686/cmov +OPENSSL_ARCH-$(PTXCONF_ARCH_X86_64) += debian-amd64 OPENSSL_ARCH-$(PTXCONF_ARCH_M68K) += debian-m68k OPENSSL_ARCH-$(PTXCONF_ARCH_PPC) += debian-powerpc OPENSSL_ARCH-$(PTXCONF_ARCH_SPARC) += debian-sparc Index: ptxdist-2013.01.0/rules/pre/kernel.make =================================================================== --- ptxdist-2013.01.0.orig/rules/pre/kernel.make 2013-01-08 10:40:10.000000000 +0100 +++ ptxdist-2013.01.0/rules/pre/kernel.make 2013-02-08 11:15:16.465925804 +0100 @@ -28,6 +28,9 @@ ifdef PTXCONF_ARCH_X86 GENERIC_KERNEL_ARCH := "x86" endif +ifdef PTXCONF_ARCH_X86_64 +GENERIC_KERNEL_ARCH := "x86_64" +endif ifdef PTXCONF_ARCH_PPC GENERIC_KERNEL_ARCH := "powerpc" endif Index: ptxdist-2013.01.0/rules/lm_sensors.make =================================================================== --- ptxdist-2013.01.0.orig/rules/lm_sensors.make 2013-02-08 11:30:13.601952539 +0100 +++ ptxdist-2013.01.0/rules/lm_sensors.make 2013-02-08 11:51:37.461990796 +0100 @@ -69,7 +69,7 @@ @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/pwmconfig) endif -ifdef PTXCONF_ARCH_X86 +ifneq ($(call ifdef_any_of,PTXCONF_ARCH_X86 PTXCONF_ARCH_X86_64),) ifdef PTXCONF_LM_SENSORS_ISASET @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/isaset) endif Index: ptxdist-2013.01.0/platforms/kernel.in =================================================================== --- ptxdist-2013.01.0.orig/platforms/kernel.in 2013-01-08 10:40:10.000000000 +0100 +++ ptxdist-2013.01.0/platforms/kernel.in 2013-02-08 13:55:40.722212603 +0100 @@ -41,9 +41,10 @@ choice prompt "kernel architecture " - depends on ARCH_PPC || ARCH_X86 + depends on ARCH_PPC || ARCH_X86 || ARCH_X86_64 default KERNEL_ARCH_POWERPC if ARCH_PPC default KERNEL_ARCH_X86 if ARCH_X86 + default KERNEL_ARCH_X86_64 if ARCH_X86_64 help For x86 and PowerPC there are different possibilities to set the kernel architecture: @@ -74,7 +75,7 @@ config KERNEL_ARCH_X86_64 bool - depends on ARCH_X86 + depends on ARCH_X86_64 prompt "x86_64 " endchoice --bcaec54ee8c87da76604d5390b73 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I know. It= 9;s on my todo list, but I've not found the time to implement this
yet.
Send patches :-)

Michael

The following patch works for m= e. Have only patched files for the packages I am using. Comments and sugges= tions appreciated :)

Cheers,
Albert.


Index: ptxdist-2013.01.0/platforms/= architecture.in
=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- ptxdist-2013.01.0.= orig/platforms/architecture.in 2013-01-08 10:40= :10.000000000 +0100
+++ ptxdist-2013.01.0/platforms/arc= hitecture.in <= /span>2013-02-08 11:03:57.877905582 +0100
@@ -52,6 +52,14 @@
=A0 help
=A0 =A0This is support for the Intel x86 architecture.
=A0
<= div>+ confi= g ARCH_X86_64
+ boo= l "x86_64 =A0 =A0 "
+ select HAS_MMU
+ select HAS_PCI
+ sel= ect ARCH_SUPPORTS_ENDIAN_LITTLE
+ help
+ =A0This is support for the Intel = x86_64 architecture.
+
=A0 config ARCH_MINGW
=A0 bool "mingw =A0 =A0 =A0"
=A0 sele= ct HAS_MMU
@@ -241,6 +249,7 @@
=A0 prompt "hardware floating point"
=A0 = default y if ARCH_ALPHA
=A0 de= fault y if ARCH_X86
+ default y if ARCH_X86_64
=A0 default y if ARCH_SPARC
=A0 de= fault n
=A0
@@ -263,7 +272,7 @@
=A0config SIZ= EOF_LONG_DOUBLE
=A0 string
=A0 de= fault "12" if ARCH_X86
-# default "16" if ARCH_X86_64
+ default &= quot;16" if ARCH_X86_64
=A0 default "8"
=A0 # FIXME: add more = values
=A0
@@ -278,6 +287,7 @@
=A0 default "alpha" if ARCH_ALPHA
=A0 default= "blackfin" if ARCH_BLACKFIN
=A0 default "i386" if ARCH_X86
+ defa= ult "x86_64" if ARCH_X86_64
=A0 default "i386" if ARCH_MINGW
=A0 de= fault "m68k" if ARCH_M68K
=A0 default "ppc" if ARCH_PPC
Index: ptxdist-2013.01.0/rules/openssl.make
=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- ptxdist-2013.01.0.orig/r= ules/openssl.make = 2013-01-08 10:40:10.000000000 +0100
+++ ptxdist-2013.01.0/rules/openssl.make 2013-02-08 11:11:51.237919688 +0100
@@ -40,6 +40,7 @@
=A0OPENSSL_ARCH-$(PTXCONF_ARCH_X86_I686)<= span class=3D"Apple-tab-span" style=3D"white-space:pre"> +=3D debian= -i386-i686/cmov
=A0OPENSSL_ARCH-$(PTXCONF_ARCH_X86_P2) +=3D debian-i386-i686/cmov
=A0OP= ENSSL_ARCH-$(PTXCONF_ARCH_X86_P3M) +=3D debian-i386-i686/cmov
+OPENSSL_ARCH-$(PTXCONF_ARCH_X86_64) +=3D debian-amd64
=A0OPENSSL_ARCH-= $(PTXCONF_ARCH_M68K) +=3D debian-m68k
=A0OPENSSL_ARCH-$(PTXCONF_ARCH_PPC) +=3D debian-powerpc
=A0OPENSSL_ARCH= -$(PTXCONF_ARCH_SPARC) +=3D debian-sparc
Index: ptxdist-2013.01.0/rules/pre/kernel.make
=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- ptxdist-2013.01.0.ori= g/rules/pre/kernel.make 2013-01-08 10:40:10.000000000 +0100
+++ ptxdist-2013.01.0/rules/pre/kernel.make 2013-02-08 11:15:16.465925804 +0100
@@ -28,6 +28,9 @@
=A0ifdef PTXCONF_ARCH_X86
= =A0GENERIC_KERNEL_ARCH :=3D "x86"
=A0endif
+ifdef PTXCONF_ARCH_X86_64
+GENERIC_KERNE= L_ARCH :=3D "x86_64"
+endif
=A0ifdef PTXCONF_= ARCH_PPC
=A0GENERIC_KERNEL_ARCH :=3D "powerpc"
=A0endif
Index: ptxdist-2013.01.0/rules/lm_sensors.make
=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- ptxdist-2013.01.0.ori= g/rules/lm_sensors.make 2013-02-08 11:30:13.601952539 +0100
+++ ptxdist-2013.01.0/rules/lm_sensors.make 2013-02-08 11:51:37.461990796 +0100
@@ -69,7 +69,7 @@
=A0 @$(call install_copy, lm_sensors, 0, 0, 0755,= -, /usr/sbin/pwmconfig)
=A0endif
=A0
-ifdef PTXCONF_ARCH_X86
+if= neq ($(call ifdef_any_of,PTXCONF_ARCH_X86 PTXCONF_ARCH_X86_64),)
= =A0ifdef PTXCONF_LM_SENSORS_ISASET
=A0 @$(call install_copy, lm_sensors, 0, = 0, 0755, -, /usr/sbin/isaset)
=A0endif
Index: ptxdist-2013.01.0/platforms/kernel.in
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D
--- ptxdist-2013.01.0.orig/platforms/kernel.in 2013-01-08 10:40:10.000000000 +0100
+++ ptxdist-2013.01.0/platforms/kernel.in= 2013-0= 2-08 13:55:40.722212603 +0100
@@ -41,9 +41,10 @@
=A0
=A0choice
=A0 prompt "kernel architecture "
- depends on ARCH_PPC |= | ARCH_X86
+ depe= nds on ARCH_PPC || ARCH_X86 || ARCH_X86_64
=A0 default KERNEL_ARCH_POWERPC if ARCH_PPC<= /div>
=A0 de= fault KERNEL_ARCH_X86 if ARCH_X86
+ default KERNEL_ARCH_X86_64 if ARCH_X86_64
=A0 he= lp
=A0 <= /span> =A0For x86 and PowerPC there are different possibilities to set the = kernel
=A0 = =A0architecture:
@@ -74,7 +75,7 @@
=A0
=A0 config KERNEL= _ARCH_X86_64
=A0 b= ool
- <= /span>depends on ARCH_X86
+ depends on ARCH_X86_64
=A0 p= rompt "x86_64 "
=A0
=A0endchoice
<= /div> --bcaec54ee8c87da76604d5390b73-- --===============0649944142== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0649944142==--