Commit Graph

270 Commits

Author SHA1 Message Date
Michael Bestas 5a45c52a25
aosp-merger: Fix merged_repos.txt handling after refactor
Change-Id: I8719e4ab8ddd043eefc1e0c1dca9d427b0f0cc7e
2022-01-11 00:04:08 +02:00
Michael Bestas b4ad4cf00c
aosp-merger: allow running from any directory
Change-Id: I14907315ed2e9fcbc3db7bcb0a74e3d5e00c68c8
2022-01-11 00:03:29 +02:00
Michael Bestas 949b4a157c
aosp-merger: Add script that merges non-forked repositories
* Useful to find differences and potential missing commits
  between AOSP tags with different ancestor on repositories
  that we have not forked.

  One example is this month, switching from Pixel 6
  December 2021 tag to qcom Pixel January 2022 tag.

Change-Id: Ib5bafd50c20375368255ad9bbb8ca702c3361652
2022-01-11 00:03:29 +02:00
Michael Bestas 70b2979611
aosp-merger: Add script that pushes the merge to refs/heads
Change-Id: I6d263d8ccc6fc6854b8e9d7301e556b15987a2e7
2022-01-10 22:06:10 +02:00
Michael Bestas 9d530d7c79
aosp-merger: Add script that pushes squashed merge to gerrit
Change-Id: I17ca8ca1a18a2c74d2e595d2bb34c231a403dc04
2022-01-10 22:06:09 +02:00
Michael Bestas 5cbdc752f7
aosp-merger: _merge_helper.sh: Fix old tag error message
Change-Id: I3fd067ac7bf51c96b8a7b197312f98b6759bffc5
2022-01-10 22:06:09 +02:00
Michael Bestas afbc3e5278
aosp-merger: _merge_helper.sh: Fix breakage when tags are the same
* Leftover from the time this code was running in a for loop

Change-Id: Ie315f95502e2d83cd0acf2dd1fdfdd1f7606c3b5
2022-01-10 20:50:06 +02:00
Michael Bestas 9de0780653 aosp-merger: Skip empty merges
* Sometimes we get empty merges caused by AOSP internal
  branch merges. Let's just skip those.

Change-Id: I5a13e8e53af38fe1cb9da4b18a13b88682cb4758
2022-01-10 23:52:21 +05:30
Michael Bestas c0fa9e2ee5 aosp-merger: Never use git reset --hard ${NEWTAG}
* This makes repositories end up with inconsistent
  git history, requiring force push at some cases.
  Just merge normally, if there are no changes we
  are going to handle it in a cleaner way.

Change-Id: Ida69e91c1881c52dc6d805a07d870d9fe26d6279
2022-01-10 23:46:00 +05:30
Michael Bestas 33ab01b4eb aosp-merger: Abandon staging branch if there were no changes
Change-Id: Ia1a526bf6df0c457b30739be58962da7ac2bde78
2022-01-10 23:46:00 +05:30
Michael Bestas 1157c7b775 aosp-merger: Clean up common ancestor logging
Change-Id: I07e5d156b07eee88cbd82b69072a840403b3e437
2022-01-10 23:46:00 +05:30
Chirayu Desai 3f6df5c8a0 aosp-merger: Improve merge commit message
* Merge and commit separately,
  to get newline between commit content and Change-Id
* Install prepare-commit-msg git hook, for nicer conflict messages
  https://gist.github.com/mikeNG/e55ef8e7a1e5cd596a950386503054fd/

Change-Id: I97370b352ccf4f146b4b6ea89af75e032fb13730
2022-01-10 23:46:00 +05:30
Chirayu Desai ba9a055d43 aosp-merger: squash.sh: Misc updates
Change-Id: I1b0e9a8c5c76dd7d37f0eaaf99a42089670bc3ae
2022-01-10 23:46:00 +05:30
Chirayu Desai 6e3fa2cb9e aosp-merger: squash.sh: Include the full commit message
Change-Id: I64d19c9dfc44e9b13c8efd6938f509d23506366f
2022-01-10 23:45:58 +05:30
Chirayu Desai 0490ea545b
aosp-merger: Add a tiny script that does the merging based on variables
Change-Id: I58bb25255293495bcb07667da1769f47640fdf4b
2022-01-10 16:26:35 +02:00
Michael Bestas 47a0c20b9c
aosp-merger: Rename aosp-merger.sh to merge-aosp-forks.sh
* In preperation for the upcoming script changes

Change-Id: If963ca2f8af703655963e7f5d3ab56484270b358
2022-01-10 16:26:35 +02:00
Chirayu Desai 5b6131753f
aosp-merger: Split out the for loop guts to _merge_helper.sh
* This script can be used by other callers to merge individual repos
* Get branch name from our variables
* Don't repo sync -d, it removes any local changes we made to merge
  scripts. Let's just manually sync before running this script.

