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