FIx basic tools cross-build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Linux Baseline |
Fix Released
|
Undecided
|
Wookey | ||
Linaro Ubuntu |
Fix Released
|
Undecided
|
Wookey |
Bug Description
cross-building the kernel with sbuild --host or apt-get build-dep -aarmhf && dpkg-buildpackage -aarmhf does not work. The kernel part is OK but the tools package build falls over.
There were various reasons for this.
First the cross-build-deps do not install because binutils-dev:armhf is a) not multiarch and b) not installable if it was due to binutils not being multiarched. This is being worked on. In the meantime we can install build-deps manually and proceed.
apt-get install
The kernel cross build failed due to no arch being specified for the tools build so the wrong headers were found.
Also install -s is used, which uses the wrong strip. It might be better to refactor this to use dh_install which would DTRT, but for now I added --strip-program $(STRIP) and set $(STRIP) correctly for each call.
This patch also includes a rename from 'build_arch' to 'kernel_arch' in the debian.linaro arch-specific rules config, as 'build_arch' (reffering to the HOST_ARCH) is hopelessly confusing in a cross-build context. Agreed with Ubuntu upstream to use 'kernel_arch' instead.
Changed in linaro-linux-baseline: | |
assignee: | nobody → John Rigby (jcrigby) |
Changed in linaro-ubuntu: | |
milestone: | none → 13.02 |
Changed in linaro-linux-baseline: | |
milestone: | none → 13.02 |
status: | New → Fix Committed |
Changed in linaro-ubuntu: | |
milestone: | 13.02 → 13.03 |
Changed in linaro-linux-baseline: | |
milestone: | 13.02 → 13.03 |
Changed in linaro-linux-baseline: | |
assignee: | John Rigby (jcrigby) → Wookey (wookey) |
Changed in linaro-linux-baseline: | |
milestone: | 13.03 → 13.04 |
Changed in linaro-ubuntu: | |
milestone: | 13.03 → 13.04 |
Changed in linaro-ubuntu: | |
milestone: | 13.04 → 13.05 |
Changed in linaro-linux-baseline: | |
milestone: | 13.04 → 13.05 |
Changed in linaro-linux-baseline: | |
status: | In Progress → Fix Committed |
Changed in linaro-ubuntu: | |
milestone: | 13.05 → 13.06 |
Changed in linaro-linux-baseline: | |
milestone: | 13.05 → 13.06 |
Changed in linaro-linux-baseline: | |
status: | Fix Committed → Fix Released |
Changed in linaro-ubuntu: | |
status: | In Progress → Fix Released |
Some noise in that patch. This should be a bit better.