Commit graph

3518 commits

Author SHA1 Message Date
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
LuK1337
9d8578bb13 kernel: Switch back to host openssl entirely
* OpenSSL cannot be statically linked because of
  getaddrinfo and gethostbyname calls.
* Also according to soong it's whitelisted:
  33f9529962/ui/build/paths/config.go (L98)

Change-Id: I1718bd98e7ac30d31de38c2cd3bc3e51b7100ce4
2019-10-01 22:42:34 +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
Rashed Abdel-Tawab
06539d4267 kernel: Add OpenSSL libs to LD_LIBRARY_PATH
Change-Id: If266f5f7bf0f2853ea54601023a894935d350754
2019-09-28 00:22:02 +02:00
Alessandro Astone
f8f4877abb lineage: env: fixup recovery fstab path
Change-Id: I36860bdee4f9d3c186ca643becb37ad20213628c
2019-09-27 17:05:33 +02:00
Bruno Martins
da2c7502a3 common: Copy APN list to $(TARGET_COPY_OUT_PRODUCT)/etc
This handles GSI product

Change-Id: I5754ff9c020e094c5ca5bd08e0572584009558ee
2019-09-27 16:57:25 +02:00
Rashed Abdel-Tawab
08e3a27135
extract_files: Add ODM partition blob support
Change-Id: Id94bbef879b6f4bcc20645c259981f9d163649c9
2019-09-27 06:46:44 -07:00
Luca Stefani
24ada062ab lineage: Disable vendor restrictions
Change-Id: I9bd368f04605df469f02b26dae47e587bccc2e52
2019-09-27 15:35:44 +02:00
Michael Bestas
8a5dec51c2 build: Remove TARGET_CRYPTFS_HW_PATH
* Not used since 16.0 where vold/cryptfs_hw switched to bp

Change-Id: I649402d9a3b94df8810d577147e09a51833192a0
2019-09-27 15:38:44 +03: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
Rashed Abdel-Tawab
812efbcbb9
lineage: Move perl base modules to common prebuilts dir
Change-Id: I88df0825c26aaebfa9329cf15eb93d8e2bf728e1
2019-09-23 16:59:39 -07:00
Han Wang
ed76afdfd3 config: Restore org.lineageos.hardware.xml
* Though there is no LineageHW anymore, don't forget
   LineageHardwareService in our sdk depends on it to start.

Change-Id: I8befe1a75b66f54d9ffd7b88871c187a21b08497
2019-09-21 17:31:43 +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
f012c7e744 Remove duplicated priv-app permission
* In Q SystemUI is already whitelisted for this

Change-Id: I2c5b65dc0decfcdc22bebd14cd23c9e730994c34
2019-09-19 21:39:16 +02:00
Bruno Martins
d47d062016 BoardConfigQcom: Fix setting UM4.9 and UM4.14 specific flags
Calling is-board-platform-in-list from this makefile was not
returning the desirable output, thus resulting in a failure
to meet the conditions for the UM4.9 and UM4.14 family platforms.

Due to the fact that this makefile is included in a very early
stage in the build process, the QCOM macros are not defined.
Simply use standard macros like in rest of the makefile.

Change-Id: Iad889882f94167f1bc1761ddd549dac9dcdee3ba
2019-09-19 18:33:00 +02:00
Rashed Abdel-Tawab
9c57748956
lineage: Move openssl to generic 1.1.1 directory and correct darwin path
Change-Id: I2c1ad1054027d5fbf91421342c3c0d3e7972b1a3
2019-09-18 10:36:25 -07: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
Tim Schumacher
6ce1be3e15 Add generic lineage targets to lunch choices
Change-Id: I80d77d7cdbdfa156e951003a218ba8a58d51b3d4
2019-09-18 15:33:53 +02:00
Han Wang
45166aaa2e soong_config: Add new flag for vendor_init
Change-Id: I383f1de230ecf7b79d78fe701b140bd1bc6795f2
2019-09-18 11:25:35 +02:00
Stricted
47d713d9fa lineage: soong: replace space with colon on TARGET_LD_SHIM_LIBS
that way we can split the shim list logically into multiple lines like

TARGET_LD_SHIM_LIBS := /system/bin/gpsd|/vendor/lib/libshim_gpsd.so \
    /system/lib/libexynoscamera.so|/vendor/lib/libexynoscamera_shim.so \
    /system/lib/libstagefright.so|/system/lib/libstagefright_shim.so

to not have one single huge line

[lineage-17.0]
this got lost in:
    soong: rework soong_config for Pie
    Change-Id: I3c5001f02975e5487ba66a02217f1d24d2021272

