Commit graph

3518 commits

Author SHA1 Message Date
LuK1337
43442c29c7
lineage: Mark generated_kernel_includes as recovery_available
Change-Id: Id4eed981e601244330a8ced1d5433254d808b3fd
2019-09-09 13:05:13 -07:00
Luca Stefani
05b688012e
lineage: Rework bootanimation generation
Change-Id: Ib0b363c3e0545cb0c86dc69dd1a75f82dd777e59
2019-09-09 13:04:03 -07:00
Luca Stefani
70207cd54d
kernel: Fix nproc number
kati wrapper is forcing this to 2 for some reason. Hack around it.

Change-Id: Ie056f3e43645515f3c5922e0fbf79a0b5ecf7856
2019-09-09 12:21:36 -07:00
Rashed Abdel-Tawab
ba5ea35eb6
kernel: Use absolute path for kernel O= argument
The kernel make command is executed in the build root. Without absolute
out paths, kernel out start with "out/" meaning it would be created in
the kernel source. Add BUILD_ROOT to the argument to ensure it's always
made in the actual out/ dir.

Change-Id: I425134a893d4d5c9f31efccaf75e153b5462b76c
2019-09-09 12:21:35 -07:00
dianlujitao
295ddaa61d
Fix real file depends on PHONY target
Change-Id: Idd42f4575dfd9fbbff9ab15e20e65d932df0390c
2019-09-09 12:20:43 -07:00
Rashed Abdel-Tawab
493ad4b8a5
kernel: Set kernel toolchain roots for aarch64, arm, and x86
The GCC toolchains are no longer added to the path by default, so
we need to hardcode the full paths for these. Also set variables
for every arch, and then set the toolchain to the arch specific var.
This is so we can set the ARM32 cross compile flag for vDSO32
enabled kernels.

Change-Id: I7e099a26a17f4a3cc9be6232a26c671e8fcfbdef
2019-09-09 12:20:43 -07:00
dianlujitao
bd16a8e3a4
kernel: Use linux-android- toolchains to build kernel on aarch64 and x86
* -androidkernel ones became symlinks to -android ones long time ago, use
   -android executables directly to simplify the logic on these platforms.
 * Keep arm on -androidkernel because it doesn't boot for some reason.

Change-Id: I97dd93121fc0e805a965e3f8b84466dd7bd686c0
2019-09-09 12:20:43 -07:00
Rashed Abdel-Tawab
dfc3d1830d
kernel: Use prebuilt binaries
perl, lz4c, and a bunch of other binaries are not allowed anymore.
So we need to provide our own.

Change-Id: Idbc88b76247b3dda7c5d52e5eed2d548c33f6f2d
2019-09-09 12:19:44 -07:00
Rashed Abdel-Tawab
d7e24e397b
kernel: Link against prebuilt openssl
Using preinstalled system headers and libraries is no longer allowed.
So we're gonna make our own prebuilts/openssl so we can build kernels.

Change-Id: Ic5bc3b14c37b3bca352932c6f19a592377dbaf27
2019-09-08 13:41:36 -07:00
Rashed Abdel-Tawab
3ad0e0d705
kernel: Use full user defined path to ccache
The built ccache command is now deprecated and spits out errors. ccache is
also no longer used for the full build unless CCACHE_EXEC is defined. Move
the kernel to the same logic in order to actually use ccache and silence
the warnings.

Change-Id: Iccedd9d5868d31060677667cc18810aae0149a26
2019-09-08 13:41:35 -07:00
Rashed Abdel-Tawab
21ee5983e2
kernel: Use full path to the gcc/g++ commands
gcc and g++ are now dissallowed commands so just run the full commands

Change-Id: I2ba5675a3f5410f51fc37b723714b35f1e4628c8
2019-09-08 13:41:35 -07:00
Rashed Abdel-Tawab
fb35b9da61
kernel: Use full path to the make command
make is now a dissallowed command so just run the full command

Change-Id: I9390dc5a8bcd17f316354b88bdbc65ac8663b369
2019-09-08 13:41:35 -07:00
Alessandro Astone
b49ab9152b
lineage: soong: _contents -> _json_contents
Change-Id: I2baa36bbb9aff3a7e70a293ed3352fb718eb611c
2019-09-08 13:41:31 -07:00
Sam Mortimer
a97560956e
vendor/lineage: Depend on existing definition of empty
Defined and marked readonly in build/make here:
7ddc50a066/common/core.mk (L46)

