Fix cross-compiling kernel

Bug #957028 reported by Riku Voipio
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro Ubuntu
Fix Released
Medium
John Rigby
linux (Ubuntu)
Fix Released
Medium
Tim Gardner
Precise
Fix Released
Medium
Tim Gardner

Bug Description

Without this patch trying to cross-build ubuntu kernel source with:

sudo apt-get install gcc-arm-linux-gnueabi
dpkg-buildpackage -aarmel

would fail when building perf due to incorrect "make $(CROSS_COMPILE)" line. Unfortunately that is not enough, as binutils-dev is not multiarch ready atm.

In order to cross-compile kernel in precise, building tools need to be disabled (until binutils-dev is converted to multiarch). The attached patch does that, and while at it replaces the incorrect "make $(CROSS_COMPILE)" stanzas with $(kmake).

Please consider for you next precise upload so that precise kernels packages can be cross-compiled without hacking.

Revision history for this message
Riku Voipio (riku-voipio) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 957028

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Check also https://lists.ubuntu.com/archives/kernel-team/2012-March/019387.html thread where I posted similar patch.

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Confirmed
tags: added: bot-stop-nagging precise
tags: added: patch
tags: added: kernel-key
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

There should be a fix for this issue in the 3.2.0-19.31 kernel. This kernel will be built this evening.

Can you test this latest kernel, and mark this bug as "Fix Released" if it resolves the issue?

Revision history for this message
Tim Gardner (timg-tpi) wrote :

Should be fixed with these two commits:

UBUNTU: [Config] correctly specify CROSS_COMPILE for tools build
UBUNTU: [Config] Auto-detect do_tools setting

Changed in linux (Ubuntu):
assignee: nobody → Tim Gardner (timg-tpi)
status: Confirmed → Fix Released
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

John, please also make sure that such patches are applied at our own kernel packages (sauce from precise).

affects: linux-linaro → linaro-ubuntu
Changed in linaro-ubuntu:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → John Rigby (jcrigby)
Changed in linaro-ubuntu:
milestone: none → 12.04
Changed in linaro-ubuntu:
milestone: 12.04 → 12.05
Changed in linaro-ubuntu:
milestone: 12.05 → none
John Rigby (jcrigby)
Changed in linaro-ubuntu:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.