If you're worried about including those changes in all the builds then
maybe put a conditional at the top of the
vendor/foo/hammerhead/device-partial.mk file. What if you put the
following at the top of the file.
ifeq ($(TARGET_PRODUCT), myhammerhead)
On 03/11/2015 01:12 PM, Owain Davies wrote:
I have some clarification on this now.
The TARGET_DEVICE is specified in a Product makefile using PRODUCT_DEVICE.
The build system will then look for a BoardConfig.mk file in
"build/target/board/$(TARGET_DEVICE)/" and search up to 4 directories
deep in "vendor" and "device" for a directory named $(TARGET_DEVICE)
containing a BoardConfig.mk file. If it finds none that is an error if
it find more than one that is also an error.
So my proposed directory structure does not work, and I still can find
no way to conditionally include the BOARD_SEPOLICY_UNION just for when
my product is being built.
I can crate a newly named target device (eg. "myhammerhead") which
would inherrit the original device config (eg. "hammerhead"), but that
breaks all the hardware and devices specific modules which only build
for the original TARGET_DEVICE name.
Stephen's idea would obviously work, but it would still
unconditionally include those changes even if I was not building
myprod but building the base aosp build.
I guess there is not an easy answer to this.
_______________________________________________
Seandroid-list mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to
[email protected].
_______________________________________________
Seandroid-list mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to
[email protected].