Change-Id: I7ddfbfd934908e4a72fc2742753b4c704fa6c5e3
2022-01-10 16:26:35 +02:00
Michael Bestas de07d1ecf7
aosp-merger: Switch to SPDX copyright header
* Less clutter

Change-Id: Ib8496ec5d02521ce76a886fb0b48133d57a6f707
2022-01-10 04:41:30 +02:00
Chirayu Desai 5acb9b637e
aosp-merger: Drop kernel-merger.sh
* After addition of _merger.sh, this doesn't really serve much
  purpose
* Will write a new script that can actually do automatic merging
  based on the vars

Change-Id: I7b58a901e047d95ffb50fb27b7bf3008199283f8
2022-01-10 04:31:04 +02:00
Chirayu Desai f51db726fc
vars/common: Change branch variable names
* Less ambiguous

Change-Id: Ia2de1d70328ce2e074c5e0d180817c6875d0b5fb
2022-01-10 04:30:24 +02:00
Chirayu Desai cabf4a551f vars/common: January 2022 Security update, QC Pixels
* Forgot to update this in December
* Going to automate merge with this so it won't be an issue going forward

Change-Id: Ic6b41e12498dd86bb0cdb18fb35fc4363d653238
2022-01-10 02:41:28 +05:30
Chirayu Desai 50d17b0359 pixel: firmware: Add firmware partitions to AB_OTA_PARTITIONS
* Otherwise they won't get included on ota updates

Change-Id: Ib04112c8f6815099cab47a90661f8d78cb3ee122
2022-01-07 13:00:07 -05:00
Chirayu Desai 6a6807d798 release: tag.sh: Only exclude manifest from tags
* We can just use different tags for kernel builds ($version-kernel)
  to avoid the tag duplication issue
* Manifest(s) excluded since those are edited and tagged manually

Change-Id: I8967e042e7c72d5558eec170d034ebeb6a979946
2022-01-06 01:31:12 +05:30
Chirayu Desai f95a77bf7c release: tag.sh: Fix calyx/scripts exlusion, and also exclude kernel manifest
Change-Id: I383e3fe1e8e6538d646328ed907cbe80475e995e
2022-01-06 01:20:09 +05:30
Chirayu Desai 6e1142519a release: tag.sh: Exclude calyx/scripts as well when tagging kernels
Change-Id: Ifc7ccedd3d5e89bcf87f47f88d95a3022d6dfb83
2022-01-05 14:14:53 -05:00
Chirayu Desai b413c15e18 release: Initial commit of tagging script
* Will work for both platform_manifest and kernel_manifest

Change-Id: Ia0a5663ffd1eb96025b02e05e18ba25017594940
2022-01-06 00:22:44 +05:30
Chirayu Desai 56509f47ba kernel: Add a script to build all kernels
Change-Id: I0e4fcfdbef7a423c06b0153246494a06a749b7cf
2022-01-05 21:19:42 +05:30
Chirayu Desai a8f53dad62 aosp-merger.sh: Add script to squash changes for review
Change-Id: I1ffc3678fa40938bae62d5112c8fcacbffab4651
2021-12-28 17:21:17 -05:00
Chirayu Desai 1b42528d33 pixel: firmware: Use full name for bootloader and radio
* To better match stock factory images

Change-Id: I6fda1d2c9d35877d555d7a0c032dc089c7103eb3
2021-12-24 06:16:29 +05:30
Chirayu Desai 3eb0e32e1e pixel: firmware: Handle android-info.txt, and only write mk once
* Same as previous commit
* Lets us run this script over and over again without issue

Change-Id: I8f3237a1111b31b290d86c76a395485edd4e5bea
2021-12-24 05:40:41 +05:30
Chirayu Desai a05bd1fd08 pixel: carriersettings: Only write makefiles once
* Allows re-running the script gracefully
* Always writing other files over and over again is fine,
  as they may have changes sometimes, and if they don't then
  nothing changes anyway.

Change-Id: Idd164c2d34c249da86e13d55dda304fbfa9c6578
2021-12-24 05:40:41 +05:30
Chirayu Desai e1b8e2f6ae Supported Pixels: Update kernel tags for December 2021
Change-Id: I205cc1a27df7ddf56b8be8dd022f12f0c6d15c84
2021-12-23 02:12:24 +05:30
Chirayu Desai cc86a922dc raviole: December 2021
* There's 3 builds
  SQ1D.211205.016.A1: Global
  SQ1D.211205.016.A4: EMEA carriers
  SQ1D.211205.017: US carriers
* Picked global like we usually do, there don't seem to be any
  AOSP side diffs between the builds, only vendor / modem.

Change-Id: Iddca5c663512afc7b5669844e72934204470f6c7
2021-12-23 02:12:24 +05:30
Chirayu Desai c4a41d5d72 Supported QC Pixels: December 2021
Change-Id: I4746b63856849f622b017edc8d7b6388f9f9f923
2021-12-23 02:12:24 +05:30
Chirayu Desai 5d4980b900 Import fbpacktool from AOSP
* qc_image_unpacker doesn't support Pixel 6, this does

