Commit Graph

400 Commits

Author SHA1 Message Date
Han Wang
ae82c34dd5 extract_utils: Fix up 4a2b65fb60
Change-Id: I9e5ea799812ca932de95ec6cbdedb604cbde5736
2020-03-10 09:41:34 +02:00
XiNGRZ
4a2b65fb60 extract_utils: Fix bad substitution for zsh
Change-Id: I5f4fabc62b1ac3da159b36c3ae6080e145948530
2020-03-10 07:49:55 +01:00
Alessandro Astone
cdf9ae8532 lineage: modernize functions
[installrecovery]
 * Don't try to mount system

[installboot]
 * Kill kernel module pushing
 * Now we don't need to mount system anymore ^.^

[eat]
 * No need to use /cache/recovery/command when we have
   adb reboot sideload-auto-reboot
 * Make use of our custom adb wait-for-online

[_adb_connected]
 * Could be removed entirely, but for now make it use
   adb wait-for-online

Change-Id: Ife25e63c63c784670c7d330f8a69de01326de1a0
2020-03-05 12:18:40 +01:00
Andreas Schneider
b532825214 dtbo: Sort the files we found
Change-Id: Iece383362d00d600c5861914b9f2600020229d80
2020-02-27 16:13:50 +01:00
Tom Powell
f8adf067fd roomservice: support new manifest formats.
.repo/manifest.xml is no longer a symlink becuase apparently windows
developers need to use repo and windows needs admin for symlinks.

https: //gerrit.googlesource.com/git-repo/+/a269b1cb9dc21dfd598bfea3766206b606ad4589
Change-Id: I88ea0295133959136d7214f13a76b66d89dc88d4
2020-02-25 20:48:12 -08:00
Kshitij Gupta
3795628673 tasks: dtbo: Add support for custom dtbo generation rules
Change-Id: I27fdade5eb177a06795fee7cc19066ec161642d9
2020-02-22 07:55:25 +01:00
Luca Stefani
ed9b10f172 Remove apicheck.mk
* It's currently broken
* Should be converted to soong/metalava

Change-Id: I45f91d20cf797f89e5b1e4730cdafde44128e9a4
2020-01-10 17:13:41 +01:00
dianlujitao
33ee59662f 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-01-10 15:19:47 +01:00
Nolen Johnson
f50d9bc3fa lineage: Deprecate AddonSU
* We are no longer providing our own root access solution
  as of 17.0, as PermissionHub has largely replaced the
  functionallity of Privacy Guard, which this feature
  was housed in.

* We do still have a baked in ADB root solution that can
  be enabled in developer settings (see topic:ten-adbroot
  on Gerrit).

* This DOES NOT mean we will be providing support for other
  root solutions.

Change-Id: Iecf92e3c8f91304ed998e0260d09a8048dc44d82
2020-01-03 16:17:22 +01:00
Roman Birg
d51094ce3b vendor: make dopush recognize files on more partitions
Change-Id: Ied1a243730df1d683fd237f8ea7bd9b1742db105
Signed-off-by: Roman Birg <romanbirg@gmail.com>
2019-12-19 20:45:26 +01:00
Sam Mortimer
c386595e0c vendor/lineage: Fix dopush
* $OUT is now absolute so strip $ANDROID_BUILD_TOP before
  looking for targets to adb push.

Change-Id: If00e58a98484b7b6b2ee6e4ecd00fc3031e1f47b
2019-12-19 20:41:18 +01:00
Volodymyr Zhdanov
27180809c5 build: set build fingerprint for all devices
* there's no per device way to add props to /system/build.prop
* adding it here is the only way so far

Change-Id: Iafc286d9e479677540a4ec617db76715c018ae8e
2019-12-18 20:49:06 +01:00
Michael Bestas
8c49ba97f1 soong: Add AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT
Change-Id: Iac6366d714ab3634def648e6a8c0c30d684a9383
2019-12-09 23:58:27 +01:00
Tim Schumacher
cc6f30cf6b Allow building emulator as an sdk-addon
This can be imported into Android Studio more easily, eventually even
as a repository of LineageOS emulator images.

(Build with `m sdk_addon`, it will end up in out/host/linux-x86/sdk_addon)

Change-Id: Ia78524dd729b0f2ccc96f5a6eb2503cdc8b4d253
2019-12-06 23:51:10 +01:00
Jan Altensen
561f974b1e soong_config: add TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE
Change-Id: I96dd2f7dd629a06de288332e1d00be827029e89c
2019-11-24 19:02:48 -05:00
Bruno Martins
a8f45e9914 Revert "lineage: add BUILD_RRO_SYSTEM_PACKAGE target"
AOSP pushes RROs to system by default now,
therefore our custom target is not needed anymore.

This reverts commit 546c9a1ec5.

