Commit d4c51f13 authored by T-Firefly's avatar T-Firefly

Init the Firefly-RK3328 7.1 SDK

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

This diff is collapsed.
*~
*.bak
*.patch
*.swo
*.swp
.tags*
cscope.*
ncscope.*
buildspec.mk
out/
rockdev/
FFTools/mkupdate/Image
FFTools/mkupdate/unpack/
fw_config
kitchen/
hardware/rockchip/hwcomposer/version.h
hardware/rockchip/libgralloc/version.h
hardware/rockchip/librga/version.h
hardware/rockchip/omx_il/include/rockchip/git_info.h
include/config
include/generated
kernel/drivers/gator/gator_src_md5.h
kernel/drivers/gpu/arm/mali400/mali/__malidrv_build_info.c
kernel/include/config/auto.conf
kernel/include/config/auto.conf.cmd
kernel/include/config/tristate.conf
kernel/include/generated/autoconf.h
kernel/include/generated/compile.h
kernel/kernel.img
kernel/kernel/x509_certificate_list
kernel/resource.img
kernel/scripts/kallsyms
kernel/scripts/mod/modpost
kernel/tools/gator/daemon/defaults_xml.h
kernel/tools/gator/daemon/escape
kernel/tools/gator/daemon/events.xml
kernel/tools/gator/daemon/events_xml.h
u-boot/arch/arm/include/asm/arch
u-boot/include/autoconf.mk
u-boot/include/autoconf.mk.dep
u-boot/include/config/auto.conf.cmd
u-boot/include/config/uboot.release
u-boot/include/generated/timestamp_autogenerated.h
u-boot/include/generated/version_autogenerated.h
u-boot/System.map
u-boot/tools/checksum
vendor/rockchip/common/wifi/modules/8188eu.ko
vendor/rockchip/common/wifi/modules/8723bs.ko
vendor/rockchip/common/wifi/modules/8822bs.ko
vendor/rockchip/common/wifi/modules/bcmdhd.ko
build/soong/root.bp
\ No newline at end of file
#!/bin/bash
set -e
. build/envsetup.sh >/dev/null && setpaths
ANDROID_ROOT="$(get_abs_build_var)"
TARGET_PRODUCT=`get_build_var TARGET_PRODUCT`
IMG_ROOT="$ANDROID_ROOT/rockdev/Image-$TARGET_PRODUCT"
IMG_LIST="parameter.txt MiniLoaderAll.bin trust.img uboot.img resource.img kernel.img boot.img recovery.img misc.img system.img"
SRC_RAR_FILE="$(dirname $0)/AndroidTool.rar"
DST_RAR_PATH="$ANDROID_ROOT/rockdev/Image-$TARGET_PRODUCT/"
if [ -d $IMG_ROOT ];then
if [ ! -e $SRC_RAR_FILE ];then
echo "Make sure you have file \"$SRC_RAR_FILE\"!"
exit 2
fi
for img in $IMG_LIST
do
if [ ! -e $IMG_ROOT/$img ];then
echo "Make sure you have file \"$img\"!"
exit 3
fi
done
else
echo "Make sure you have directory \"$IMG_ROOT\"!"
exit 1
fi
which rar > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Make sure you have tool \"rar\""
exit 4
fi
if [ "z${1}" != "z" ] ; then
DST_RAR_NAME="${1}.rar"
else
DST_RAR_NAME="Firefly-RK3399_Android$(get_build_var PLATFORM_VERSION)_$(date -d today +%y%m%d).rar"
fi
DST_RAR_NAME=$(echo $DST_RAR_NAME | sed s/[[:space:]]//g)
cp "$SRC_RAR_FILE" "$IMG_ROOT/$DST_RAR_NAME"
cd $IMG_ROOT
# put all the *img and update log into rockdev/Image/
rar a -ap"rockdev/Image/" $DST_RAR_NAME $IMG_LIST
echo -e "\nMaking AndroidTools.rar:\n$(readlink -f ${IMG_ROOT}/${DST_RAR_NAME})\n"
#!bin.bash
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
source build/envsetup.sh
#!/bin/bash
set -e
usage()
{
cat << EOF
usage:
$(basename $0) [-u|k|a] [-d dts_file_name] [-l lunch] [-j make_thread]
-u|k|a: make uboot|kernel|android alone, if this arg is not exist, make all images default
-d: kernel dts name
-l: lunch name when make android
-j: make theard num, if have not this arg, default theard is 1
NOTE: Run in the path of SDKROOT
EOF
if [ ! -z $1 ] ; then
exit $1
fi
}
MAKE_THEARD=1
KERNEL_DTS='rk3328-firefly-mini'
USER_LUNCH='rk3328_firefly_box-userdebug'
MAKE_MODULES=''
MAKE_ALL=true
while getopts "ukahj:d:l:" arg
do
case $arg in
u|k|a)
MAKE_MODULES=$arg
MAKE_ALL=false
;;
j)
MAKE_THEARD=$OPTARG
;;
d)
KERNEL_DTS=$OPTARG
;;
l)
USER_LUNCH=$OPTARG
;;
h)
usage 0
;;
?)
usage 1
;;
esac
done
FFTOOLS_PATH=$(dirname $0)
if $MAKE_ALL || [ $MAKE_MODULES = 'u' ]; then
pushd u-boot/
make rk3328_box_defconfig
make ARCHV=aarch64 -j $MAKE_THEARD
popd
fi
if $MAKE_ALL || [ $MAKE_MODULES = 'k' ]; then
pushd kernel/
make ARCH=arm64 rk3328_firefly_defconfig
make ARCH=arm64 "${KERNEL_DTS}.img" -j $MAKE_THEARD
popd
fi
if $MAKE_ALL || [ $MAKE_MODULES = 'a' ]; then
source ${FFTOOLS_PATH}/build.sh
lunch "$USER_LUNCH"
make installclean
make -j $MAKE_THEARD
./mkimage.sh
fi
echo "Firefly-RK3328 make images finish!"
#!/bin/bash
set -e
usage()
{
cat << EOF
usage:
$(basename $0) [update_img_name]
-n: dest update.img name, if have not this arg, there are an default name, like:
Firefly-RK3328_Android7.1_YYMMDD
NOTE: Run in the path of SDKROOT
EOF
if [ ! -z $1 ] ; then
exit $1
fi
}
if [ "${1:0:1}" == "-" ]; then
if [ "$1" == "-h" ]; then
usage 0
else
usage 1
fi
elif [ ! -z $1 ] ; then
UPDATE_USER_NAME=$1
fi
. build/envsetup.sh >/dev/null && setpaths
#set -x
TARGET_PRODUCT=`get_build_var TARGET_PRODUCT`
echo -e "TARGET_PRODUCT=$TARGET_PRODUCT\n"
TARGET_VERSION=`get_build_var PLATFORM_VERSION`