From: Robert Gordon <robert@greenroomsoftware.com>
To: maximilian attems <max@stro.at>
Cc: Michal Marek <mmarek@suse.cz>, Nuno Subtil <subtil@gmail.com>,
linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] deb-pkg: fix cross-compile build
Date: Thu, 05 May 2011 08:42:32 -0700 [thread overview]
Message-ID: <4DC2C568.9090803@greenroomsoftware.com> (raw)
In-Reply-To: <20110505090728.GC30678@vostochny.stro.at>
On 05/05/2011 02:07 AM, maximilian attems wrote:
> On Wed, May 04, 2011 at 10:48:07PM +0200, Michal Marek wrote:
>> Adding Maks to CC.
> thanks, this one looks, good please disguard the other patch.
>
>> On Tue, May 03, 2011 at 10:59:10PM -0700, Nuno Subtil wrote:
>>> When generating the header package, scripts/package/builddeb was inferring the
>>> target architecture by looking at the output of dpkg --print-architecture. This
>>> allows KBUILD_DEBARCH to override that.
>>>
>>> Signed-off-by: Nuno Subtil <subtil@gmail.com>
> Acked-by: maximilian attems <max@stro.at>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Greetings,
Compile breaks when using the following command:
fakeroot make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- deb-pkg
With 'set -x' in scripts/package/builddeb, the relevant output is:
+ '[' -n '' ']'
++ dpkg --print-architecture
+ arch=i386
This indicates that KBUILD_DEBARCH is not set.
The debian/control file is written with the following section:
Package: linux-headers-2.6.39-rc5+
Provides: linux-headers, linux-headers-2.6
Architecture: i386
Description: Linux kernel headers for 2.6.39-rc5+ on i386
This package provides kernel header files for 2.6.39-rc5+ on i386
This produces the following error output:
+ forcearch=-DArchitecture=armel
+ dpkg-gencontrol -isp -DArchitecture=armel
-plinux-headers-2.6.39-rc5+ -P/opt/kernel-linus/linux-2.6/debian/hdrtmp
dpkg-gencontrol: error: current host architecture 'armel' does not
appear in package's architecture list (i386)
Regards,
Robert
next prev parent reply other threads:[~2011-05-05 15:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-04 5:59 [PATCH 1/1] deb-pkg: fix cross-compile build Nuno Subtil
2011-05-04 20:48 ` Michal Marek
2011-05-05 9:07 ` maximilian attems
2011-05-05 15:42 ` Robert Gordon [this message]
2011-05-05 17:10 ` Nuno Subtil
[not found] ` <4DC2EB2B.1050203@greenroomsoftware.com>
2011-05-05 18:34 ` Robert Gordon
2011-05-10 5:29 ` Nuno Subtil
2011-05-10 12:41 ` maximilian attems
2011-05-12 14:01 ` Robert Gordon
2011-05-12 19:45 ` Nuno Subtil
2011-05-13 2:50 ` Robert Gordon
-- strict thread matches above, loose matches on Subject: below --
2011-05-10 5:25 Nuno Subtil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DC2C568.9090803@greenroomsoftware.com \
--to=robert@greenroomsoftware.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=max@stro.at \
--cc=mmarek@suse.cz \
--cc=subtil@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox