从迅为iTop-4418源代码中移除Android源代码

迅为iTop-4418开发板的源码文件将编译器、Android 4.4、Linux内核、uBoot源码构成了一个大包,如果您不需要Android源代码,可以进入解包源码包后得到的android目录中,删除以下目录:

abi
art
bionic
cts
dalvik
device/asus
device/common
device/generic
device/google
device/lge
device/nexell/.git
device/nexell/tools/android-sdk_r22.3-linux.tgz
device/sample
device/samsung
developers
development
docs
external
frameworks
hardware/akm
hardware/broadcom
hardware/espressif
hardware/invensense
hardware/libhardware
hardware/libhardware_legacy
hardware/mediatek
hardware/qcom
hardware/realtek
hardware/ril
hardware/ti
libcore
libnativehelper
linux/prototype/s5p4418/.git
linux/prototype/s5p6818/.git
ndk
packages
pdk
prebuilts/clang
prebuilts/devtools
prebuilts/eclipse
prebuilts/ndk
prebuilts/python
prebuilts/qemu-kernel
prebuilts/runtime
prebuilts/sdk
sdk
system
vendor/google

随后,将android目录中的build_android.sh的下列代码移除或通过在行首加“#”的方式进行注释,跳过对Android的编译。

if [ "$kernel_type" = "android" ]
then
    build_android
fi
it
除非特别注明,本页内容采用以下授权方式: Creative Commons Attribution-ShareAlike 3.0 License