Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] How to crosscompile ohnet for LINUX - ARMHF for ARMv7
01-02-2015, 12:55 AM (This post was last modified: 01-02-2015 11:44 AM by ChriD.)
Post: #1
[Solved] How to crosscompile ohnet for LINUX - ARMHF for ARMv7
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?
Find all posts by this user
01-02-2015, 09:15 AM
Post: #2
RE: How to crosscompile ohnet for LINUX - ARMHF for ARMv7
(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.
Find all posts by this user
01-02-2015, 11:43 AM
Post: #3
RE: How to crosscompile ohnet for LINUX - ARMHF for ARMv7
Ok, seems to work!
Thank you very much!
Find all posts by this user


Forum Jump: