Commit Graph

120 Commits

Author SHA1 Message Date
Michael Bestas ed2943c58e
pa: build: Relocate extract utils to tools/extract-utils.
Change-Id: I13489b54298ebc2410c38ca9e16aa7121a28f997
2021-01-23 14:04:07 -07:00
Anay Wadhera 1b26a7f06b envsetup: add a function to merge CAF
Change-Id: Ia32a3ad5ed7c44e31d7229fec29f5d70474c6cd9
2021-01-15 05:26:29 +00:00
Alexander Koskovich 0963ecd136
pa: Add Soong conditional for no mask layer support.
* OP8's stock display stack is prerelease and can't
   use some stuff from Surfaceflinger, add support for
   disabling them.

Change-Id: I5c61f8b554ad6ddd54bab1dc99430c0228be2eb8
2021-01-04 08:17:33 -07:00
Alexander Koskovich cd283e769a
pa: Allow fingerprint module ID to be overwritten.
Change-Id: I6cfd6b99db25235f746e389cfe74d0d120a2949d
2020-10-26 14:54:10 -07:00
Pig 8ea05d8aee
[lineage-18.0] pa: soong: Add AOSPA Soong config variables.
Ref: https://android.googlesource.com/platform/build/soong/+/refs/tags/android-11.0.0_r4#soong-config-variables

[PA: this commit is a very minimal pick of the Lineage commit]

Change-Id: Icaf35b65b63d4245c92e39ce628bb8d6ffd0d4bb
2020-10-26 14:54:10 -07:00
Pig 4f2d0c16ad
[lineage-18.0] Revert PA Soong product variables changes.
* This reverts commits 7ef0e170 and 4ed4605 and removes relevant flags
   to prepare for using Soong config variables as per Google's docs

Change-Id: Ib6ae5a8a922104d37f8d0e08242b428eb129785c
2020-10-26 14:54:10 -07:00
Jake Weinstein 632203fab9
pa: Remove unused Soong flags.
* Prepares for Lineage's architecture changes and we can
   avoid forward porting things we don't need.

Change-Id: I4e40631b14d97dc9a8070174d727fb6d48902a41
2020-10-26 14:54:10 -07:00
Alexander Koskovich 7fd9b8bc79
pa: extract_utils: Fix prebuilt xmls copying out without .xml.
Change-Id: I7b1413e830ca907f0f63d19abef2ab2e0b14b1c4
2020-10-14 16:24:43 -07:00
Jyotiraditya 85f12985fe
pa: envsetup: Stop executing vendor HAL script.
* CAF used this to generate blueprints for their QTI
   vendor HALs under vendor/qcom/opensource/interfaces.

 * In Android 11 they switched to pre-generated blueprints,
   so there's no reason to run this at build time, also
   it slows down build.

 * Also remove mka, after removing this it no longer
   serves a purpose as the "m" function exists.

Change-Id: I9644a08d120fbfedf0cb119e21e12800fa2509ff
2020-09-25 18:14:26 -07:00
Alexander Koskovich b089b1a08f
pa: build: tools: Change location of our tools.
Change-Id: Iecdfcfad35d6cae32bde4c380536c4a013157934
2020-09-25 18:14:26 -07:00
Alexander Koskovich bf68f29f11
pa: Switch to CAF's kernel build system.
Change-Id: I6aad967b28ed187efaa3f206b3fbc0df6d39d218
2020-09-25 18:14:21 -07:00
Alexander Koskovich d60ecc5f83
pa: extract_utils: Fix system_ext framework blueprint generation.
Change-Id: I20e44be6ea48b9bd5b05055d3cf465f63c908463
2020-09-18 09:19:53 -07:00
Jan Altensen f7c5a44b9a
pa: bacon: Call md5sum directly.
* Fixes "error: MD5SUM is obsolete."

