How can I bring up Dragonboard 845c with Android Automotive 11

How can I bring up Dragonboard 845c with Android Automotive 11 ?
Thank you.

Part 1:
https://source.android.com/setup/build/devices

Part 2:

What you want to do is look at the way I structured the automotive parts in my repository (part 2) for db820c and apply them to the device build tree for the db845c (part 1).

@doitright Thank you for your help.

The part 2 code has been integrated in $AOSP_ROOT/device/linaro/dragonboard
And a new item “db845c_car-userdebug” has been created in “lunch”

source build/envsetupl.sh
lunch db845c_car-userdebug
m -j8
The error occurred:
[100% 2/2] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
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 -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: device/linaro/dragonboard/automotive/camd/Android.bp:1:1: “camd” depends on undefined module “libgps_static”
15:29:18 soong bootstrap failed with: exit status 1

For the static library: libgps_static, it can’t be found in the project.
Shall I install some package for it ?

You should actually go through what you added and adjust for things like that. Either remove camd from the makefile, or add the GPSd project.

My suggestion is to remove things you won’t be needing.

@doitright Now it works, thank you.

By the way, shall I set the envrionment var : “BOARD_IS_AUTOMOTIVE : = true” ?
After setting that, the below error occurred:

----------------------------- error ------------------------------------
external/wpa_supplicant_8/hostapd/Android.mk: error: “hostapd (EXECUTABLES android-arm64) missing lib_driver_cmd_qcwcn (STATIC_LIBRARIES android-arm64)”
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
external/wpa_supplicant_8/hostapd/Android.mk: error: “hostapd_nohidl (EXECUTABLES android-arm64) missing lib_driver_cmd_qcwcn (STATIC_LIBRARIES android-arm64)”
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: “libwifi-hal (SHARED_LIBRARIES android-arm64) missing libwifi-hal-qcom (STATIC_LIBRARIES android-arm64)”
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: “libwifi-hal (SHARED_LIBRARIES android-arm64) missing libcld80211 (SHARED_LIBRARIES android-arm64)”
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: “libwifi-hal (SHARED_LIBRARIES android-arm) missing libwifi-hal-qcom (STATIC_LIBRARIES android-arm)”
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
frameworks/opt/net/wifi/libwifi_hal/Android.mk: error: “libwifi-hal (SHARED_LIBRARIES android-arm) missing libcld80211 (SHARED_LIBRARIES android-arm)”
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:1088: error: exiting from previous errors.
13:28:28 ckati failed with: exit status 1

Not unless you know what that flag does and know that you need it. As far as I can tell, it’s just something to trick some blobs for production PHONES into acting like a car.