Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264639AbUJNVUx (ORCPT ); Thu, 14 Oct 2004 17:20:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267235AbUJNVQw (ORCPT ); Thu, 14 Oct 2004 17:16:52 -0400 Received: from e6.ny.us.ibm.com ([32.97.182.106]:44452 "EHLO e6.ny.us.ibm.com") by vger.kernel.org with ESMTP id S266821AbUJNVPC (ORCPT ); Thu, 14 Oct 2004 17:15:02 -0400 From: Hollis Blanchard To: Sam Ravnborg Subject: using cc-option in arch/ppc64/boot/Makefile Date: Thu, 14 Oct 2004 16:11:32 +0000 User-Agent: KMail/1.7 Cc: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200410141611.32198.hollisb@us.ibm.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 949 Lines: 21 Hi Sam, I would like to use "cc-option-yn" in arch/ppc64/boot/Makefile. All recent 64-bit gcc/binutils can produce 32-bit code by passing -m32 (or similar) to them. arch/ppc64/boot/zImage is actually a 32-bit executable, and the Makefile still requires a separate 32-bit cross-compiler to build it (in addition to the 64-bit cross-compiler used for the vmlinux). To decide if $(CC) can handle -m32, I'd like to use cc-option-yn (as in arch/ppc64/Makefile). I've tried moving the cc-option stuff out of the top-level Makefile into something that can be included from arch/ppc64/boot/Makefile, but so far the right magic has escaped me. Any ideas? -- Hollis Blanchard IBM Linux Technology Center - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/