Closed pablomh closed 4 years ago
the kernels will be distributed as prebuit and they are all compiled at the same time this change is not needed
In the same way, I guess you won't merge a PR that separates the output directory per device, without removing it for incremental builds @jerpelea?
Keeping in mind that Android 10 does not allow inline building anymore (yes, we can hack around it...) and everyone playing with the kernel needs to run this script now.
the kernel output separation for each device will just take a lot of space when you build all devices
@jerpelea Yes, I see it doesn't work for your case. Do you have a suggestion for generic usage, such as a separate script?
@jerpelea, I agree with @MarijnS95 that this script is very useful now that we can't build inline, so having this functionality in would allow us to keep using this script without impact for your current usage.
lets talk about it after all devices are booting reliably
Is there a way to reuse lunch combos and detect which platform and device is used?
@Thaodan These are not readily available from the environment (unless we want to parse the name from the output directory or convert the device code (such as f5121
for Suzu SS), but we can easily ask get_product_var
for TARGET_DEVICE
and SOMC_PLATFORM
.
I'll submit my commits tomorrow (rebased on #6) that take care of this, while still allowing @jerpelea to build clean kernels for all devices.
Added the same feature to #6 with some small changes.
The following example would allow us to build:
PLATFORMS="loire nile tama" LOIRE=kugo NILE="discovery pioneer" ./build-kernels-gcc.sh