Change-Id: I38e167e24e9eb5596a1e8e2f2d915f648bc1283c
2020-09-18 09:19:52 -07:00
nebrassy e8c04a1a6f
pa: soong: BuildOsVariant > BuildOSTarget.
Change-Id: I3385941b2931e5be8010d31f80f3aa033d0d3727
2020-09-18 09:19:52 -07:00
dianlujitao 3240724c83
pa: extract_utils: Disable ELF check for shared libraries.
* This is indeed a nice feature, but it's absolutely
   a bad idea to hardcode dependencies of prebuilt
   modules in proprietary-files.txt.

Change-Id: I8c2d75ff62c0c7862f40e777bcbad4d9cebc074c
2020-09-18 09:19:52 -07:00
Alexander Koskovich 5445a75517
pa: extract_utils: Add support for extracting APEX images.
* Also set the final package list at the end of type determination
   so it can run through the args and make any changes to the
   final list that it needs. For the APEX images I was having an
   issue where I renamed the pkgname depending on an arg present
   but the final list only recieved the name prior to the rename.

Change-Id: Ie5082cb1a426efbf1db26d32cbeb2cb5aef82156
2020-09-16 18:06:44 -07:00
Luca Stefani 537b960396
pa: extract_utils: Add support for system_ext.
Change-Id: I0760cdd9bec1a0a0551aa68a60c34f9c00932668
2020-09-16 18:06:44 -07:00
Andreas Schneider f7c597f5b7
pa: extract-utils: Fix usage for ETC files which need sub_dir.
* Thanks to Tad.

Change-Id: I6a0e7978afce6444d0827f97d7686f23aa7500c9
2020-09-16 18:06:44 -07:00
Andreas Schneider 05915b9851
pa: extract_utils: Fix vendor Android.bp creation with subdirectories.
error: vendor/samsung/beyond0lte/Android.bp:37:9: unrecognized property "sub_dir"

Change-Id: I23becda0345f41d2cb1462e74b66a787e9ad4c96
2020-09-16 18:06:44 -07:00
dianlujitao 20ef2008e4
pa: extract_utils: Handle Brotli compressed block image.
Change-Id: I1b3ef34ebba9b43fd684c6abaa1dbc77c8786da7
2020-09-16 18:06:43 -07:00
dianlujitao a7632dbd7b
pa: extract_utils: Support ODM/product/vendor partition for zip extract.
Change-Id: Iec06835f1703e276f8882c5ee327ef241a2f8f23
2020-09-16 18:06:43 -07:00
dianlujitao 6d30021388
pa: extract_utils: Generate deodexed APK/JAR with consistent checksum.
* Zip stores timestamp for all included files. The
   timestamps of dex files are different across different
   runs, result in inconsistent checksum of output APK/JAR.

 * Workaround the issue by using fixed timestamp for
   dex files.

Change-Id: I21f3a7e32cdfdb07c5f5c140df2e797efd4a8005
2020-09-16 18:06:43 -07:00
dianlujitao b681efb8fb
pa: extract_utils: Fix doubled path separator.
* $DST_FILE is already prefixed with "/", don't double it.

Change-Id: I2655313abd7720a54b20f541a95960ae9ec373ad
2020-09-16 18:06:43 -07:00
XiNGRZ ab58600e4a
pa: extract_utils: Fix bad substitution for ZSH.
Change-Id: I5f4fabc62b1ac3da159b36c3ae6080e145948530
2020-09-16 18:06:43 -07:00
TheStrix b261d672d1
pa: extract_utils: Add support for OVERRIDES argument.
- Used in our GApps.

Change-Id: I2504cbb760b20ed86c2dc088cc4bd74b78ba64d9
2020-09-16 18:06:42 -07:00
Alexander Koskovich 7df0a2705f pa: Remove generic targets.
* I doubt people actually use these. Just a proposal though, if
   people still do just abandon this.

