]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - build/gumstix/qt/Makefile.omk
Modify Makefiles to download CodeSourcery toolchain and the TI graphics binaries...
[eurobot/public.git] / build / gumstix / qt / Makefile.omk
1 # -*- makefile -*-
2
3 library-pass_HOOKS = install-qt
4
5 ifeq ($(wildcard $(SOURCES_DIR)/OMAP35x_Graphics_SDK_setuplinux_3_00_00_09.bin),)
6         include-pass_HOOKS = get-powervr install-powervr
7 else
8         include-pass_HOOKS = install-powervr
9 endif
10
11 ifeq ($(wildcard $(SOURCES_DIR)/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2),)
12         default-config-pass_HOOKS = get-ti extract-ti
13 else
14         default-config-pass_HOOKS = extract-ti
15 endif
16         
17 config.status: $(SOURCES_DIR)/qt-src/configure
18         cp -arv $(SOURCES_DIR)/linux-omap3-g++ $(SOURCES_DIR)/qt-src/mkspecs/qws
19         sed -i "s#^QMAKE_CSTOOL_DIR  =.*\$$#QMAKE_CSTOOL_DIR  = $(SOURCES_DIR)/arm-2008q1#" $(SOURCES_DIR)/qt-src/mkspecs/qws/linux-omap3-g++/qmake.conf
20         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
21         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
22         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
23         $< -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
24
25 lib/libQtCoreE.so: config.status
26         $(MAKE)
27
28 $(OUTPUT_DIR)/_compiled/qt/libQtCoreE.so: lib/libQtCoreE.so
29         echo $@: $^
30         $(MAKE) install
31         touch $@
32
33 .PHONY: install-qt
34 install-qt: $(OUTPUT_DIR)/_compiled/qt/libQtCoreE.so
35
36 get-ti:
37         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
38         touch $@
39
40 extract-ti:
41         tar -xjf $(SOURCES_DIR)/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 -C $(SOURCES_DIR)
42         touch $@
43
44 get-powervr:
45         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
46         chmod u+x $(SOURCES_DIR)/OMAP35x_Graphics_SDK_setuplinux_3_00_00_09.bin
47         touch $@
48                 
49 install-powervr:
50         HOME=$(SOURCES_DIR) $(SOURCES_DIR)/OMAP35x_Graphics_SDK_setuplinux_3_00_00_09.bin --mode console
51         touch $@