Source: https://developers.google.com/android/binary_transparency/pixel#fbpacktool
Change-Id: If7a409ed9f84e9c8ff43a8aa3d26eaae2c8a0640
2021-12-23 02:12:24 +05:30
Chirayu Desai 6ff66aca59 pixel: Add a shell script to do it all
Change-Id: If485efa68d0f23676e48665acbfeac094c750dcb
2021-12-23 02:12:24 +05:30
Chirayu Desai b9d4d0c651 carriersettings-extractor: Always allow modifying APNs
* Users have reported that in some cases they were able to edit
  APNs on stock, but aren't able to do so here.
* We can just allow editing APNs always

Reference:
https: //cs.android.com/android/platform/superproject/+/master:frameworks/base/telephony/java/android/telephony/CarrierConfigManager.java

Issue: calyxos#599
Issue: calyxos#266
Issue: calyxos#636
Change-Id: I967069a7631e7b26ad9970704dfda5583e0b0fbf
2021-12-23 02:12:12 +05:30
Chirayu Desai 9968120cba carriersettings-extractor: Exclude some values from vendor.xml
* This will make it work with the naked config
* We can have two different XMLs if needed, where one
  could include this config
* Looked for any 'com.google.android.' or Sprint/Verizon
  packages and removed those

Change-Id: I3d68c995f855c13231946a5796091936479906e9
2021-12-23 02:12:12 +05:30
Chirayu Desai c83bfe1067 pixel: Add shell script to handle carrier configuration
Change-Id: I60b70b515cf1380211de7f5ebdb4b63f2a198473
2021-12-23 02:12:12 +05:30
Chirayu Desai 2fbb434b42 carriersettings: Add rro_overlay template for vendor.xml
Change-Id: Ia31270b697f8588038150d3b32ddacf224d762ee
2021-12-23 02:12:12 +05:30
Chirayu Desai 05f1aaadb2 carriersettings-extractor: "Fix" for 12
* "Fixes" AssertionError assert setting.canonicalName not in all_settings
* The culprit is 'telenor_se'

Change-Id: I9d8c61f2400ecc89f560333ecaba84a739a0bef8
2021-12-23 02:12:12 +05:30
Chirayu Desai 08996b971d carriersettings-extractor: Implement argparse, extract files into separate folders
Co-Authored-By: Michael Bestas <mkbestas@gmail.com>
Change-Id: If8d93d832bbd586ae0e06067a4e335aa5a0398c4
2021-12-23 02:12:12 +05:30
Chirayu Desai 052b596895 carriersettings-extractor: Modify for usage in AOSP
* We already have all the needed protos, just symlink them

Change-Id: Iebdebcad0cecf3a8baf6a9fcc5590e707aacd585
2021-12-23 02:12:12 +05:30
Chirayu Desai 1805c001a7 carriersettings-extractor: Remove unnecessary files, update README
Change-Id: I4d0fe81dda9fb81a72e4e6149aed6a7882f0a17f
2021-12-23 02:12:12 +05:30
Chirayu Desai 5257dc3e45 Import carriersettings-extractor
Repo: https://github.com/daradib/carriersettings-extractor
Commit: 6e6217b5fc74129b8d1ba6671a48388f5f55e009 "Add license"
Change-Id: Ibbbccedd5e118e66f7e681dd2f8c8d69e6484a87
2021-12-23 02:12:12 +05:30
Chirayu Desai c1fa3c5059 pixel/download.sh: Only download OTA when needed
Change-Id: I32488c1f15f6c7972e35a14641081ab4efeed3d9
2021-12-23 02:12:12 +05:30
Chirayu Desai 1bb1ae3692 vars: Indicate that raviole needs OTA images
* qc_image_unpacker can't unpack these images (yet)

Change-Id: I8b49049e29ad59c3f66657b6e739e7e4d98be49d
2021-12-23 02:12:12 +05:30
Chirayu Desai 798df79208 pixel: Add shell script to extract and setup firmware
Change-Id: Ib1f030dcd978f943c2d5716a7e40df54fc26f545
2021-12-23 02:12:12 +05:30
Chirayu Desai 484fe87cb5 vars: Add firmware partitions to pixel
* Determined using extract_ota.py ota.zip -l,
  removed the obvious system/vendor/product partitions manually,
  retained everything else

Change-Id: I48ba0e2f53a7dff77c14bb3062a6a3a0a898d03c
2021-12-23 02:12:12 +05:30
Chirayu Desai 1c1e4fb202 pixel: Add shell script to extract factory images
Change-Id: Iecc2703200944c4a5448ec4b2b897f6fd14be676
2021-12-23 02:12:12 +05:30