2014年8月20日 星期三

Build NonHlos

OS: Ubuntu 12.04 Desktop 64bit
安裝compile環境:
Step1: 去QC下載Hexagon與ARM的compiler
Step2(HEXAGON): unzip 72-NB910-xxx.zip to [temp_dir]
Step3(HEXAGON): cd [temp_dir] and chmod 777 Install_HEXAGON_Tools_linux_xxxx.bin
Step4(HEXAGON): ./Install_HEXAGON_Tools_linux_xxxx.bin 並依指示安裝
Step5(ARM_CC): tar -zxvf DS500-PA-xxxxx-xxx-xxx(for Linux).tgz to [temp_dir]
Step6(ARM_CC): cd [temp_dir]/Installer && ./setup.sh


以上假定兩者都安裝在 HOME目錄中, 即:
$(HOME)/ARM_Compiler_5
$(HOME)/Qualcomm/HEXAGON_Tools/5.0.x
注意: ARM Compile需要另安裝一個 license server (此假定在安裝在 主機: 192.168.0.1)

請依各自安裝目錄, 自行修改下方 setup.sh檔內容:
export  COMPILE_TOOLS_ROOT=$HOME
export  HEXAGON_ROOT=$COMPILE_TOOLS_ROOT/Qualcomm/HEXAGON_Tools
export  HEXAGON_RTOS_RELEASE=5.0.xxxx(自行設定安裝的版本為何?)
export  HEXAGON_Q6VERSION=v5
export  HEXAGON_IMAGE_ENTRY=0x08000000
export  ARMTOOLS=ARMCT5.01
export  ARMROOT=$COMPILE_TOOLS_ROOT/ARM_Compiler_5
export  ARM_COMPILER_PATH=$ARMROOT/bin64
export  ARMHOME=$ARMROOT
export  ARMLIB=$ARMROOT/lib
export  ARMINCLUDE=$ARMROOT/include
export  ARMBIN=$ARMROOT/bin64
export  ARMINC=$ARMINCLUDE
export  ARMLMD_LICENSE_FILE=8224@192.168.0.1
export  SCONS_MAX_NUM_JOBS=1
export  PYTHON_PATH=/usr/bin/python
export  PYTHONPATH=/usr/bin/python
export  MAKE_PATH=/usr/bin/make
export  PATH=$MAKE_PATH:$ARM_COMPILER_PATH:$HEXAGON_ROOT/$HEXAGON_RTOS_RELEASE/qc/bin:$HEXAGON_ROOT/$HEXAGON_RTOS_RELEASE/gnu/bin:$PATH:PYTHONPATH


===================  ADSP compile ===========================
source  setenv.sh
cd [target2nonHlos_dir]/adsp_proc/build
python  ./build.sh

===================  Modem compile ===========================
source  setenv.sh
cd [target2nonHlos_dir]/modem_proc/build/ms
./build.sh 8974.gen.prod BUILD_VER=1022 -k

===================  Debug compile ===========================
cp  setenv.sh  [target2nonHlos_dir]/debug_image/build/ms
source setenv.sh
cd  [target2nonHlos_dir]/debug_image/build/ms
./build.sh  TARGET_FAMILY=8974  BUILD_ID=AAAAANAZ  BUILD_VER=8   BUILD_MIN=1  sdi

===================  RPM compile ===========================
cp  setenv.sh  [target2nonHlos_dir]/rpm_proc/build
source setenv.sh
cd  [target2nonHlos_dir]/rpm_proc/build
./build.sh

===================  TZ compile ===========================
cp  setenv.sh  [target2nonHlos_dir]/trustzone_images/build/ms
source setenv.sh
cd  [target2nonHlos_dir]/trustzone_images/build/ms
./build.sh  CHIPSET=msm8974  tz  sampleapp  tzbsp_no_xpu  playready  widevine  isdbtmm  securitytest  keymaster  commonlib  mobicore  sse   securemm

===================  WCNSS compile ===========================
cp  setenv.sh  [target2nonHlos_dir]/wncss_proc/core/bsp/build/
source setenv.sh
cd  [target2nonHlos_dir]/wcnss_proc/Pronto/bsp/build
./wncss_build.sh  8974  pronto  BUILD_ID=SCAQBAZ

===================  Bootimg compile ===========================
source  setenv.sh
cd  [target2nonHlos_dir]/boot_images/build/ms
./build.sh  TARGET_FAMILY=8974  --prod


沒有留言:

張貼留言