Commit Graph

11 Commits

Author SHA1 Message Date
Justin Yun
ef95d09076 Deprecate VNDK v27
Remove the code for old VNDK snapshot v27. The script also checks the
minimum VNDK version it supports.

Bug: 159433338
Test: python3 development/vndk/snapshot/update.py \
      --local {snapshot_dir} --use-current-branch -vv 27
Change-Id: I00587ab3e6c97df7d43e81aaa8795042f89aaf3e
2020-11-30 10:19:43 +09:00
Inseob Kim
b462b9c30d Convert vndk scripts to python3
python2 is obsolete now. Fortunately most of the codes are compatible
for python3, except for the check_output function.

Bug: 163435508
Test: run vndk/snapshot/update.py with build number
Change-Id: I0d3b463bffc97e35a21a40fdf57d5652a7bb6763
2020-08-13 09:23:01 +09:00
Justin Yun
04f8b34890 Parse merge commit recursively
To find a revision from the uploading branch, we find the parent
commit if the commit is a merge commit. But it fails if the parent
commit is also a merge commit. To avoid this, find the parent commit
recursively.

Bug: 156585121
Test: python check_gpl_license.py
Change-Id: I93149e8ee7d3e6b9eb0babdd017dcd9fdb10d4c0
2020-05-18 11:30:45 +09:00
Justin Yun
5ff8cc25ce vndk-snapshot: Make the remote name settable
To check license, we need to fetch revision from parent git
repository. Using '--remote' option we may manually set the remote
name. Default value is 'aosp'.

Test: run update.py to fetch vndk snapshot files.
Change-Id: I1456eb4306950da3d25ec2b4d9fc4efc4b5bcd81
2019-01-22 11:00:37 +09:00
Jae Shin
af0c00328a Support new binder32bit property
Starting in VNDK snapshot v28 (P), prebuilts built for 32-bit
binder interface are isolated in separate 'binder32' subdirectory
under prebuilts/vndk/v{VER}/{ARCH}/. All other prebuilts are
assumed to use 64-bit binder interface.

To differentiate prebuilts per binder bitness, the following
changes are made:
1) a new 'binder32bit' property added to the Android.bp files
autogenerated for the vndk_prebuilt_shared soong module
2) new phony modules, vndk_v{ver}_{arch}_binder32, defined for
32-bit binder prebuilts,
3) 'binder32' suffix added to the prebuilt versioned name,
e.g. libfoo.vndk.{ver}.{arch}.binder32.vendor

Test: python gen_buildfiles.py 28 -vv
Test: python gen_buildfiles.py 27 -vv
Bug: 78279738
Change-Id: I283fe25a34d3381d13097ede34c428c83dffe11e
2018-06-25 17:58:35 +09:00
Jae Shin
bd82ebbe49 Expand a leading '~' to $HOME in arg for --local
Test: python update.py --local=~/some/local/path
Bug: 78279738
Change-Id: Iabef0b10ff9ad7a5008f63a1b558351a240b4227
2018-06-25 17:45:34 +09:00
Jae Shin
ce3bb75034 Check parent commit if revision is from *-release
Revisions in a *-release branch include merge CLs that merge
*-dev to *-release. These revisions will not be in the source
of a GPL git project, so in these cases need to extract the parent
revision of the merge commit.

Test: python check_gpl_license.py --branch pi-release --build
<bid> 27 -vv
Bug: 78279738
Change-Id: I2950b56605b9af39c3ab012ae7a1ad407942d419
2018-06-19 20:49:33 +09:00
Jae Shin
940752124d Allow logging across modules
Test: confirm logging from different modules
Bug: 78279738
Change-Id: If51918fd7a4ad3ea3408109a39a293bcd56f71db
2018-06-18 14:45:54 +09:00
Jae Shin
25d3abf478 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
(cherry picked from commit a2504712de)
2018-04-24 09:50:30 +09: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
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