Building Android 14 for VIM4 - missing soong-tee_common

Which system do you use? Android, Ubuntu, OOWOW or others?

Android

Which version of system do you use? Please provide the version of the system here:

14, self built

Please describe your issue below:

Builing fails with:
error: vendor/amlogic/common/prebuilt/videofirm/Android.bp:17:1: “soong-videofirm” depends on undefined module “soong-tee_common”. Did you mean [“aidl-soong-rules” “hidl-soong-rules” “soong-tee_hdcp” “xsdc-soong-rules”]?

Post a console log of your issue below:

12:43:03 Build sandboxing disabled due to nsjail error.                                                                        
[buildAudioPolicyConfigurationXml:W] device:kvim4, audioBuildType:_, soundbar:false, version:aosp                                                                                                                                                             
vendor/amlogic/common/auto_patch/Android.mk:14: warning:  Patch Finish.                                                                                                                                                                                       
mkdir: Needs 1 argument (see "mkdir --help")                                                                                   
/bin/bash: line 1: VENDOR-PATH-PH: command not found                                                                           
/bin/bash: line 1: /usr/icu/: No such file or directory                                                                        
find: './r44p1': No such file or directory                                                                                                                                                                                                                    
device/khadas/common/products/tv/t7/t7.mk:101: warning: warning for parse error in an unevaluated line: *** commands commence before first target.
============================================                                                                                   
PLATFORM_VERSION_CODENAME=REL                                  
PLATFORM_VERSION=14                                            
PRODUCT_INCLUDE_TAGS=com.android.mainline                                                                                      
TARGET_PRODUCT=kvim4_arm64                                     
TARGET_BUILD_VARIANT=userdebug                                 
TARGET_ARCH=arm64       
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.1.0-26-amd64-x86_64-Ubuntu-22.04.5-LTS
HOST_CROSS_OS=windows
BUILD_ID=UD2A.240505.001.W1
OUT_DIR=out
============================================
12:43:05 Entire data directory removed.
12:43:05 Deleted images and staging directories.

#### build completed successfully (3 seconds) ####

12:43:06 Build sandboxing disabled due to nsjail error.
[buildAudioPolicyConfigurationXml:W] device:kvim4, audioBuildType:_, soundbar:false, version:aosp
vendor/amlogic/common/auto_patch/Android.mk:14: warning:  Patch Finish.
mkdir: Needs 1 argument (see "mkdir --help")
/bin/bash: line 1: VENDOR-PATH-PH: command not found
/bin/bash: line 1: /usr/icu/: No such file or directory
find: './r44p1': No such file or directory
device/khadas/common/products/tv/t7/t7.mk:101: warning: warning for parse error in an unevaluated line: *** commands commence before first target.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=14
PRODUCT_INCLUDE_TAGS=com.android.mainline
TARGET_PRODUCT=kvim4_arm64
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.1.0-26-amd64-x86_64-Ubuntu-22.04.5-LTS
HOST_CROSS_OS=windows
BUILD_ID=UD2A.240505.001.W1
OUT_DIR=out
============================================
error: vendor/amlogic/common/prebuilt/videofirm/Android.bp:17:1: "soong-videofirm" depends on undefined module "soong-tee_common". Did you mean ["aidl-soong-rules" "hidl-soong-rules" "soong-tee_hdcp" "xsdc-soong-rules"]?


@xavier First, confirm if the pulled code is completely correct. Please execute the following command and send all information to me for review and confirmation.

repo sync -j4

$ repo sync -j4
… A new version of repo (2.48) is available.
… New version is available at: …/vim4-khadas/.repo/repo/repo
… The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.

Fetching: 100% (1267/1267), done in 2.692s
Checking out: 95% (1205/1266), done in 0.812s
Checking out: 4% (58/1266), done in 0.021s
Checking out: 0% (3/1266), done in 0.011s
repo sync has finished successfully.

@william.lin Please follow up.

@xavier ,
Did you compile SDK in a Docker container?

Yes I build SDK inside a Docker environment. It has worked as expected for Android11.

Hi @xavier
Did you add the - privileged parameter when running the container.
For example:
sudo docker run -- privileged - i - t -v /home/you_name:/home/Android session/khadas_android: v0.6 bash

No, not using “privileged” due to security implications.

Testing with “privileged” or the more secure alternative suggested here does remove the Build sandboxing disabled due to nsjail error., but the compilation still fails in the same way.

error: vendor/amlogic/common/prebuilt/videofirm/Android.bp:17:1: “soong-videofirm” depends on undefined module “soong-tee_common”. Did you mean [“aidl-soong-rules” “hidl-soong-rules” “soong-tee_hdcp” “xsdc-soong-rules”]?

Hi @xavier ,
This should be an issue with Linux swap space in Docker containers.
But currently, I haven’t found a way to experiment with how to set the size of the swap space.
Can you compile using a physical Ubuntu environment? At present, we have not fully verified the compilation of Android 14 using Docker containers.