]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Modify Makefiles to download CodeSourcery toolchain and the TI graphics binaries...
authorMartin Vajnar <martin.vajnar@gmail.com>
Tue, 9 Oct 2012 19:00:57 +0000 (21:00 +0200)
committerMartin Vajnar <martin.vajnar@gmail.com>
Tue, 9 Oct 2012 19:00:57 +0000 (21:00 +0200)
To compile for gumstix:
1. go to soft/build/gumstix
2. run 'make distclean'
'make default-config'
'make'

During the installation of TI binaries the installer requires you
to interact several times to confirm that you wish to proceed
 with the installation and to accept the EULA. When it asks you to
specify the destination folder just press Enter.

build/gumstix/config.target
build/gumstix/qt/Makefile.omk
build/gumstix/qt/linux-omap3-g++/qmake.conf

index 4c38269912eb25c39f8824ac4eb7fd50bee69490..8c1ccc4c673699b6eaeaf65b0cb6142d7a415dd9 100644 (file)
@@ -1,4 +1,4 @@
-CROSS_COMPILE = /home/martin/eurobot.sickd/soft/build/gumstix/qt/arm-2008q1/bin/arm-none-linux-gnueabi-
+CROSS_COMPILE = $(OUTPUT_DIR)/qt/arm-2008q1/bin/arm-none-linux-gnueabi-
 CC = $(CROSS_COMPILE)gcc
 CXX = $(CROSS_COMPILE)g++
 AS = $(CROSS_COMPILE)as
index 2636a949483659b607036ff48adf3d2c6d9dd3e1..f7bd96883925e7e0f472842e9bbd55f3984d582d 100644 (file)
@@ -2,8 +2,24 @@
 
 library-pass_HOOKS = install-qt
 
+ifeq ($(wildcard $(SOURCES_DIR)/OMAP35x_Graphics_SDK_setuplinux_3_00_00_09.bin),)
+       include-pass_HOOKS = get-powervr install-powervr
+else
+       include-pass_HOOKS = install-powervr
+endif
+
+ifeq ($(wildcard $(SOURCES_DIR)/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2),)
+       default-config-pass_HOOKS = get-ti extract-ti
+else
+       default-config-pass_HOOKS = extract-ti
+endif
+       
 config.status: $(SOURCES_DIR)/qt-src/configure
        cp -arv $(SOURCES_DIR)/linux-omap3-g++ $(SOURCES_DIR)/qt-src/mkspecs/qws
+       sed -i "s#^QMAKE_CSTOOL_DIR  =.*\$$#QMAKE_CSTOOL_DIR  = $(SOURCES_DIR)/arm-2008q1#" $(SOURCES_DIR)/qt-src/mkspecs/qws/linux-omap3-g++/qmake.conf
+       sed -i "s#^QMAKE_GFX_SDK_DIR =.*\$$#QMAKE_GFX_SDK_DIR = $(SOURCES_DIR)/OMAP35x_Graphics_SDK_3_00_00_09#" $(SOURCES_DIR)/qt-src/mkspecs/qws/linux-omap3-g++/qmake.conf
+       sed -i "s#^QMAKE_GFX_ES_DIR  =.*\$$#QMAKE_GFX_ES_DIR  = gfx_rel_es2.x#" $(SOURCES_DIR)/qt-src/mkspecs/qws/linux-omap3-g++/qmake.conf
+       sed -i "s#^QMAKE_CXX        =.*\$$#QMAKE_CXX        = $(SOURCES_DIR)/arm-2008q1/bin/arm-none-linux-gnueabi-g++#" $(SOURCES_DIR)/qt-src/mkspecs/qws/linux-omap3-g++/qmake.conf
        $< -prefix $(OUTPUT_DIR)/_compiled/qt -embedded arm -little-endian -fast -D QT_NO_QWS_CURSOR -D QT_QWS_CLIENTBLIT -depths 16,24,32 -platform linux-g++ -xplatform qws/linux-omap3-g++ -arch arm -opengl es2 -opensource -confirm-license -qtlibinfix E -openvg -plugin-gfx-powervr -no-openssl -no-cups -no-largefile -qt-mouse-pc -plugin-mouse-pc -no-webkit -no-script -qt-gfx-vnc -R $(SOURCES_DIR)/OMAP35x_Graphics_SDK_3_00_00_09/gfx_rel_es2.x
 
 lib/libQtCoreE.so: config.status
