问题
I'm trying to build AOSP for non - supported device (surnia - Moto E2 2015 LTE)
.
I solved lots of problems earlier but now I have one that I can't avoid. I saw a lot of people had that problem, but their was just warning...
What can I do? Or could you help me finding surnia device tree (but for stock AOSP)?
[100% 441/441] writing build rules ...
FAILED:
build/make/core/Makefile:28: error: overriding commands for target `out/target/product/surnia/system/vendor/lib/libHevcSwDecoder.so', previously defined at build/make/core/base_rules.mk:480
19:07:53 ckati failed with: exit status 1
#### failed to build some targets (01:22 (mm:ss)) ####
回答1:
I've recently encountered a similar error. It's because of a duplicate entry in PRODUCT_COPY_FILES
which both are trying to copy some file to the same destination out/target/product/surnia/system/vendor/lib/libHevcSwDecoder.so
. This will cause en error.
For me, the duplicate entry was in the following file:
<AOSP_ROOT>/vendor/google_devices/<DEVICE_CODENAME>/<DEVICE_CODENAME>-vendor-blobs.mk
For you, I think you should be looking for surnia-vendor-blobs.mk
. Open this file and find the PRODUCT_COPY_FILES
entry that has the destination out/target/product/surnia/system/vendor/lib/libHevcSwDecoder.so
, then you can remove it to resolve the error.
This is a workaround, unfortunately I couldn't figout out what's the root problem.
by the way, Welcome Peter to Stack Overflow!
来源:https://stackoverflow.com/questions/59543058/aosp-error-overriding-commands-for-target-previously-defined-at