一、build system

LICHEE_TOP_DIR='pwd'

LICHEE_OUT_DIR=${LICHEE_TOP_DIR}/out

LICHEE_TOOLS_DIR=${LICHEE_TOP_DIR}/tools

 

 

LICHEE_PLAT_OUT="${LICHEE_OUT_DIR}/${LICHEE_CHIP}/${LICHEE_PLATFORM}/${out_dir}"

LICHEE_BR_OUT="${LICHEE_PLAT_OUT}/buildroot"

LICHEE_BR_DIR=${LICHEE_TOOLS_DIR}/buildroot

 

cd android/

source build/envsetup.sh

lunch 9

extract-bsp

make -j8

pack

 

LICHEE_DIR=$ANDROID_BUILD_TOP/../lichee

LINUXOUT_DIR=$LICHEE_DIR/out/sun50iw3p1/android/common

LINUXOUT_MODULE_DIR=$LINUXOUT_DIR/lib/modules/*/*

 

export PAHT="$PATH:/home/nansutech/workbench/lifangbo/android/prebuilts/python/linux-x86/2.7.5/bin/"

 

方案一:

cd lichee

.build.sh-->

    tools/build/mkcommon.sh-->

        .buildconfig

            export LICHEE_CHIP=sun50iw3p1

            export LICHEE_PLATFORM=android

            export LICHEE_KERN_VER=linux-3.10

            export LICHEE_ARCH=arm64

            export LICHEE_BOARD=t1

            export LICHEE_BUSINESS=pad

            export LICHEE_CROSS_COMPILER=aarch64-linux-gnu

            export LICHEE_TOOLCHAIN_PATH=/home/alfredzhang/a63_Android7.0/lichee/out/external-toolchain/gcc-aarch64

        source ${BR_SCRIPTS_DIR}/mkcmd.sh-->

            LICHEE_TOP_DIR=`pwd`

            LICHEE_KERN_DIR=${LICHEE_TOP_DIR}/${LICHEE_KERN_VER}

            LICHEE_ARCH_DIR=${LICHEE_KERN_DIR}/${LICHEE_ARCH}

            LICHEE_TOOLS_DIR=${LICHEE_TOP_DIR}/tools

            LICHEE_BR_DIR=${LICHEE_TOOLS_DIR}/buildroot

            LICHEE_SATA_DIR=${LICHEE_TOP_DIR}/SATA

            LICHEE_OUT_DIR=${LICHEE_TOP_DIR}/out

            MKRULE_FILE=${LICHEE_TOOLS_DIR}/build/mkrule

            MKBUSINESS_FILE=${LICHEE_TOOLS_DIR}/build/mkbusiness

            function select_xxx

            function init_xxx

            fucntion mkxxx

./build.sh config

./build.sh [-k <kernel directly>] [-p <chip_os>] [-m <module>]

./build.sh pack

posted on 2020-07-23 16:24  arduino  阅读(343)  评论(0编辑  收藏  举报

导航