PageRenderTime 102ms CodeModel.GetById 40ms app.highlight 3ms RepoModel.GetById 37ms app.codeStats 0ms

/tools/cross-build/env.sh

http://ftk.googlecode.com/
Shell | 85 lines | 16 code | 10 blank | 59 comment | 0 complexity | c3787e6ab194b1c6ec32eb4a7f9a8096 MD5 | raw file
 1#broncho 1900
 2#######################################################
 3#export ARCH=arm
 4#export HOST_PARAM=--host=arm-linux
 5##export TARGET_CC=arm-linux-gcc
 6#export PATH=/usr/local/arm-linux-4.1.1/bin/:$PATH
 7
 8#sh
 9#######################################################
10export ARCH=sh4
11export HOST_PARAM=--host=sh4-linux
12export TARGET_CC=sh4-linux-gcc
13export PATH=/opt/STM/STLinux-2.3/devkit/sh4/bin/:$PATH
14export TARGET_CFLAGS="-DFTK_FONT_SIZE=32"
15
16#openmoko
17#######################################################
18#export ARCH=arm
19#export HOST_PARAM=--host=arm-linux
20#export TARGET_CC=arm-linux-gcc
21#export PATH=/usr/local/openmoko/arm/bin/:$PATH
22
23#mini4020
24#######################################################
25#export ARCH=arm
26#export HOST_PARAM=--host=arm-linux
27#export TARGET_CC=arm-linux-gcc
28#export PATH=/usr/local/arm/3.3.2/bin/:$PATH
29
30#jz4740
31#######################################################
32#export ARCH=mipsel
33#export HOST_PARAM=--host=mipsel-linux
34#export TARGET_CC=mipsel-linux-gcc
35#export PATH=/work/board/jz/mipseltools-gcc412-glibc261/bin:$PATH
36
37#ben
38#######################################################
39#export ARCH=mipsel
40#export HOST_PARAM=--host=mipsel-openwrt-linux
41#export TARGET_CC=mipsel-openwrt-linux-gcc
42#export PATH=/work/board/jz/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/bin:$PATH
43
44#zoran
45#######################################################
46#export ARCH=mipsisa32
47#export TARGET_CFLAGS="-DUSE_FB_ACTIVATE_ALL -DFTK_FONT_SIZE=20"
48#export HOST_PARAM=--host=mipsisa32-linux
49#export TARGET_CC=mipsisa32-linux-gcc
50#export PATH=/opt/timesys/toolchains/mipsisa32-linux/bin:$PATH
51#export WITH_BACKEND="--with-backend=linux-dfb"
52
53#codesourery
54#######################################################
55#export ARCH=arm
56#export HOST_PARAM=--host=arm-none-linux-gnueabi
57#export TARGET_CC=arm-none-linux-gnueabi-gcc
58#export PATH=/root/CodeSourcery/Sourcery_G++_Lite/bin/:$PATH
59
60#sigma, 
61# maybe you need change the path.
62#######################################################
63#cd /home/smp/smp86xx_toolchain_2.8.3.0 && source toolchain-path.env && cd -
64#cd /home/smp/mrua_SMP8634_2.8.3.0_GCC4_dev.mips && source MRUA.env && cd -
65#export ARCH=mipsel
66#export HOST_PARAM=--host=mipsel-linux
67#export TARGET_CC=mipsel-linux-gcc
68#export SIGMA_OBJS="$RUA_DIR/samples/dbgimplementation.o $RUA_DIR/samples/rmmmimplementation.o $RUA_DIR/samples/get_time.o $RUA_DIR/samples/get_key.o $RUA_DIR/samples/process_key.o $RUA_DIR/samples/parse_display_cmdline.o $RUA_DIR/samples/parse_video_cmdline.o $RUA_DIR/samples/parse_capture_cmdline.o $RUA_DIR/samples/parse_audio_cmdline.o $RUA_DIR/samples/parse_playback_cmdline.o $RUA_DIR/samples/osdlib.o $RUA_DIR/samples/dvi_hdmi.o $RUA_DIR/samples/dvi_hdmi_update.o $RUA_DIR/samples/dss_sha.o $RUA_DIR/samples/boot_osd.o $RUA_DIR/samples/rminputstream.o $RUA_DIR/samples/parsemp4dsi.o $RUA_DIR/samples/bitmaps.o $RUA_DIR/samples/rmmemfile.o $RUA_DIR/samples/ccparse.o $RUA_DIR/samples/bcc_init.o $RUA_DIR/samples/bcc_feed.o $RUA_DIR/samples/bcc_close.o $RUA_DIR/samples/psfdemux_drm.o $RUA_DIR/samples/psfdemux_parsing.o $RUA_DIR/samples/outports_options.o $RUA_DIR/samples/checksum.o $RUA_DIR/samples/mp4descriptors.o $RUA_DIR/samples/mp4scene.o $RUA_DIR/samples/rmttx.o $RUA_DIR/samples/rua_memory.o $RUA_DIR/samples/rmpfs.o $RUA_DIR/samples/asfdemux_callback.o $RUA_DIR/samples/ad9380.o $RUA_DIR/samples/cpu_uart_gpio.o $RUA_DIR/samples/i2c.o $RUA_DIR/samples/mcp23008.o $RUA_DIR/samples/msp4450g.o $RUA_DIR/samples/tw9919eid.o"
69#export SIGMA_CFLAGS="-I$RUA_DIR/samples/ -DWITH_PROD=1 -DEM86XX_CHIP=EM86XX_CHIPID_TANGO2 -DEM86XX_REVISION=6 -DDEMUX_PSF=1 -DEM86XX_MODE=EM86XX_MODEID_STANDALONE -DWITH_IRQHANDLER_BOOTLOADER=1 -DWITH_XLOADED_UCODE=1  -DGCC4_TOOLCHAIN -DWITH_RM_FILE_JPEG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -mips32r2 -Wa,-mips32r2 -I$RUA_DIR -I. -D_REENTRANT -I.. -U_DEBUG -DNDEBUG -DRMPLATFORM=RMPLATFORMID_TANGO2 -Wundef -Wall -Wchar-subscripts -Wsign-compare -Wuninitialized -O -Wno-missing-braces -Wnested-externs -Wmissing-declarations -Wmissing-prototypes"
70#export SIGMA_LIBS="-L$RUA_DIR/lib -Xlinker --start-group -ldcc -lrmmonitoring -lrmvdemux -lrmjpeg -lrmungif -lrmpng -lrmzlib -lrmhttp -lrmscc -lrmavicore -lrmmp4api -lrmmp4 -lrmmp4core -lrmdescriptordecoder -lrmmpeg4framework -lrmrtk86 -lrmwmaprodecoder -lrmwmaprodecodercore -lrmasfdemux -lrmasfdemuxcore -lrmstreamingprotocols -lrmcpputils -lrmcapture -lrmcw -lrmcore -lrmcdfs -lrua -lllad -lrmdtcpinterface -lrmdemuxwritekeyapi -lrmsoftmixer -lrmwmdrmndstub -lgbus -lrmdrm -Xlinker --end-group  -ldl -rdynamic"
71
72export BUILD_DIR=$PWD/$ARCH
73export PREFIX=/opt/ftk-$ARCH
74export STAGING=${BUILD_DIR}/staging
75export DIST=${BUILD_DIR}/dist
76export PKG_CONFIG_PATH=${STAGING}/${PREFIX}/lib/pkgconfig/
77export LDFLAGS="-L${STAGING}/${PREFIX}/lib -Wl,-rpath -Wl,${PREFIX}/lib"
78export CPPFLAGS="-I${STAGING}/${PREFIX}/include $TARGET_CFLAGS"
79export CFLAGS=$CPPFLAGS 
80export CXXFLAGS=$CPPFLAGS
81export DIRS="--libdir=${STAGING}/lib --includedir=${STAGING}/include"
82#export CAIRO=cairo
83#export TSLIB=tslib
84export FTK_CONF_OPTION="--disable-cairo --disable-tslib --disable-profile --with-fontengine=freetype"
85