From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from webbox1416.server-home.net ([77.236.96.61]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RiRom-00038D-OH for ptxdist@pengutronix.de; Wed, 04 Jan 2012 15:27:53 +0100 Received: from comm.systec-electronic.de (95-91-85-164-dynip.superkabel.de [95.91.85.164]) by webbox1416.server-home.net (Postfix) with ESMTPA id 642B227A619 for ; Wed, 4 Jan 2012 15:31:25 +0100 (CET) Received: from ws-stein.localnet (unknown [192.168.10.38]) by comm.systec-electronic.de (Postfix) with ESMTP id 46ABE97C068 for ; Wed, 4 Jan 2012 15:27:52 +0100 (CET) From: Alexander Stein Date: Wed, 04 Jan 2012 15:27:46 +0100 Message-ID: <2236550.JcqvJ5vtdt@ws-stein> MIME-Version: 1.0 Subject: [ptxdist] Detect if x86 target is 32 or 64bit? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hello, how can I detect if a x86 target is 32 or 64bit? I'm working on a package rule for gnu-efi and elilo which need to know if it should generate ia32, x86_64 (or ia64) binaries. I just know about PTXCONF_ARCH_X86 but this does not show what I want. There is also PTXCONF_KERNEL_ARCH_X86_64 for 64bit but this needs a linux kernel configured. Any other ideas? Best regards, Alexander -- Dipl.-Inf. Alexander Stein SYS TEC electronic GmbH August-Bebel-Str. 29 D-07973 Greiz Tel: +49-3661-6279-0, Fax: +49-3661-6279-99 eMail: Alexander.Stein@systec-electronic.com Internet: http://www.systec-electronic.com Managing Director: Dipl.-Phys. Siegmar Schmidt Commercial registry: Amtsgericht Jena, HRB 205563 -- ptxdist mailing list ptxdist@pengutronix.de