Skip to content

Commit

Permalink
Use Codebench Lite MIPS cross-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Stathis Voukelatos committed Sep 23, 2015
1 parent b4906b8 commit 5cf928f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ else
ifneq (,$(findstring mipsel,$(gcc_machine)))
detected_openhome_architecture = mipsel
endif

ifneq (,$(findstring mips,$(gcc_machine)))
detected_openhome_architecture = mipsel
endif
endif

detected_openhome_system ?= Unknown
Expand Down Expand Up @@ -303,8 +305,13 @@ ifeq ($(vanilla_settings), yes)
osdir = Posix
endian ?= LITTLE
openhome_system ?= Linux
ifeq ($(detected_openhome_architecture), mipsel)
platform_cflags += -EL -Wa,-EL
platform_linkflags += -EL
endif
endif


$(info Building for system ${openhome_system} and architecture ${openhome_architecture})


Expand Down
2 changes: 1 addition & 1 deletion hudson_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def set_platform_args(self):
if os_platform == 'linux' and arch == 'armhf':
os.environ['CROSS_COMPILE'] = '/opt/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-'
if os_platform == 'linux' and arch == 'mipsel':
os.environ['CROSS_COMPILE'] = 'mipsel-cros-linux-gnu-'
os.environ['CROSS_COMPILE'] = '/data/mips-2015.05-18/bin/mips-linux-gnu-'
if os_platform == 'linux' and arch == 'ppc32':
os.environ['CROSS_COMPILE'] = 'powerpc-linux-gnu-'
if os_platform == 'Core' and arch == 'ppc32':
Expand Down

0 comments on commit 5cf928f

Please sign in to comment.