You are not logged in.

#1 2012-09-29 19:47:55

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 168

[SOLVED] Cross Compiling with makepkg

Good evening all, Hopefully I have the right sub-forum smile

I would like to make some packages with makepkg for arm but I would like to cross compile them on my i7. I already have a cross compiler toolchain (arm-linux-gnueabi-gcc) tested and working fine. I am just unclear on how to configre /etc/makepkg.conf for this purpose.

I've read the wiki page for makepkg but can't find anything about this. I presume I need to modify the "ARCHITECTURE, COMPILE FLAGS" block in /etc/makepkg.conf but I am not sure how.

If anyone could point me in the right direction, it'd be much appreciated smile

(I am not using distcc)

Thanks.

Last edited by starfry (2012-10-03 19:37:37)

Offline

#2 2012-09-30 11:00:05

D4ve
Member
Registered: 2012-08-02
Posts: 209

Re: [SOLVED] Cross Compiling with makepkg

Take a look at this, maybe it helps you: .config-v7 (taken from here)

You can use the target-options like CT_ARCH_ARCH="armv7-a" and CT_ARCH_FPU="vfpv3-d16" for your makepkg.conf

Also take a look into the gentoo wiki, they often provide perfect configurations for things like that.

EDIT: Hope you have an armv7-target, otherwise you should take a look at .config-v5 or .config-v6 config.

Last edited by D4ve (2012-09-30 11:03:20)

Offline

#3 2012-10-01 10:57:36

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 168

Re: [SOLVED] Cross Compiling with makepkg

thanks for that, will take a look today smile

Just thought I'd post an update. I realised that trying to run makepkg in a cross compile fashion is probably futile due to the lack of installed package dependencies on the compile host. I decided to learn about distcc, got it working very quickly and that does the job for me smile

Last edited by starfry (2012-10-03 19:38:45)

Offline

Board footer

Powered by FluxBB