From: Martin Vajnar Date: Tue, 9 Oct 2012 19:00:57 +0000 (+0200) Subject: Modify Makefiles to download CodeSourcery toolchain and the TI graphics binaries... X-Git-Url: https://rtime.felk.cvut.cz/gitweb/eurobot/public.git/commitdiff_plain/04c3cbc6393f91ac75a0dc380deaf30f016ddab8 Modify Makefiles to download CodeSourcery toolchain and the TI graphics binaries for Gumstix 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. --- diff --git a/build/gumstix/config.target b/build/gumstix/config.target index 4c382699..8c1ccc4c 100644 --- a/build/gumstix/config.target +++ b/build/gumstix/config.target @@ -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 diff --git a/build/gumstix/qt/Makefile.omk b/build/gumstix/qt/Makefile.omk index 2636a949..f7bd9688 100644 --- a/build/gumstix/qt/Makefile.omk +++ b/build/gumstix/qt/Makefile.omk @@ -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 $@ diff --git a/build/gumstix/qt/linux-omap3-g++/qmake.conf b/build/gumstix/qt/linux-omap3-g++/qmake.conf index 999029cd..ad4086d0 100644 --- a/build/gumstix/qt/linux-omap3-g++/qmake.conf +++ b/build/gumstix/qt/linux-omap3-g++/qmake.conf @@ -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