Sorry for cross-posting, but I think this question would probably be better suited to this group…
Hi All -
I have a question regarding building a new product on top of an existing one. One of the nice features of the Android build system is product inheritence, so I don't need to duplicate all the definitions required if I'm basing my build off a working product. In other words, I can do the following (essentially):
1)
device/moto/shamu/aosp_shamu.mk contains the definition necessary to build for the Nexus 6
2) I can create
device/mycompany/mydevice/mydevice.mk with the following contents:
----------
# Inherit all packages from the Nexus 6 build
# Override inherited values
PRODUCT_NAME := mydevice
PRODUCT_DEVICE := mydevice
PRODUCT_MODEL := My New Device Stub
# Add more of my own stuff
----------
3) Build (lunch/make/etc.) for my new device target
However, the same does not seem to be true for the board support files (BoardConfig.mk, AndroidBoard.mk), at least that I am aware of. In the above example, these files have to be copied into the new device directory for the build to succeed.
If we are building a product to be used on the exact same board hardware as an existing product, is there a better way to tell the build system to use the board definitions found in our inherited product?
Cheers,
--
Dave Smith, PE
@devunwired