xf.li | bfc6e71 | 2025-02-07 01:54:34 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | #TOPDIR_AP define in project/pubconf.mk |
| 4 | export TOPDIR=${TOPDIR_AP}/.. |
| 5 | export CP_ROOT_DIR=${TOPDIR}/cp |
| 6 | export PUB_ROOT_DIR=${TOPDIR}/pub |
| 7 | export CROSS_ROOT=${TOPDIR}/build/compiler/${CROSS_COMPILE_VERSION} |
| 8 | export CROSS_COMPILE=${CROSS_ROOT}/usr/bin/${CROSS_COMPILE_PREFIX} |
| 9 | export CROSS_COMPILE_LIB=$(${CROSS_COMPILE}gcc -print-libgcc-file-name) |
| 10 | export CROSS_COMPILE_LIB_KERNEL=$(${CROSS_COMPILE}gcc -print-file-name=${LIBGCC_KERNEL}) |
| 11 | export CROSS_COMPILE_LIBGCC_LIB=$(${CROSS_COMPILE}gcc -print-file-name=libgcc_s.so) |
| 12 | export CROSS_COMPILE_LIBCPP_LIB=$(${CROSS_COMPILE}gcc -print-file-name=libstdc++.so) |
| 13 | export CROSS_COMPILE_INCLUDE_PATH=$(${CROSS_COMPILE}gcc -print-file-name=include) |
| 14 | export CROSS_COMPILE_INCLUDE_FIXED_PATH=$(${CROSS_COMPILE}gcc -print-file-name=include-fixed) |
| 15 | export CROSS_COMPILE_CRTBEGIN=$(${CROSS_COMPILE}gcc -print-file-name=crtbeginT.o) |
| 16 | export CROSS_COMPILE_CRTEND=$(${CROSS_COMPILE}gcc -print-file-name=crtend.o) |
| 17 | export CROSS_COMPILE_SYSROOT=$(${CROSS_COMPILE}gcc -print-sysroot) |
| 18 | export PATH=${TOPDIR}/build/utils:${CROSS_ROOT}/usr/bin:$PATH |
| 19 | #export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CROSS_ROOT}/usr/lib |
| 20 | export LC_ALL=C |
| 21 | |
| 22 | export CC=${CROSS_COMPILE}gcc |
| 23 | export CXX=${CROSS_COMPILE}g++ |
| 24 | export AR=${CROSS_COMPILE}ar |
| 25 | export LD=${CROSS_COMPILE}ld |
| 26 | export STRIPTOOL=${CROSS_COMPILE}strip |
| 27 | export RANLIB=${CROSS_COMPILE}ranlib |
| 28 | export COMMON_BASE_MK=${TOPDIR_AP}/build/base.mk |
| 29 | export COMMON_MK=${TOPDIR_AP}/build/common.mk |
| 30 | |
| 31 | export YUICOMPRESSOR=${TOPDIR}/build/utils/yuicompressor-2.4.8.jar |
| 32 | |
| 33 | export OUTPUT_DIR=${TOPDIR_AP}/output |
| 34 | export BUILD_DIR=${TOPDIR_AP}/build |
| 35 | export ROOTFS_DIR=${TOPDIR_AP}/output/rootfs |
| 36 | export RECOVERYFS_DIR=${TOPDIR_AP}/output/recoveryfs |
| 37 | export CAP_ROOTFS_DIR=${TOPDIR_AP}/output/caprootfs |
| 38 | export IMAGEFS_DIR=${TOPDIR_AP}/output/imagefs |
| 39 | export NVROFS_DIR=${TOPDIR_AP}/output/nvrofs |
| 40 | export USERDATA_DIR=${TOPDIR_AP}/output/userdata |
| 41 | export RESOURCE_DIR=${TOPDIR_AP}/output/resource |
| 42 | export OEM_FS_DIR=${TOPDIR_AP}/output/oem |
| 43 | export LINUX_VER=linux-3.4.x |
| 44 | export LOCALVERSION="" |
| 45 | export STAGEDIR=${TOPDIR_AP}/staging |
| 46 | export LIBC_DIR=${TOPDIR_AP}/libc/${LIBC_TYPE} |
| 47 | |
| 48 | export ROMFSINST=${TOPDIR_AP}/build/romfs-inst.sh |
| 49 | export ROMFSDIR=${ROOTFS_DIR} |
| 50 | export IMAGE_DIR=${OUTPUT_DIR}/images |
| 51 | |
| 52 | export LINUX_DIR=${TOPDIR_AP}/os/linux/${LINUX_VER} |
| 53 | |
| 54 | export PS_BUILD_DIR=${TOPDIR}/cp/ps/project/${CHIP_NAME}/prj_evb/build/linux |
| 55 | |
| 56 | export APP_DIR=${TOPDIR_AP}/app |
| 57 | export APP_CFG_MK=${APP_DIR}/config_app.mk |
| 58 | export LIB_DIR=${TOPDIR_AP}/lib |
| 59 | export LIB_CFG_MK=${LIB_DIR}/config_lib.mk |
| 60 | export ZTE_PS_LINK_SCRIPT=${BUILD_DIR}/libps_libs.mk |
| 61 | |
| 62 | export BINS_AP_DIR=${TOPDIR}/allbins/${CHIP_NAME}/${PRJ_NAME}/ap |
| 63 | |
| 64 | export zte_app_mak=${COMMON_MK} |
| 65 | export zte_lib_mak=${COMMON_MK} |
| 66 | export zte_lib_path=${LIB_DIR} |
| 67 | export zte_app_path=${APP_DIR} |
| 68 | |
| 69 | cd ${TOPDIR_AP}; make $* |