Change-Id: I6618ffd210f87b9f2226a1b8bea471fd9bc90de2
2020-07-24 20:37:12 +00:00
Alexander Koskovich 90bbe6bff7 pa: soong: Add TARGET_USES_PREBUILT_DYNAMIC_PARTITIONS.
Change-Id: Ibb4202eae237cc9f167707c45dd86a313d95d7be
2020-07-09 20:25:05 +00:00
Jan Altensen 68eb350a68 soong_config: add TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE
Change-Id: I96dd2f7dd629a06de288332e1d00be827029e89c
Signed-off-by: Joshua Primero <jprimero155@gmail.com>
2020-06-18 06:16:19 +00:00
dianlujitao aaf0f1fb2a Export techpack/audio uapi headers of msm 4.14 kernel
* With the techpack integration implementation of Google's msm-4.14
   kernel https://bit.ly/2WqiMFx (CAF didn't port this to their kernel
   thus suppose Google's port is the standard one), these headers are
   installed to include/audio/include/uapi.
 * This fixes building audio HAL with 4.14 kernel

Change-Id: I8283699470a7bcb31c771c9aa770a825b4e82519
2020-06-06 14:26:57 +00:00
TheScarastic 1405214787 soong: Add flag for fod extension
Change-Id: Ib45706cc50fa88b9b05af1c68eec9d1f08d70569
2020-06-04 15:56:33 +00:00
Adithya R a891699f63 kernel: Use correct clang triple for arm
Change-Id: I936cfae2cdd2270c17293c842b6de8263d99d6f9
2020-04-18 20:11:26 +00:00
Adithya R 69611bb6ae kernel: Add 32-bit lib path to clang if available
Change-Id: Ic5624a2847e47b0915e9ecd0ff0ddf084ef1f99e
2020-04-18 20:10:52 +00:00
OmniBot Auto Verifier 9871e8aed7 repopick: Add a way to checkout instead of cherrypick
This helps if you want to take a commit and its dependencies, and not
just a particular commit

Change-Id: Ib245cce560c7b0d6fd03198a8c69a13d4720a4cb
2020-04-07 17:26:28 +00:00
dianlujitao 9e6d6fb600
soong_config: Add flag for waiting for QSEE.
Change-Id: I3f27d399293a95ad75446482c8711adf5fed1f78
2020-03-25 11:37:52 -04:00
TheStrix 38c9070fa7 extract_utils: Add support for extracting QTI common components
Change-Id: I4bc21d1c21f6e2b477360943ad063161b2e0cfad
2020-03-25 13:08:15 +05:30
Kshitij Gupta 0a973bc138 tasks: dtbo: Add support for custom dtbo generation rules
Change-Id: I27fdade5eb177a06795fee7cc19066ec161642d9
2020-03-22 01:00:22 +00:00
Evan Anderson b3f12c6a5b roomservice: Fix recursion issue
* we need to append every element of the recursed manifest

Change-Id: Ia0c042b8e5da406a6210cf92564b45820a6dcbba
2020-03-05 00:15:45 -06:00
Evan Anderson 59af032333 roomservice: Fix inclusion of upstream manifests
Google updated the manifest format in the new version of repo to have the .repo/manifest.xml
file use an include of .repo/manifest/default.xml, instead of symlinking to default. This broke
roomservice because it didn't recurse far enough to pick up the manifests included in default.xml.
This change makes roomservice recurse the includes on every manifest to make sure it's built a
complete manifest before making decisions on what projects need removals

Change-Id: I410386574b9b267d2ce1f1d2ff8112baa4d02352
2020-03-04 22:50:30 -06:00
dianlujitao d6b690b0ef extract_utils: Drop string after semicolon when parsing destination
This fixes parsing when arguments contain colons, a typical usecase
would be:
-vendor/app/TimeService/TimeService.apk;:timeservice_app_cert

