Hello Everyone
I would need some help with an error that i encountered when building AOSP Pie for the VIM1.
I basically have the exact same issue as this guy for the VIM3 but the solutions provided don’t seem to work or i missunderstood something.
( Khadas Community KVIM3(L) - Android 9 build broken with vcode_m2m already defined )
Error Output
[364/959] including home/CENSORED/Desktop/AOSP_KVIM_OUT/target/product/kvim/obj/media_modules/amvdec_ports/test/Android.mk ...
build/make/core/base_rules.mk:260: error:
home/CENSORED/Desktop/AOSP_KVIM_OUT/target/product/kvim/obj/media_modules/amvdec_port/test:
MODULE.TARGET.EXECUTABLES.vcode_m2m already defined by hardware/amlogic/media_modules/drivers/amvdec_ports/test.
Build Setup
I used this to get AOSP Source Code with Khadas Support Khadas Docs
Then
source build/envsetup.sh
export OUT_DIR=/home/CENSORED/Desktop/AOSP_KVIM_OUT
lunch kvim-userdebug
make -j15 otapackage
Outputs
lunch kvim-userdebug
hardware/amlogic/wifi/configs/wifi.mk:43: warning: WIFI_MOUDLE is multiwifi
hardware/amlogic/wifi/configs/wifi.mk:47: warning: WIFI_BUILD_IN is false
hardware/amlogic/bluetooth/configs/bluetooth.mk:20: warning: BLUETOOTH_MODULE is BCMBT
hardware/amlogic/bluetooth/configs/bluetooth.mk:24: warning: BLUETOOTH_INF is not set
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=kvim
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.13.0-44-generic-x86_64-Linux-Mint-20.3
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR1.180610.011
OUT_DIR=/home/CENSORED/Desktop/AOSP_KVIM_OUT
============================================
make -j15 otapackage
hardware/amlogic/wifi/configs/wifi.mk:43: warning: WIFI_MOUDLE is multiwifi
hardware/amlogic/wifi/configs/wifi.mk:47: warning: WIFI_BUILD_IN is false
hardware/amlogic/bluetooth/configs/bluetooth.mk:20: warning: BLUETOOTH_MODULE is BCMBT
hardware/amlogic/bluetooth/configs/bluetooth.mk:24: warning: BLUETOOTH_INF is not set
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=kvim
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.13.0-44-generic-x86_64-Linux-Mint-20.3
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR1.180610.011
OUT_DIR=/home/CENSORED/Desktop/AOSP_KVIM_OUT
============================================
ninja: no work to do.
ninja: no work to do.
device/khadas/kvim/preinstall/preinstall.mk was modified, regenerating...
hardware/amlogic/wifi/configs/wifi.mk:43: warning: WIFI_MOUDLE is multiwifi
hardware/amlogic/wifi/configs/wifi.mk:47: warning: WIFI_BUILD_IN is false
hardware/amlogic/bluetooth/configs/bluetooth.mk:20: warning: BLUETOOTH_MODULE is BCMBT
hardware/amlogic/bluetooth/configs/bluetooth.mk:24: warning: BLUETOOTH_INF is not set
/home/CENSORED/Desktop/AOSP_KVIM_OUT/build-kvim.ninja is missing, regenerating...
hardware/amlogic/wifi/configs/wifi.mk:43: warning: WIFI_MOUDLE is multiwifi
hardware/amlogic/wifi/configs/wifi.mk:47: warning: WIFI_BUILD_IN is false
hardware/amlogic/bluetooth/configs/bluetooth.mk:20: warning: BLUETOOTH_MODULE is BCMBT
hardware/amlogic/bluetooth/configs/bluetooth.mk:24: warning: BLUETOOTH_INF is not set
[5/959] including build/make/Android.mk ...
device/khadas/common/factory.mk:184: warning: echo "radio add dt and bootloader"
device/khadas/common/factory.mk:322: warning: will keep /home/CENSORED/Desktop/AOSP_KVIM_OUT/target/product/kvim/update.img
device/khadas/common/factory.mk:465: warning: will keep /home/CENSORED/Desktop/AOSP_KVIM_OUT/target/product/kvim/kvim-fastboot-flashall-20220909.zip
[318/959] including hardware/amlogic/audio/Android.mk ...
"---------ott audio mode, compiler configure 2 channels output by default--------"
[321/959] including hardware/amlogic/camera/Android.mk ...
eth0: error fetching interface information: Device not found
************************************************************
pdk or not:
target board: gxl
git version: "6f0e07eb7108eddfa253e9563b77d0c8619de81c"
uncomment: 0 files
last changed: "Date: Mon May 10 19:46:57 2021 -0400"
build time: " Fri Sep 9 14:03:50 EDT 2022"
builder name: "CENSORED"
branch name: "* (no branch)"
build mode: userdebug
host name: "CENSORED"
eth0: error fetching interface information: Device not found
host IP: ""
path: "/home/CENSORED/Desktop/SSD/AOSP_KVIM/hardware/amlogic/camera/v3/fake-pipeline2/tests"
************************************************************
[325/959] including hardware/amlogic/gralloc/Android.mk ...
hardware/amlogic/gralloc/Android.mk:79: warning: "the value of GPU_ARCH is utgard"
hardware/amlogic/gralloc/Android.mk:135: warning: "the value of BOARD_RESOLUTION_RATIO is 1080"
hardware/amlogic/gralloc/Android.mk:141: warning: "the value of HWC_PRIMARY_DISP_SUPPORT_AFBC is "
hardware/amlogic/gralloc/Android.mk:142: warning: "the value of HWC_EXTEND_DISP_SUPPORT_AFBC is "
hardware/amlogic/gralloc/Android.mk:154: warning: "the value of GPU_TYPE is mali450"
[327/959] including hardware/amlogic/hwcomposer/Android.mk ...
"Build HWC 2.0"
[364/959] including home/CENSORED/Desktop/AOSP_KVIM_OUT/target/product/kvim/obj/media_modules/amvdec_ports/test/Android.mk ...
build/make/core/base_rules.mk:260: error: home/CENSORED/Desktop/AOSP_KVIM_OUT/target/product/kvim/obj/media_modules/amvdec_ports/test: MODULE.TARGET.EXECUTABLES.vcode_m2m already defined by hardware/amlogic/media_modules/drivers/amvdec_ports/test.
14:03:51 ckati failed with: exit status 1
failed to build some targets (14 seconds)
What i have already tried
repo sync
rm -rf out
rm -rf /home/CENSORED/Desktop/AOSP_KVIM_OUT/*
make clean
and rebuild but same error
Probably unrelated
I was having an error with device/khadas/kvim/auto_generator.py and i replaced file() by open()