firefly 单独编译linux,编译 SDK

目录

编译 SDK 报错记录

打包固件

编译 SDK 报错记录

参考网站

SDK:FireFly-Rk3288 5.1

编译平台:Ubuntu 16.04

out/host/linux-x86/obj32/lib/libnativehelper.so

报错信息:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed

make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1

make: *** Waiting for unfinished jobs....

解决方案:

参考网站

修改[source_android]/art/build/Android.common_build.mk 如下。

# Host.

ART_HOST_CLANG := false

# Kevin modified below for Ubuntu 16.04

#ifneq ($(WITHOUT_HOST_CLANG),true)

ifneq ($(WITHOUT_HOST_CLANG),false)

# By default, host builds use clang for better warnings.

ART_HOST_CLANG := true

endif

拷贝系统/usr/bin/ld.gold覆盖[source_android]/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld

out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp

报错信息:

build/core/tasks/apicheck.mk:62: recipe for target 'out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp' failed

make: *** [out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp] Error 38

make: *** Waiting for unfinished jobs....

target SharedLib: libskia (out/target/product/rk3288_box/obj/SHARED_LIBRARIES/libskia_intermediates/LINKED/libskia.so)

解决方案:

参考网站

执行命令make update-api

打包固件

编译 SDK 完成后在 [source code]/rockdev/Image-rk3288_box 下有对应的 image 文件。

把该目录的所有文件拷贝到 Windows 下 AndroidTool_Release_v2.35\rockdev\Image 文件夹中。

执行 mkupdate.bat 后就会在当前目录下生成一个 update.img 文件。该文件就是打包好的固件了。

你可能感兴趣的:(firefly,单独编译linux)