Eu estou tentando compilar o código-fonte Nougat usando o Ubuntu 16.04. Eu baixei o código fonte do nougat e fiz uma alteração que era necessária para o meu projeto e eu preciso compilar esse código-fonte atualizado. Mas estou recebendo alguns erros sempre que eu compilo o Android.
ninja_wrapper failed.
Tentei resolver este erro executando este comando export USE_NINJA=false
. Mas eu não acho que este é o caminho certo para se livrar desse erro porque eu ainda estou recebendo o mesmo erro. Estes são os passos / comandos que segui:
sudo apt-get install openjdk-8-jdk
sudo apt-get install gcc-arm-linux-gnueabihf \lzop libncurses5-dev \libssl1.0.0 libssl-dev
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip
Até estes eu instalei os pacotes que são necessários para compilar o kernel e o Android. Agora estou executando os comandos para compilar o kernel, o uboot e o Android.
./FFTools/make.sh -k -j8
Saída: -
make[1]: 'arch/arm64/boot/Image' is up to date.
Image: kernel.img is ready
Pack to resource.img successed!
Image: resource.img (with rk3399-firefly.dtb logo.bmp ) is ready
~/proj/firefly-rk3399
Firefly-RK3399 make images finish!
./FFTools/make.sh -u -j8
Saída: -
out:rk3399_loader_v1.08.106.bin
fix opt:rk3399_loader_v1.08.106.bin
merge success(rk3399_loader_v1.08.106.bin)
out:trust.img
merge success(trust.img)
pack input u-boot.bin
pack file size: 485268
crc = 0x87ad1f8d
uboot version: U-Boot 2017.02-RK3399-06 (Jan 29 2018 - 11:06:58)
pack uboot.img success!
~/proj/firefly-rk3399
Firefly-RK3399 make images finish!
Enquanto eu tentei executar este comando: 'src' directory not found
eu recebi os seguintes erros.
1.
FindEmulator: find: 'frameworks/support/design/dummy': No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
FindEmulator: find: 'frameworks/support/transition/dummy': No such file or directory
FindEmulator: find: 'frameworks/support/v17/leanback/dummy': No such file or directory
FindEmulator: find: 'frameworks/support/v17/preference-leanback/dummy': No such file or directory
2.
FindEmulator: find: 'packages/apps/Dialer/InCallUI/src-N': No such file or directory
FindEmulator: find: 'packages/apps/ContactsCommon/src-N': No such file or directory
FindEmulator: find: 'packages/apps/PhoneCommon/src-N': No such file or directo
3.
fatal: Not a git repository: 'packages/apps/TV/.git'
4.
FindEmulator: find: 'packages/services/Car/car-support-lib/dummy': No such file or directory
5.
PRODUCT_COPY_FILES device/rockchip/common/init.rk30board.usb.rc:root/init.rk30board.usb.rc ignored.
PRODUCT_COPY_FILES device/rockchip/common/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown ignored.
PRODUCT_COPY_FILES device/rockchip/common/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/nand/modules/arm/rk30xxnand_ko.ko.3.10.0:root/rk30xxnand_ko.ko ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/nand/modules/arm/drmboot.ko:root/drmboot.ko ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/phone/lib/libreference-ril.so:system/lib/libreference-ril.so ignored.
No private recovery resources for TARGET_DEVICE rk3399_firefly_box
build/core/base_rules.mk:338: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/etc/init/bluetoothtbd.rc'
build/core/base_rules.mk:338: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/etc/init/bluetoothtbd.rc'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/root/init.rc'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/root/init.rc'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/xbin/io'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/xbin/io'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/lib/libreference-ril.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/lib/libreference-ril.so'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/lib64/libreference-ril.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/lib64/libreference-ril.so'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/lib/libjpeghwenc.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/lib/libjpeghwenc.so'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/lib/libjpeghwdec.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/lib/libjpeghwdec.so'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/lib64/libjpeghwenc.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/lib64/libjpeghwenc.so'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/lib64/libjpeghwdec.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/lib64/libjpeghwdec.so'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/bin/chat'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/bin/chat'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/bin/usb_modeswitch'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/bin/usb_modeswitch'
build/core/Makefile:34: warning: overriding commands for target 'out/target/product/rk3399_firefly_box/system/lib/libril-rk29-dataonly.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target 'out/target/product/rk3399_firefly_box/system/lib/libril-rk29-dataonly.so'
Starting build with ninja
ninja: Entering directory '.'
[ 0% 242/34222] Install: out/target/p..._packages/charger_res_images-timestamp
FAILED: /bin/bash -c "out/host/linux-x86/bin/acp -fp out/target/product/rk3399_firefly_box/obj/FAKE/charger_res_images_intermediates/charger_res_images-timestamp out/target/product/rk3399_firefly_box/fake_packages/charger_res_images-timestamp"
acp: unable to remove 'out/target/product/rk3399_firefly_box/fake_packages/charger_res_images-timestamp': Permission denied
[ 0% 242/34222] Copy: out/target/product/rk3399_firefly_box/kernel
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Eu não consegui compilar o Android e, portanto, não consegui gerar o arquivo android.img.