Change-Id: Ic233f0d41d03b28beb8d96c68692271d959fa188
2019-09-07 14:44:10 -07:00
Rashed Abdel-Tawab
2c1eae6ffe
lineage: Remove deprecated vendorsetup.sh
Change-Id: I13d6b98e9520e8f61b261ffdf171c11624303122
2019-09-07 14:44:10 -07:00
Rashed Abdel-Tawab
aca09b2a8b lineage: Add goldfish privapp whitelist and move to common lineage makefile
Lineage GSIs now work.

Test: lunch lineage_arm64-eng; m -j systemimage
Change-Id: I416b184b4f601f12871f7c4da0181b189d91a21b
2019-09-07 23:39:27 +02:00
Adrian DC
62bd267bd3 overlay: Show DocumentsUI internal storage by default
Change-Id: I1ada4009c5f71681761d1fb033d3d1c8609b7797
2019-09-07 23:28:03 +02:00
Paul Keith
17da6ad0bb Revert "vendor/lineage: Add support for java source overlays"
This reverts commit af96975506.

Change-Id: I837a5a8e8523e9e9959abe83dabcc333e87eac17
2019-09-06 00:38:06 +02:00
Rashed Abdel-Tawab
b6b3421188 Lineage 17.0
Change-Id: Ib166a6218d18cf192aa314477e4044892b068e97
2019-09-05 10:38:36 +02:00
Aaron Kling
fda4e1ba57 Disable AudioFX on atv
The interface is not usable on atv

Change-Id: Ibe2c33e5528b593ae338a62cee62e6fe9cfe47ad
2019-09-04 17:17:04 +02:00
Bruno Martins
0eba72af4d prebuilts: Remove outdated TCP init script
These props are long deprecated and code cross reference
takes us back to KitKat days.

Change-Id: Id98f6ade71d877b64466906ddb1a1e6dd251904a
2019-09-03 16:05:13 +02:00
Micha? Trzebiatowski
7036106af9 LatinIME: Add en_GB, en_US, lt, lv, ro, sl, sr, tr dictionaries
Missing dictionaries were built from wordlists (using dicttool) which are in LatinIME:
https://github.com/LineageOS/android_packages_inputmethods_LatinIME/blob/lineage-16.0/dictionaries/

Now both have the same amount of 32 languages.

Default dictionaries (de, en, es, fr, it, pt_br, ru) don't need to be added again, are included here:
https://github.com/LineageOS/android_packages_inputmethods_LatinIME/tree/lineage-16.0/java/res/raw

Change-Id: Iafe8441dc179b579c9c99338649045eeb7a7f675
2019-09-03 16:02:17 +02:00
Rashed Abdel-Tawab
3254cafe49
kernel: Add TARGET_KERNEL_ADDITIONAL_FLAGS to allow setting extra cflags
Also fix KERNEL_MAKE_FLAGS not being used by the kernel make command

Change-Id: I8786d6c1de6652f87a02c990c4b56f62b0cc0203
2019-09-01 17:45:00 -07:00
LuK1337
f58145602f overlay: Disable config_keyguardUserSwitcher on sw600dp
* It's not behaving properly and I don't feel like fixing it.

Change-Id: I634a9abe99299d66a94f9d1ff7d8011476646933
2019-08-25 23:06:30 +02:00
Aaron Kling
871f250c7d lineage: atv: Inherit lineage atv device tree
Change-Id: I869d9d24a61088762ea5cb1a3cc655ef11b0c521
2019-08-24 21:59:29 +02:00
Luca Stefani
c4e288c467 backuptool_ab: Make copy_file preserve file/directory attrs
Change-Id: I52c7b124ff8364464643c51b3f17dba4e4e49435
2019-08-24 12:18:05 +02:00
LuK1337
276e7770bf vendor: Add vendor.lineage.biometrics.fingerprint.inscreen permission
Change-Id: I149508317c4f0312e88faf5324275867e79e35e9
2019-08-24 10:25:55 +02:00
Luca Stefani
214dfb9402 lineage: Enforce privapp-permissions whitelist
Change-Id: I1ca080e5addcc0876d7346f3cf09db8e8af39312
2019-08-21 12:04:08 +02:00
Erik Kline
4ec881366c config: Use tether automatic upstream selection
(config_tether_upstream_automatic=true)

