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