Change-Id: I7500ae09632632ddc10734d9b1df267e28286b67
2020-02-18 11:58:59 +00:00
Adrian DC d8a3697c75 soong_config: Add TARGET_HAS_LEGACY_CAMERA_HAL1 variable
* Soong product variable 'has_legacy_camera_hal1'

Change-Id: I10800cba0c431297b5d7aad6e97d57a01232d73e
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2020-01-22 23:06:19 +05:30
Park Ju Hyung 7e90767d7c kernel: use dtc from prebuilt
dtc from OUT_DIR might not be available, so use the prebuilt one instead.

Also, clean-up a little bit and follow the same logic as prebuilt make binary.

Change-Id: I48dd57d7e69a2dbf97c7bd3b225eaf4ec8b41e23
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
2020-01-06 21:46:31 +09:00
Park Ju Hyung 8bb8f1e5b9 kernel: use the built dtc binary for the kernel
Kernel no longer has to track their own latest dtc with this change

Change-Id: I63229b0a070db2f201bcf4597269711655cab410
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
2020-01-06 02:31:15 +00:00
Fabian Leutenegger 3d7394b492 extract_utils: We are Paranoid Android
Change-Id: I4aadc7f5d106c3ec425b2a76c917ca9196b415e1
2020-01-05 01:50:43 +00:00
Simon Shields 848d312e0d repopick: fix --check-picked on Python 3
This is very subtly broken: we look for the string 'Change-Id:'
in an array of byte strings. Fix this by decoding the git output
to utf-8 strings.

Change-Id: I708ad0adacb61c89bfba0fd88eeb2e37648317af
2019-12-19 16:13:34 +05:30
Adrian DC 48d45723ac repopick: Support project paths detection on different branches
* When some projects are declared in the manifests with specific
    changes (revision="refs/changes/../....../."), the path
    detection does not work, while most cases have a unique paths

 * Allow projects with unique branches to select their paths
    upon repopick with a warning about the selection

Change-Id: Ic873d69f57c78f233db3d0de4ebd529f896799ea
2019-12-19 16:13:28 +05:30
LuK1337 2b089ce898 repopick: Print change subject as unicode
* This prevents from seeing stuff like
  "b'frameworks: Add unlinked ringtone and notification volumes'"
  when using python3 as default.

Change-Id: Ie1fa85681b648edcee65680d784da4dff1779616
2019-12-19 16:13:05 +05:30
Mohd Faraz 97e8174437 extract_utils: Added Suffix uses COMMON_SUFFIX
* COMMON_JAVA_PACKAGE_SUFFIX for jar

 * COMMON_ANDROID_PACKAGE_SUFFIX for apk

Change-Id: I812405dac12ef7183985c66a6e43b0ea5f85989c
Signed-off-by: Mohd Faraz <mohd.faraz.abc@gmail.com>
2019-12-19 16:12:27 +05:30
Rashed Abdel-Tawab 10156c6231 extract_files: Implement blueprint file generation
Switch to blueprint on:
 - shared objects
 - $partiton/etc/ files
 - JARs
 - executable binaries and scripts
 - APKs

Only /sbin binaries are still in Android.mk because blueprint
doesn't handle sbin installation yet

Change-Id: I1dfd7e8bb575367b2a7fa9e333c4c6fa3aa68180
2019-12-19 16:12:18 +05:30
Rashed Abdel-Tawab 9e5b14d231 extract_files: Add initial blueprint creation
Start the copyrights for these at 2019 because the blueprints won't
have existed before then.

Change-Id: I5300109949785dd19555e35d17a1e80daef498b0
2019-12-19 16:11:56 +05:30
Rashed Abdel-Tawab 0603440e8e extract_files: Match non-treble path prefixes
Some devices put stuff on /system, /system/vendor or even
/system/vendor/odm. Search for these paths too when generating
TARGET_COPY_OUT_$partition variables.

Change-Id: Ie2c087e57aaca02d5ea93f290d5fc50d1315a600
2019-12-19 16:10:16 +05:30