Test: as follows
    - built, flashed, booted
Bug: 32163131
Bug: 62648872
Bug: 63282480
Bug: 110118584
Bug: 110260419

Change-Id: I604cda53d6d37a33de3e3ccc65c0da781d21278b
2019-08-19 19:02:22 +02:00
LuK1337
19074ef55f overlay: Remove config_wifi_wakeup_available
* It doesn't exist anymore.

Change-Id: I6f855f097febbc986dd8d94d862f154842641d1b
2019-08-15 21:50:21 +02:00
jhenrique09
97cb87c809 vendor: Add qcom platform type to soongs vars
Required for new commits on frameworks/native

* Fix lag during screen recording on some platforms
* Fix screen flickering after disconnecting from Android Auto on some platforms

Change-Id: Ia0ed0bbfda44fb5ccb184ace854ec1bf9a7d819a
2019-08-11 12:01:44 +02:00
Michael Bestas
8ea42c9fe0 config: Remove duplicate notification sounds
Change-Id: I1ec1ae4618f6f2a511a34ca0673600a65f9a971f
2019-08-11 01:49:35 +03:00
Michael Bestas
1585d0a8a0 config: Include charging sounds in notification sounds
... in order to make them selectable in charging sounds settings.
This way the user can go back to the default sound.

Change-Id: Iced4614baddd9033e0772e4a4221ed48dea6fc57
2019-08-11 01:49:35 +03:00
Han Wang
31c5070843 overlay: Remove config_auto_perf_activities
* Removed long ago.

Change-Id: Ic0becb9b0e2120ff8032fb046d6b0f211b82813f
2019-08-08 07:02:45 +02:00
Kamil Sztuke
eb8277b19e LatinIME: Add Polish dictionary
dictionary is built from 4y old dictionaries which are in LatinIME
https://github.com/LineageOS/android_packages_inputmethods_LatinIME/blob/lineage-16.0/dictionaries/pl_wordlist.combined.gz
https://github.com/LineageOS/android_packages_inputmethods_LatinIME/blob/lineage-15.1/dictionaries/pl_wordlist.combined.gz
using dicttool,
dicttool build was possible thanks to
a92d0f9262

Change-Id: I4bffbb10e06c904ad58877ff920e581caa958d67
2019-08-06 11:21:04 +03:00
Rashed Abdel-Tawab
2e39f356ac lineage: Make a lineage_x86_64 target
* For addonsu.

Change-Id: Ic4c701cdfe1126870258182df631192e06527fe5
2019-08-01 19:50:59 +02:00
LuK1337
a5e776e514 privapp-permissions: Allow Trebuchet to use android.permission.STATUS_BAR
* cough * someone forgot to update permissions whitelist again.

Change-Id: Iedcdb0568ea1b9924144841a8d20ca6f05bbe29b
2019-07-25 15:31:29 +02:00
Rashed Abdel-Tawab
05aded86f3 qcom: Add UM 4.14 platforms
* Note: msmnile is treated like msmnile because unlike other Qualcomm
  codenames msmnile does not expand to 8150.

Change-Id: If246c0ec06de22097d369c17ce48aa1270bab19c
2019-07-20 08:36:55 +02:00
LuK1337
6047f5a0c5 kernel: Consider depmod version when handling kernel modules
* This fixes dirty boot image rebuilding on devices
  with CONFIG_LOCALVERSION_AUTO=y and any driver
  set to =m.
* Basically appending `cat include/config/kernel.release`
  to modules path makes sure that our find does not
  return old modules which would make cp fail with
  'cp: will not overwrite just-created' message.

