diff options
| author | 2022-02-16 21:53:13 -0800 | |
|---|---|---|
| committer | 2022-02-16 21:59:05 -0800 | |
| commit | 2c8075cd6fc9cf3e7347e1747e751389c8d148e5 (patch) | |
| tree | 788ee5bb5e065aece9ace49368962373aa5846e3 /scripts/jsonmodify.py | |
| parent | 24eb82416bf473a2f6e1a37f259f1988af03dce6 (diff) | |
Add an __ANDROID_RAMDISK__ preprocessor define.
There is no easy way to inform C++ targets whether they're building "not
in normal Android". In the past we used __ANDROID_RECOVERY__, but this
isn't defined for ramdisk targets, or for vendor_boot. Furthermore
there's no "target.ramdisk.cflags" option to add it.
Add a new __ANDROID_RAMDISK__ define that will be set in any ramdisk or
recovery target (since recovery by definition is in a ramdisk).
Bug: 205987817
Test: mm bootimage, vendorbootimage, recovery
Change-Id: If3cd34b07fe0e20abc5108cb338a56698d33e42e
Diffstat (limited to 'scripts/jsonmodify.py')
0 files changed, 0 insertions, 0 deletions