Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758498Ab1ELTpr (ORCPT ); Thu, 12 May 2011 15:45:47 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:64698 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756660Ab1ELTpq convert rfc822-to-8bit (ORCPT ); Thu, 12 May 2011 15:45:46 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=sWYENKDLH8VeW1Lkkl2+VCvmaiC6aXPRX5FtM9N5UfLFVIMrx03C3fCJMegfaBB5I0 TAFcIjcaMuWoagYdz5KY4lOtUgW+QRxfSlSdJOAXn9bIwNz5dCf/QBpMNCpHa+CbCNsq 2Sq9c8RCB4sv9tbhXk07gAd4esm7kHZEEqbeo= MIME-Version: 1.0 In-Reply-To: <4DCBE83C.2080403@greenroomsoftware.com> References: <1304488750-13606-1-git-send-email-subtil@gmail.com> <20110504204807.GB13293@sepie.suse.cz> <20110505090728.GC30678@vostochny.stro.at> <4DC2C568.9090803@greenroomsoftware.com> <4DC2EB2B.1050203@greenroomsoftware.com> <20110510124123.GE13278@vostochny.stro.at> <4DCBE83C.2080403@greenroomsoftware.com> From: Nuno Subtil Date: Thu, 12 May 2011 12:45:24 -0700 Message-ID: Subject: Re: [PATCH 1/1] deb-pkg: fix cross-compile build To: Robert Gordon Cc: maximilian attems , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2812 Lines: 76 > The debian/control file for an unpatched scripts/package/builddeb would > assign 'i386' instead of 'amd64'. That seems wrong to me. Were the resulting packages actually usable on amd64? On Thu, May 12, 2011 at 07:01, Robert Gordon wrote: > On 05/10/2011 05:41 AM, maximilian attems wrote: >> On Mon, May 09, 2011 at 10:29:22PM -0700, Nuno Subtil wrote: >>> It looks like your patch duplicates the arch detection logic that's >>> already in create_package, except not completely. I think this is not >>> desirable. >>> >>> I modified your patch to isolate this logic into a separate function >>> and respect the KBUILD_DEBARCH override (which mostly means I moved >>> the original logic into a separate function). This should make your >>> case work as well, besides respecting the KBUILD_DEBARCH override. >>> >>> Maks, Michal, can you please take a look at this new patch? >> thanks doing right now. >> >> Michal please hold off until I have time to give it some runs. >> > I have tested this patch. ?It builds fine for arm with the following > command: > fakeroot make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- deb-pkg > > However x86_64 fails (when using an i386 machine). > fakeroot make ARCH=x86_64 deb-pkg > > The error occurs in scripts/package/builddeb > + forcearch=-DArchitecture=amd64 > + dpkg-gencontrol -isp -DArchitecture=amd64 -plinux-headers-2.6.39-rc7+ > -P/opt/kernel-linus/linux-2.6/debian/hdrtmp > dpkg-gencontrol: error: current host architecture 'i386' does not appear > in package's architecture list (amd64) > > The debian/control file is as follows: > cat debian/control > Source: linux-upstream > Section: kernel > Priority: optional > Maintainer: Anonymous > Standards-Version: 3.8.4 > Homepage: http://www.kernel.org/ > > Package: linux-image-2.6.39-rc7+ > Provides: linux-image, linux-image-2.6, linux-modules-2.6.39-rc7+ > Suggests: linux-firmware-image > Architecture: any > Description: Linux kernel, version 2.6.39-rc7+ > ?This package contains the Linux kernel, modules and corresponding other > ?files, version: 2.6.39-rc7+. > > Package: linux-headers-2.6.39-rc7+ > Provides: linux-headers, linux-headers-2.6 > Architecture: amd64 > Description: Linux kernel headers for 2.6.39-rc7+ on amd64 > ?This package provides kernel header files for 2.6.39-rc7+ on amd64 > ?. > ?This is useful for people who need to build external modules > > > > The debian/control file for an unpatched scripts/package/builddeb would > assign 'i386' instead of 'amd64'. > > Regards, > Robert > > -- 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/