Change-Id: Ifb79d33b95d7671d8b2d6633644c8b8290d1f442
2019-07-19 21:49:04 +02:00
Rashed Abdel-Tawab
19c36cd7a6 extract_utils: Support multidex
Co-authored-by: Erfan Abdi <erfangplus@gmail.com>
Change-Id: I4881658d303b6c5c7f0b141beb50c1e9100af611
2019-07-18 07:31:36 +02:00
LuK1337
bf5dcb13f5 common: Add getcap/setcap to PRODUCT_PACKAGES
* These are pretty useful for debugging config.fs
  changes without rebuilding full system/vendor image.

Change-Id: I68fdeb2dc7c9f225784b55425407657645e34ac8
2019-07-13 20:46:19 +02:00
Vasyl Gello
bc4bce82d4 Fix bootanimation destpath if building off-tree
If the build is invoked off-tree, like:

    . build/envsetup.sh
    export OUT_DIR=/some/other/dir/out
    export DIST_DIR=/some/other/dir/dist
    breakfast chagalllte
    mka \
        target-files-package dist

the bootanimation.zip is correctly generated in $OUT_DIR.

However, if the user overrides directories after breakfast, i.e:

    . build/envsetup.sh
    breakfast chagalllte
    mka \
        OUT_DIR=/some/other/dir/out \
        DIST_DIR=/some/other/dir/dist \
        target-files-package dist

the destination path of intermediate bootanimation.zip is still
controlled by $ANDROID_PRODUCT_OUT which is set by build/envsetup.sh.
This leads to a copy error and a failed build.

The fix overrides $ANDROID_PRODUCT_OUT by the always-known PRODUCT_OUT
(make variable defined in build/core/envsetup.mk), making it error-prone
to environment variable declaration.

Also, the "sh" invocation is replaced with generic make-variable
$(shell).

Change-Id: Ic94d1b538fc01946b628f9b5d776548a03acde97
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2019-07-09 09:56:02 +03:00
Isaac Chen
60912cff97 build: Support SDM710 platform
Change-Id: I958a6bfd1087f5437f4074e614198bb622d476ce
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2019-06-27 20:00:28 +01:00
LuK1337
dd5fecb333 addonsu: Pass filesystem type for mounting /system_root when needed
* Some TWRP releases expect -t parameter.

Change-Id: I5f4a55883b94e821bfcef06df7d121db1d6145a4
2019-06-26 19:31:37 +02:00
Rashed Abdel-Tawab
1c29c373dd extract_utils: Add functions to extract vendor blobs from vendor.img
Change-Id: I6f37adc955856fa78e719eb30249800abe80020c
2019-06-26 04:37:44 +02:00
Ethan Chen
a7b2d0a620 build: Separate platform macros from QCOM platform definition
* The macros used in the file formerly called "qcom_utils.mk" are
  actually generic and not QCOM-specific. Move the QCOM_BOARD definitions
  to a QCOM-specific location, and name the remaning macros something more
  generic.

Change-Id: I6747bc9201e56b456caf251122057d7dbc233f1c
2019-06-26 01:11:42 +02:00
Ethan Chen
66ce59c88e build: Reorganize inclusion of QCOM macros
* There's actually not a whole lot QC-specific about these macros,
  make them available at definition.mk inclusion time rather than
  relying on BoardConfig to include them.
* Don't create a dependency on QCOM macros from a makefile
  that is included very early in the build process.

Change-Id: I3dcaf0e068ca44732cfe58f69384621781ddda67
2019-06-26 01:10:51 +02:00
LuK1337
40ab94de5f privapp-permissions: Regenerate permissions list
* Regenerated using development/tools/privapp_permissions/privapp_permissions.py

Change-Id: I9f49e92dbf92dc545dee782124d45db1e70df471
2019-06-25 23:54:57 +02:00
Ethan Chen
123fcd3761 build: Remove unused script
* http_prebuilt.mk appears to be long gone.

Change-Id: I8ca584fc1e468bb47164984bb363f0cf29750e68
2019-06-25 23:13:21 +02:00
Ethan Chen
b7b49cc07d build: Use ifeq/else ifeq/else construction in board config
* Instead of nesting ifeq/else/ifeq/else/endif/endif construction, make
  allows the more readable ifeq/else ifeq/else/endif construction. Use it
  instead.

Change-Id: Ifd2635929799db593e04a13827f05c97e95487e4
2019-06-25 23:13:21 +02:00