运行Android 13.0的i.MX8M nano evk上的PN7160 NFC控制移植编译报错

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

运行Android 13.0的i.MX8M nano evk上的PN7160 NFC控制移植编译报错

1,527 Views
ethan_dang1
Contributor III

我在使用i.MX8M nano evk和PN7160进行 NFC功能开发,但是按照AN13189-PN7160 Android porting guide.pdf移植后编译报错:

build/make/core/Makefile:72: error: overriding commands for target `out/target/product/evk_8mn/system/etc/libnfc-nci.conf', previously defined at out/soong/installs-evk_8mn.mk:123108
11:13:57 ckati failed with: exit status 1

#### failed to build some targets (01:24 (mm:ss)) ####

移植过程可见我做的笔记: https://note.youdao.com/s/OjiTw9li

报错日志可见附件,不知是哪个步骤出错了。

0 Kudos
Reply
2 Replies

1,468 Views
ethan_dang1
Contributor III

我在~/android_build/device/nxp/imx8m/evk_8mn/BoardConfig.mk中增加了一句

BUILD_BROKEN_DUP_RULES := true
现在不报overriding commands for target错误了,编译继续进行后出现了其它错误:

 

[ 95% 615/644] including tools/platform-compat/Android.mk ...
[ 95% 616/644] including tools/test/connectivity/Android.mk ...
[ 95% 617/644] including tools/test/graphicsbenchmark/Android.mk ...
[ 95% 618/644] including tools/tradefederation/prebuilts/test_harness/Android.mk ...
[ 96% 619/644] including vendor/nxp-opensource/imx-lib/pxp/Android.mk ...
[ 96% 620/644] including vendor/nxp-opensource/imx/evs/evs_app/Android.mk ...
[ 96% 621/644] including vendor/nxp-opensource/imx/libcamera3/Android.mk ...
[ 96% 622/644] including vendor/nxp-opensource/imx/libsensors/Android.mk ...
[ 96% 623/644] including vendor/nxp-opensource/imx/libsensors_sensorhub/Android.mk ...
[ 96% 624/644] including vendor/nxp-opensource/imx/opencl-2d/Android.mk ...
[ 97% 625/644] including vendor/nxp-opensource/kernel_imx/drivers/staging/greybus/tools/Android.mk ...
[ 97% 626/644] including vendor/nxp-opensource/libdrm-imx/data/Android.mk ...
[ 97% 627/644] including vendor/nxp-opensource/nn-imx/Android.mk ...
18:38:42.532872 git.c:439               trace: built-in: git status
18:38:43.374727 git.c:439               trace: built-in: git log -n 1 '--format=%h'
18:38:43.419000 git.c:439               trace: built-in: git diff --quiet HEAD

-Werror -fexceptions -D'OVXLIB_API=__attribute__((visibility("default")))' -Wno-unused-parameter -Wno-implicit-fallthrough -frtti -DANDROID_SDK_VERSION=33 -DGIT_STRING='54889a68'
[ 97% 628/644] including vendor/nxp-opensource/nxp-mwifiex/mxm_wifiex/wlan_src/mapp/mlanconfig/Android.mk ...
[ 97% 629/644] including vendor/nxp-opensource/nxp-mwifiex/mxm_wifiex/wlan_src/mapp/mlanutl/Android.mk ...
[ 97% 630/644] including vendor/nxp/fsl-codec/Android.mk ...
[ 97% 631/644] including vendor/nxp/fsl-proprietary/apks/Android.mk ...
[ 98% 632/644] including vendor/nxp/fsl-proprietary/bcm/Android.mk ...
[ 98% 633/644] including vendor/nxp/fsl-proprietary/fsl-dpu/Android.mk ...
[ 98% 634/644] including vendor/nxp/fsl-proprietary/gpu-viv/Android.mk ...
[ 98% 635/644] including vendor/nxp/fsl-proprietary/isp/Android.mk ...
[ 98% 636/644] including vendor/nxp/fsl-proprietary/test/Android.mk ...
[ 98% 637/644] including vendor/nxp/imx_android_mm/CactusPlayer/Android.mk ...
[ 99% 638/644] including vendor/nxp/imx_android_mm/codec2/store/registry/Android.mk ...
[ 99% 639/644] including vendor/nxp/linux-firmware-imx/firmware/Android.mk ...
[ 99% 640/644] including vendor/nxp/nfc/FactoryTestApp/Android.mk ...
[ 99% 641/644] including vendor/nxp/nfc/T4TDemo/Android.mk ...
[ 99% 642/644] including out/soong/late-evk_8mn.mk ...
[ 99% 643/644] finishing build rules ...
[100% 644/644] writing build rules ...
build/make/core/Makefile:72: warning: overriding commands for target `out/target/product/evk_8mn/system/etc/libnfc-nci.conf'
out/soong/installs-evk_8mn.mk:123108: warning: ignoring old commands for target `out/target/product/evk_8mn/system/etc/libnfc-nci.conf'
out/build-evk_8mn-package.ninja is missing, regenerating...
[ 99% 645/647] initializing packaging system ...
[ 99% 646/647] including distdir.mk ...
[100% 647/647] writing packaging rules ...
Starting ninja...
FAILED: ninja: 'out/target/product/evk_8mn/obj/MXMWIFI_OBJ/mlan.ko', needed by 'out/target/product/evk_8mn/obj/PACKAGING/depmod_vendor_stripped_intermediates/mlan.ko', missing and no known rule to make it
18:43:58 ninja failed with: exit status 1

#### failed to build some targets (48:06 (mm:ss)) ####
0 Kudos
Reply

1,451 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @ethan_dang1 

 

You can go into out/soong/installs-evk_8mn.mk and comment out error line, then should work.  Anyway this should not be a problem, since we can push config files later.

 

Regards

Daniel

0 Kudos
Reply