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