Change-Id: Ice1411ee22b78da1dbf22eac412b9e4978acebdf
2019-09-17 20:55:18 +02:00
Michael Bestas
b68958a862 config: Remove lineagehw from sdk PRODUCT_PACKAGES
Change-Id: Ib52cae9820f0c77e1481bcbfe1ecea24c18d7e98
2019-09-17 21:32:33 +03:00
Michael Bestas
f4032b8823 config: Replace 'system' with '$(TARGET_COPY_OUT_SYSTEM)'
Change-Id: Id1ebab8f12cb8536f0244706200b91958d90821e
2019-09-17 21:32:25 +03:00
Han Wang
89521b1d7a config: Split priv-app permission whitelist
* As there are some apps in /product now, do the following
   whitelist changes.

Change-Id: I4314c5dc8266ea7bb805399a92ab05f2ef49b920
2019-09-17 21:31:29 +03:00
Michael Bestas
85fdce3325 lineage: Cleanup PRODUCT_PACKAGES
* Reorganize
* Remove no longer used Development package
* Remove LiveWallpaperPicker/PhotoTable which are included in full_base.mk

Change-Id: I56f9f586f27172e7336699dbe57f7a43d7ef8722
2019-09-14 11:21:40 +08:00
Michael Bestas
c379eac6c5 lineage: Remove unused ro.build.selinux
* This was used to show selinux status in Settings

Change-Id: I93332d3a325d303d6f0fff370e5fc983050ce64d
2019-09-13 20:55:04 +03:00
Michael Bestas
24ecfd641c lineage: Remove boosted ringtones
* No longer used by any device and fw/base part is missing

Revert "Update boosted audio files 2/2"

This reverts commit 103c64a964.

Revert "Add volume boosted ringtones (1/2)"

This reverts commit a1c783fb28.

Change-Id: I384f44d515e2bcc237662184de0830836ba95b09
2019-09-13 17:52:19 +03:00
Rashed Abdel-Tawab
509e07e083
lineage: Move audio files to product
Change-Id: Ie58c8643a8e0f9a83eb76a66eb840c02a58042a6
2019-09-13 07:42:34 -07:00
dianlujitao
f30ad9eac7 kernel: Fix module installation and clean up
* Fold module installation into kernel image recipe.
 * Specify make argument to strip modules on installation instead of
   explicitly invoking the strip tool.
 * Remove support of TARGET_KERNEL_MODULES, it's a phony target thus
   we're not allowed to depend on it per Android 10 restriction. It
   has been useless for years anyway.
 * Apply minor clean-ups.

Change-Id: I288af1b2f741f524c2ef49554e15cb91c3115209
2019-09-13 08:28:02 +02:00
Rashed Abdel-Tawab
6802b723a9 kernel: Set kernel build outdir prefix for depmod too
I missed these in the absolute path killing

Change-Id: Ibd63c36b9bafe264c7e05672838e5e0186ac5314
2019-09-13 08:27:55 +02:00
Rashed Abdel-Tawab
c648519530 kernel: Add GCC toolchains to the path
Tools like `as` only exist in the GCC toolchain, so we need that

Change-Id: I025d0d9bdf6eda94a538d2d6ddafbecc8830f471
2019-09-13 08:27:49 +02:00
Rashed Abdel-Tawab
52b26fadaa lineage: Use prebuilt ImageMagick for bootanim
Change-Id: I49301cf09f79d617868ac3d445d243020b587c9d
2019-09-12 00:09:44 +02:00
Bruno Martins
9cc0175f16 lineage: Trash the last bits of SDClang support
Change-Id: I9ccb9b931a63342e233578c3ddbc5ea6391af601
2019-09-11 22:08:31 +01:00
Bruno Martins
ae8f482a0c envsetup: Remove call to deprecated function
This allows us to get rid of the following warning when running
`breakfast` command:

add_lunch_combo is obsolete. Use COMMON_LUNCH_CHOICES in your AndroidProducts.mk instead.

Change-Id: I5b05515465d40b9b77f74c69293a1431c5325f5d
2019-09-11 22:08:19 +01:00
Bruno Martins
85471bb4be envsetup: Kill Jack args export
Jack is dead since O.

Change-Id: I46e2102de025cbe141fb08f0edfb7d24ee3b7e91
2019-09-11 21:49:59 +01:00
Sam Mortimer
55d6ec583d vendor/lineage: Support relative OUT_DIR in fixup_common_out_dir
* For use with LINEAGE_FIXUP_COMMON_OUT=1, update
  symlink handling to work with relative OUT_DIR.

* Fixes error:
FAILED: ninja: error: mkdir(out/target/common/obj): No such file or directory

Change-Id: I958be470b4d9ff2074442f210b1a73541e4981c8
2019-09-10 11:59:52 -07:00
razorloves
b5c2c96a56 extract_utils: Support extracting from product partition
Change-Id: I2d0d01253fdf93d63a26556208d45cd69e76329f
(cherry picked from commit ea15be6e92e3be0c103948d220de64fd2e1d781f)
2019-09-10 11:28:05 +02:00