Change-Id: I46753a3b60a89f0198058fbc6d07d3db8a6699b5
2019-11-22 17:18:47 +01:00
Simon Shields
d5e35c9dda 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-11-22 16:48:05 +01:00
Rashed Abdel-Tawab
15d91cd200 kernel: Only build dtb.img if prebuilt DTB directory is not set
If the prebuilt directory is set, then the AOSP commands get activated,
which will conflict with ours, so just disable ours if the prebuilt
directory is set.

Change-Id: Ia998ea3d1a2d3403d0261cecae12d8a5c4f689ec
2019-11-20 15:24:29 -05:00
Bruno Martins
5c9d6c40e3 Revert "vendor: Add qcom platform type to soongs vars"
These vars are no longer useful as of Q because it looks like CAF dropped
their surfaceflinger extensions (ExtSurfaceFlinger).

This reverts commit 97cb87c809.

Change-Id: I09701f6a47830a30486f35052b4ea7ab15a9660b
2019-11-05 11:42:21 +01:00
dianlujitao
119f9d1759 soong_config: Reverse wait for qsee flag
* Disabled by QCOM on P and onwards

Change-Id: I3f27d399293a95ad75446482c8711adf5fed1f78
2019-11-01 21:05:53 +01:00
Michael Bestas
87e7a31bdb Revert "soong_config: Add flag for legacy HW FDE"
* No longer needed with HIDL cryptfs HALs

This reverts commit c61fabe667.

Change-Id: Idea6bbec97af3951a0be2c3df4068cdad7ef8b0a
2019-11-01 21:05:53 +01:00
Adrian DC
045f664a1a 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-10-30 12:59:48 +01:00
Mohd Faraz
d1d72351b2 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-10-27 11:24:28 +00:00
Rashed Abdel-Tawab
34b5cdc1e3 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-10-27 11:24:28 +00:00
Rashed Abdel-Tawab
42752d4d4e 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-10-27 11:24:28 +00:00
Rashed Abdel-Tawab
8aae50df3c 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-10-27 11:24:28 +00:00
Rashed Abdel-Tawab
8de76b204b extract_files: Support system/ prefixes
With support for 4 independent partitions now, we seriously
need to start putting /system blobs in their own directory.
Add support for file lists with system/ prefixes while
maintaining support for old file lists without it.

Also, TARGET_COPY_OUT_SYSTEM is a thing now, and all devices,
regardless of treble or not, set TARGET_COPY_OUT_$partition
so let's get rid of the treble compat option and default it
to true.

Change-Id: I5b798d293768d7c1e16db3ba01e2de3e083088d7
2019-10-27 11:24:06 +00:00
Dan Pasanen
ac1268953a build: dt_image: use prebuilt lz4 binary for compressing
* Also remove the lz4c fallback. We're providing an lz4
  binary that works, so it shouldn't ever have to fall back
  to lz4c.

