Hi, we are running into problems when we try to add our own BoardConfig that is supposed to include/inherit another config, in this case it is the cuttlefish emulator, so that we can change and add parameters without having to edit the aosp source. We've had a device configured to use cuttlefish for a long time and it works, but would like the ability to overwrite and add our own parameters in the BoardConfig.
I've tried two ways of doing it, including one of these two lines in our config, the difference is explained here: difference-between-call-inherit-product-and-include-in-aosp-makefiles <https://stackoverflow.com/questions/36321050/difference-between-call-inherit-product-and-include-in-aosp-makefiles> 1. include device/google/cuttlefish/vsoc_x86/BoardConfig.mk 2. $(call inherit-product, device/google/cuttlefish/vsoc_x86/BoardConfig.mk) When trying to build with the included config we get a lot of the similar errors with several modules and libraries missing. error: "hostapd (EXECUTABLES android-x86) missing lib_driver_cmd_simulated (STATIC_LIBRARIES android-x86)" And when trying the inherit-product way we get the following when running lunch. error: cannot assign to readonly variable: PRODUCT_NAME So the problem occurs when we try to use our own BoardConfig, using; PRODUCT_DEVICE := "our-own" instead of using cuttlefish directly, which works fine; PRODUCT_DEVICE := vsoc_x86 How are we supposed to accomplish this, without needing to edit aosp source code, or creating a copy of the source? -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/169ce985-b33a-416f-a7ae-cf91c34f8527%40googlegroups.com.