OpenHome Forum
[Solved] How to crosscompile ohnet for LINUX - ARMHF for ARMv7 - Printable Version

+- OpenHome Forum (http://forum.openhome.org)
+-- Forum: OpenHome (/forumdisplay.php?fid=1)
+--- Forum: Net (/forumdisplay.php?fid=5)
+--- Thread: [Solved] How to crosscompile ohnet for LINUX - ARMHF for ARMv7 (/showthread.php?tid=1349)



[Solved] How to crosscompile ohnet for LINUX - ARMHF for ARMv7 - ChriD - 01-02-2015 12:55 AM

Hi,

I know its possible to crosscompile ohnet to
Linux ARM (soft float, cross-compiled from x86 host)

I want to compile it on
Linux ARMHF (hard float, cross-compiled from x86 host)

What do i have to change in the makefile? does it make sense to change this 2 lines for my needs? ( i do have installed the gcc/g++ compiler for arm and armhf in version 4.8)

Code:
# Figure out platform, openhome_system and openhome_architecture
gcc_machine = $(shell ${CROSS_COMPILE}gcc -dumpmachine)
MACHINE = $(shell uname -s)

Is the possible?


RE: How to crosscompile ohnet for LINUX - ARMHF for ARMv7 - simoncn - 01-02-2015 09:15 AM

(01-02-2015 12:55 AM)ChriD Wrote:  Hi,

I know its possible to crosscompile ohnet to
Linux ARM (soft float, cross-compiled from x86 host)

I want to compile it on
Linux ARMHF (hard float, cross-compiled from x86 host)

What do i have to change in the makefile? does it make sense to change this 2 lines for my needs? ( i do have installed the gcc/g++ compiler for arm and armhf in version 4.8)

Code:
# Figure out platform, openhome_system and openhome_architecture
gcc_machine = $(shell ${CROSS_COMPILE}gcc -dumpmachine)
MACHINE = $(shell uname -s)

Is the possible?

You need to set the CROSS_COMPILE environment variable to the full path prefix for the gcc executable that you want to use. You don't need to change the makefile.


RE: How to crosscompile ohnet for LINUX - ARMHF for ARMv7 - ChriD - 01-02-2015 11:43 AM

Ok, seems to work!
Thank you very much!