Using soong_namespace with bootstrap_go_package

834 views
Skip to first unread message

etinter...@gmail.com

unread,
Apr 25, 2019, 11:36:53 PM4/25/19
to android-porting
I'm trying to integrate two BSPs into the same Pie based branch, and I'm trying to do essentially this:

/ (AOSP root dir)
|
+- hardware/qcom/msm8998
|    |
|    + Android.bp containing soong_namespace { imports ["hardware/qcom/msm8998", "vendor/qcom/msm8998"], }
|    |
|    + Android.bp containing bootstrap_go_package soong-msm8998-test-module
|
+- hardware/qcom/msm8996
|    |
|    \
|    * Android.bp containing soong_namespace { imports ["hardware/qcom/msm8996", "vendor/qcom/msm8996"], }
|
...

When compiling, this yields the following error:

FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
error: vendor/mediatek/proprietary/hardware/gralloc_extra/Android.bp:1:1: "soong-msm8998-test-module" depends on undefined module "soong-android"
Module "soong-msm8998-test-module" depends on undefined module "soong-cc"
Module "soong-msm8998-test-module" is defined in namespace "hardware/qcom/msm8998" which can read these 0 namespaces: []
Module "soong-android" can be found in these namespaces: ["."]

Interestingly enough, the root namespace is supposed to be included by default in the build/soong/android/namespace.go file. Is this something that is intended to work, or is it something that is out of scope for the build system? 

Colin Cross

unread,
Jun 17, 2019, 6:21:49 PM6/17/19
to android-porting
Reply all
Reply to author
Forward
0 new messages