@@ -16,3 +32,20 @@ $(OUTPUT_DIR)/_compiled/qt/libQtCoreE.so: lib/libQtCoreE.so
 
 .PHONY: install-qt
 install-qt: $(OUTPUT_DIR)/_compiled/qt/libQtCoreE.so
+
+get-ti:
+       wget --directory-prefix=$(SOURCES_DIR) https://sourcery.mentor.com/GNUToolchain/package2549/public/arm-none-linux-gnueabi/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
+       touch $@
+
+extract-ti:
+       tar -xjf $(SOURCES_DIR)/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 -C $(SOURCES_DIR)
+       touch $@
+
+get-powervr:
+       wget --directory-prefix=$(SOURCES_DIR) http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/3_00_00_09/exports/OMAP35x_Graphics_SDK_setuplinux_3_00_00_09.bin
+       chmod u+x $(SOURCES_DIR)/OMAP35x_Graphics_SDK_setuplinux_3_00_00_09.bin
+       touch $@
+               
+install-powervr:
+       HOME=$(SOURCES_DIR) $(SOURCES_DIR)/OMAP35x_Graphics_SDK_setuplinux_3_00_00_09.bin --mode console
+       touch $@
index 999029cddb6c28095961d581e4867925cf6df74c..ad4086d0dd474a85f9f2f4f5e148ad30f433643d 100644 (file)
@@ -21,8 +21,8 @@ include(../../common/qws.conf)
 #                     libraries.  This should be "gfx_rel" if you have ES 3.x
 #                     silicon, and "gfx_rel_es2.x" if you have ES 2.x silicon.
 #
-QMAKE_CSTOOL_DIR  = /home/martin/eurobot.sickd/soft/build/gumstix/qt/arm-2008q1
-QMAKE_GFX_SDK_DIR = /home/martin/eurobot.sickd/soft/build/gumstix/qt/OMAP35x_Graphics_SDK_3_00_00_09
+QMAKE_CSTOOL_DIR  = 
+QMAKE_GFX_SDK_DIR = 
 QMAKE_GFX_ES_DIR  = gfx_rel_es2.x
 
 #------------------------------------------------------------------------------
@@ -44,7 +44,7 @@ QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-
 QMAKE_CSTOOL_BIN = $$QMAKE_CSTOOL_DIR/bin
 
 QMAKE_CC         = $$QMAKE_CSTOOL_BIN/arm-none-linux-gnueabi-gcc
-QMAKE_CXX        = /home/martin/eurobot.sickd/soft/build/gumstix/qt/arm-2008q1/bin/arm-none-linux-gnueabi-g++
+QMAKE_CXX        = $$QMAKE_CSTOOL_BIN/arm-none-linux-gnueabi-g++
 QMAKE_LINK       = $$QMAKE_CSTOOL_BIN/arm-none-linux-gnueabi-g++
 QMAKE_LINK_SHLIB = $$QMAKE_CSTOOL_BIN/arm-none-linux-gnueabi-g++
 QMAKE_AR         = $$QMAKE_CSTOOL_BIN/arm-none-linux-gnueabi-ar cqs
@@ -66,4 +66,4 @@ QMAKE_LIBS_OPENGL_ES1CL = $$QMAKE_LIBS_OPENGL_ES1
 QMAKE_LIBS_OPENGL_ES2   = $$QMAKE_LIBS_EGL -lGLESv2 
 QMAKE_LIBS_OPENVG       = $$QMAKE_LIBS_EGL -lOpenVG -lOpenVGU
 
-load(qt_config)
+load(qt_config)
\ No newline at end of file