Cross compile rules update
s-jan at ti.com
Mon Oct 11 14:21:44 UTC 2010
On Thu, Sep 30, 2010 at 7:46 PM, Tim Gardner <tim.gardner at canonical.com> wrote:
> On 09/30/2010 09:41 AM, Andy Whitcroft wrote:
>> I am slightly concerned that this one dh_ control needs the arch and
>> none of the others do. Might we be better off exporting them at the
>> time they are defined; pretty sure there is a way to say that you want
>> that when you set the values.
>> Otherwise it does look saneish. It is unfortuanate you need to zap the
>> tools unconditionally, perhaps we should leave that to the caller.
> It turns out the dh_gencontrol line changes were superfluous. It didn't work
> anyways with the 'fakeroot debian/rules binary arch=armel' invocation. It
> only works using 'dpkg-buildpackage -aarmel' which sets the internal notion
> of HOST arch that dh_gencontrol uses.
> Loic - I've made the CROSS_COMPILE and do_tools changes as requested.
I am testing the ti-omap4 branch, and cannot cross-compile anymore
with CS since the introduction of this patch. My CROSS_COMPILE
variable seems ignored (using CROSS_COMPILE=arm-none-linux-gnueabi-
dpkg-architecture -B -aarmel, or fakeroot debian/rules).
I was able to cross-compile with the following hack:
diff --git a/debian/rules.d/0-common-vars.mk b/debian/rules.d/0-common-vars.mk
index 66d3900..b4d7a8a 100644
@@ -106,9 +106,13 @@ endif
# an x86'en schroot. This is the only way to build all of the packages
# (except for tools).
+ CROSS_COMPILE := CROSS_COMPILE=$(CROSS_COMPILE)
CROSS_COMPILE ?= CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-
abidir := $(CURDIR)/$(DEBIAN)/abi/$(release)-$(revision)/$(arch)
prev_abidir := $(CURDIR)/$(DEBIAN)/abi/$(release)-$(prev_revision)/$(arch)
Am I using a wrong build command our could there be something wrong
with the makefile?
More information about the kernel-team