sdk-hwV1.3/target/allwinner/v851s-fastboot_h13_pv/v851s_fastboot_h13_pvk-setu...

146 lines
2.8 KiB
Bash
Executable File

#
# Copyright (C) 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This file is executed by build/envsetup.sh, and can use anything
# defined in envsetup.sh.
#
# In particular, you can add lunch options with the add_lunch_combo
# function: add_lunch_combo generic-eng
function mkmpp
{
local curDir=$(pwd)
croot
make package/allwinner/eyesee-mpp/external/compile $@
make package/allwinner/eyesee-mpp/system/public/compile $@
make package/allwinner/eyesee-mpp/middleware/compile $@
if [ "x$?" == "x0" ];then
echo mpp_install
make package/install $@
else echo mpp_compile_failed,skip_install;
fi
cd ${curDir}
}
: <<'COMMENTBLOCK'
function mkapp
{
local curDir=$(pwd)
croot
make package/allwinner/eyesee-mpp/framework/compile $@
if [ "x$?" == "x0" ];then
make package/allwinner/eyesee-mpp/custom_aw/compile $@
if [ "x$?" == "x0" ];then
make package/install $@
else echo app_compile_filed;
fi
else echo frmw_compile_failed;
fi
cd ${curDir}
}
COMMENTBLOCK
function mkall()
{
local curDir=$(pwd)
croot
make $@
cd ${curDir}
}
function cleanmpp()
{
local curDir=$(pwd)
croot
make package/allwinner/eyesee-mpp/middleware/clean $@
make package/allwinner/eyesee-mpp/system/public/clean $@
make package/allwinner/eyesee-mpp/external/clean $@
cd ${curDir}
}
function cleanapp
{
local curDir=$(pwd)
croot
make package/allwinner/eyesee-mpp/framework/clean $@
cd ${curDir}
}
function cleanall()
{
local curDir=$(pwd)
croot
make package/clean
make target/clean
make distclean
ckernel && rm -rf user_headers
cd ${curDir}
}
cmpp_p ()
{
local curDir=$(pwd);
croot;
cd package/allwinner/eyesee-mpp/middleware
}
cmpp_s ()
{
croot;
cd external/eyesee-mpp/middleware/sun8iw21
}
cfw_p ()
{
croot;
cd package/allwinner/eyesee-mpp/framework
}
cfw_s ()
{
croot;
cd external/eyesee-mpp/framework/sun8iw21
}
cisp ()
{
cmpp_s;
cd ./media/LIBRARY/libisp
}
crtmedia_p ()
{
croot;
cd package/allwinner/rt_media
}
crtmedia_s ()
{
croot;
cd external/fast-user-adapter/rt_media
}
mkfrmw ()
{
local curDir=$(pwd);
croot;
make package/allwinner/eyesee-mpp/framework/compile $@;
cd ${curDir}
}