View Single Post
Old 01-02-2012, 12:45 AM   #280
peterx
Connoisseur
peterx will become famous soon enoughpeterx will become famous soon enoughpeterx will become famous soon enoughpeterx will become famous soon enoughpeterx will become famous soon enoughpeterx will become famous soon enough
 
Posts: 64
Karma: 669
Join Date: Jan 2012
Device: M92
Quote:
Originally Posted by pkbo View Post
Here you can find toolchain and prebuilt SDK for M92.
Ah, good to know, thanks. For those who have troubles compiling the SDK, it seems you have to change some paths in the Rakefile (and do not forget to "git submodule update --init"):

Code:
diff --git a/Rakefile b/Rakefile
index f887837..4a2f83b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -25,8 +25,8 @@ end
 def cmake_cmd(arch)
   marvell_cc = "/usr/local/arm/arm-marvell-linux-gnueabi/bin/arm-linux-gcc"
   marvell_cxx = "/usr/local/arm/arm-marvell-linux-gnueabi/bin/arm-linux-g++"
-  arm_cc = "/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-linux-gcc"
-  arm_cxx = "/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-linux-g++"
+  arm_cc = "/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-gcc"
+  arm_cxx = "/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-linux-g++"
   if arch == :arm
     "CC='#{compiler_prefix}#{arm_cc}' CXX='#{compiler_prefix}#{arm_cxx}' cmake "
   elsif arch == :marvell
@@ -67,7 +67,7 @@ directory "build/x86"
 
 task :arm_env do
   path = ENV['PATH']
-  ENV['PATH'] = "/opt/onyx/arm/bin:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/:#{path}"
+  ENV['PATH'] = "/opt/onyx/arm/bin:/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/:#{path}"
   ENV['ONYX_SDK_ROOT'] = '/opt/onyx/arm'
   ENV['PKG_CONFIG_PATH'] = '/opt/onyx/arm/lib/pkgconfig/'
   ENV['QMAKESPEC'] = '/opt/onyx/arm/mkspecs/qws/linux-arm-g++/'
peterx is offline   Reply With Quote