Commit Graph

7 Commits

Author SHA1 Message Date
Jae Shin
a2504712de Prevent manifest file from being added to prebuilts
Change logic that handles the manifest file so that the manifest
is not added to the prebuilts/ directory but remains in a
temporary dir for GPL checking. At the end of the update.py script,
the manifest file is deleted when the temporary dir is deleted.

Also modify how check_gpl_license.py is run independently since
the manifest file has to be fetched first.

Test: python update.py -b oc-mr1-treble-dev --build 4728343 -vv 27
Bug: 77546642
Change-Id: I7749e2998cd12325b9c6275da5e697e328137b73
2018-04-19 14:56:28 +09:00
Jae Shin
2de352e93a Add newline in generated Android.bp files
Test: python update.py [options]
Change-Id: Ibfe97f4854c73c4a832cc4648a62f9e068092311
2018-01-18 02:42:20 +00:00
Jae Shin
4db81a5f93 Generate separate Android.bp per snapshot variant
VNDK snapshot now packages not only the primary abi but also the
secondary abi for each build target. To distinguish 32bit srcs
built from 64bit vs 32bit TARGET_ARCHs, each prebuilt is defined
per TARGET_ARCH and included in corresponding phony package,
vndk_v$VER_$ARCH.

Test: python update.py [options]
Bug: 71370248
Change-Id: I1be1d4421b97855a95be6ca0b8efb62e50205a7d
2018-01-09 04:37:56 +00:00
Jae Shin
9bc4fd058b Apply change in ETC file names to versioned names
ETC modules ld.config.txt, llndk.libraries.txt, and
vndksp.libraries.txt are now versioned as such:
*.$PLATFORM_VNDK_VERSION.txt

Change the logic for autogenerating Android.mk build rules
for ETC files to reflect this change in file names.

Bug: 70918357
Test: python gen_buildfiles.py
Change-Id: Ia1d062a1be7fd47a78ad338c252e556d27f308b3
2017-12-26 13:07:18 +09:00
Jae Shin
5233fe115b Add script to check GPL projects have released SHA
Checks that the source tree to which the VNDK snapshot is being
installed has the sources for all GPL prebuilts by confirming
the git projects have the SHA values recorded in manifest.xml.

Bug: 70603439
Test: python update.py [options]
Test: python check_gpl_license.py [options]
Change-Id: I5b34271cd0dab737187211f52b2fdce6dbd94e2e
2017-12-21 05:10:27 +00:00
Jae Shin
ba7456d513 Add 'notice' attribute to prebuilts in Android.bp
Test: development/vndk/snapshot/build.sh && python update.py 27
--local -vv && m -j PRODUCT_EXTRA_VNDK_VERSIONS=27, then make sure
NOTICE files for /system/lib[64]/vndk[-sp]-27 are included in
/system/etc/NOTICE.xml.gz
Bug: 70603439

Change-Id: I54dd13e1c3c46c4f690d62604544c61585807160
2017-12-18 22:52:10 +09:00
Jae Shin
ca625dd05a Add scripts to install VNDK snapshot to prebuilts/vndk
update.py does the following:
1) fetches VNDK snapshot build artifact from Android
Build server,
2) installs snapshot under prebuilts/vndk/v{VNDK_VERSION},
3) autogenerates build files Android.mk and Android.bp
(using gen_buildfiles.py)

Test: python development/vndk/snapshot/update.py [options] &&
m -j vndk_v27
Bug: 69950927
Bug: 70125075
Change-Id: I81c8bd5060601a983da0c05bd63232b5631185b6
2017-12-12 01:33:51 +00:00