Change-Id: I5b1346c55dc97daec13e087c501840628a7265e8
2019-10-26 22:42:20 +02:00
Rashed Abdel-Tawab
d7c6fb7c6a kernel: Define DTBS_OUT path for dtb.img building
Change-Id: I9fb3943c44c74985d9a4a841338767345a11ded2
2019-10-13 17:00:20 -07:00
Rashed Abdel-Tawab
e3c319a271 kernel: Move our dtb.img logic here
Our build/make changes break incremenetal builds with prebuilt dtb dir
(see discussion here: https://android-review.googlesource.com/c/platform/build/+/1134337/1/core/Makefile )

Instead of using the AOSP recipe, just define our own and use it by not defining
BOARD_PREBUILT_DTBIMAGE_DIR

Change-Id: If579b1670db447557b6f76ca79ecec22661c4080
2019-10-07 14:46:06 -04:00
Rashed Abdel-Tawab
2c247d80d0 kernel: Build dtb.img from compiled dtbs
Change-Id: If419d090740c005357fbd1665f78296d106b4509
2019-10-05 05:32:14 +02:00
Rashed Abdel-Tawab
6f3ded864f kernel: Don't re-define dtbo.img names
These are already set in BoardConfig, no need to set them again

Change-Id: I30eb44f748d0f427145beb5d6cd53ece14281abd
2019-10-05 05:31:58 +02:00
Michael Bestas
b08fa7584b Revert "soong_config: Add flag for devices use metadata as FDE key"
* Qcom reverted the relevant commit in cryptfs_hw

This reverts commit a4d6ce67e7.

Change-Id: Ife1812ebc80946953e3d1a558617c94ddbc7fad4
2019-10-03 16:23:59 +03:00
Michael Bestas
6eaad8d36a build: Remove qcom power HAL pathmap
* Power HAL is a HIDL HAL now, so you can simply build
  a device specific one with a different name

Change-Id: I88b0a71dbcc98cbc8e7b5c284a3956e259d21115
2019-10-03 16:23:59 +03:00
Alessandro Astone
33e7ce832c lineage: allow Has_legacy_camera_hal1 to configure Shared_libs and Overrides
* mediaserver is now bp

Change-Id: I07e42ca605a3677ae431b38b0e68e5248e0a608c
2019-10-02 23:47:02 +02:00
Rashed Abdel-Tawab
3467b7a30a kernel: Make kernel depend on depmod
After moving modules to this target, we need to depend on depmod

Change-Id: I32ac51173db304cc019e45df006c26a2583b8587
2019-09-30 13:05:42 -04:00
PIPIPIG233666
17d7dcba43 extract_utils: Fix typo
* ./../../xiaomi/sm6150-common/../../../vendor/lineage/build/tools/extract_utils.sh: line 1: /#!/bin/bash: No such file or directory.

Signed-off-by: PIPIPIG233666 <2212848813@qq.com>
Change-Id: I178f745d4ecb818c38706ff100611df19221065d
2019-09-29 12:49:44 -04:00
Bruno Martins
8194b8e583 extract_utils: Source the prebuilts from the new repo
The prebuilt tools now live in prebuilts/tools-lineage.

Change-Id: I4022210c52e1002aae0c6e622a480e5c7e10c366
2019-09-29 03:06:49 +02:00
Bruno Martins
3dff7da473 build/tools: Move prebuilts to the new repository
Going to be imported into prebuilts/tools-lineage.

Change-Id: I81dd06249a8de8f4970be30d75b396c85d4c4fb7
2019-09-29 03:06:49 +02:00
Alessandro Astone
f8f4877abb lineage: env: fixup recovery fstab path
Change-Id: I36860bdee4f9d3c186ca643becb37ad20213628c
2019-09-27 17:05:33 +02:00
Rashed Abdel-Tawab
08e3a27135 extract_files: Add ODM partition blob support
Change-Id: Id94bbef879b6f4bcc20645c259981f9d163649c9
2019-09-27 06:46:44 -07:00
Michael Bestas
e9731bb5dd build: Don't set pathmap for repositories that do not exist
* Camera, gps and sensors are device specific most of the time
  so we do not sync the generic repositories for these projects

Change-Id: Ibb5d0066e362d285a862ea0c0f2a2c824f84f73d
2019-09-27 15:38:21 +03:00
Michael Bestas
0d941af154 build: Don't set pathmap for AOSP qcom hardware repositories
* No longer needed after I9cf83430ffec4fbd224e724513d371ba8785606d

Change-Id: I594266314e1121ac6f13f9ed79774088667090d4
2019-09-25 21:04:48 +03:00
Rashed Abdel-Tawab
84948089b6 build: Move to new qcom HAL directory layout
All CAF forked HALs now reside in hardware/qcom-caf/

Change-Id: I9f84cebf021418c0b402bc3186f37643e63afb24
2019-09-25 21:03:29 +03:00
Michael Bestas
22fe07435b build: Move hardware/qcom/audio back to its original path
* This is a leftover from the early pathmap changes in cm-12.0

Change-Id: Ie1dc738c65cd7ffbf352eb10271b00da0f5ff393
2019-09-25 21:03:05 +03:00
Michael Bestas
156bdadf9c build: Remove ability to set WLAN/BT_VENDOR variant
* These flags have no users since cm-14.1

Change-Id: Ia2b2fd5d95e856fdae3ec23532bc6eceff2910c6
2019-09-25 20:57:26 +03:00
Rashed Abdel-Tawab
168fd231b6 Revert "kernel: fix KERNEL_TOOLCHAIN_PATH_gcc and usage"
This reverts commit 13f4c837fe.

Reason for revert: reeet. I broke stuff.

Change-Id: If8518aaa409d9afeaf20c689405fd21900fa5e74
2019-09-24 17:22:39 +02:00
Simon Shields
13f4c837fe kernel: fix KERNEL_TOOLCHAIN_PATH_gcc and usage
Previously, this would be a full compile prefix
(e.g. prebuilts/gcc/.../bin/aarch64-linux-gnu-). Since we're adding
this to PATH, it only needs to be prebuilts/gcc/.../bin.

Also remove the extra /bin/ added by kernel.mk.

Change-Id: If2490729128c0243c61de646f6c8e19a15c8dc1c
2019-09-24 17:19:45 +02:00
LuK1337
c62a9fbc31 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-09-21 11:48:49 +02:00
Luca Stefani
736f1be2e8 kernel: Fix specifying custom clang compiler version
* Folder layout name changed in Q

Change-Id: I823867334e87fbb3c240a92e62484b6531dfcd22
2019-09-18 16:37:51 +02:00