Commit Graph

546 Commits

Author SHA1 Message Date
Danny Lin
53a8d7403a build: Override host metadata
* Matches the Android 12 build sandbox: https://android.googlesource.com/platform/build/+/refs/tags/android-12.0.0_r2/Changes.md

Change-Id: I032127e2724b34e649bcc73c347c8e67df1f45b0
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-06-23 01:51:27 +05:30
xNombre
b6fc654d28 kernel: Use newest clang for kernel build by default
By every clang update everyone has had to update clang version in BoardConfig.
Now these flags can be removed as latest clang will be used by default.

For those how need to build with default clang version a new flag is introduced: TARGET_KERNEL_USE_DEFAULT_CLANG.

Signed-off-by: xNombre <kartapolska@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-06-23 01:51:26 +05:30
Kyle Harrison
27172c0953 soong: Update camera_in_mediaserver_defaults
- Add android.hardware.camera.provider@2.7

Change-Id: I1ad534d87ce3b35d0116bccdbc0ac7f70c799c00
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-06-23 01:51:26 +05:30
Hikari-no-Tenshi
d538dafa85 vendor: soong: Add camera_needs_client_info_lib
Signed-off-by: firebird11 <hbgassel@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-06-23 01:51:26 +05:30
Lup Gabriel
1b00e88454 crdroid: Generate OTA json at build time
needs vendor_crDroidOTA cloned to <source root>/vendor/crDroidOTA

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-06-23 01:46:53 +05:30
Pranav Vashi
d2eb4ca2b6 build: Ship as crDroid based on LOS
* While LOS is base ROM, there are/will be additions over LOS.
  Therefore, rebrand and ship it as crDroid ROM.

Change-Id: I53c407da455885af7029853ff635090f34b01f0c
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-06-23 01:46:53 +05:30
Pranav Vashi
30c4f0dc2d crdroid: Add changelog script
Squashed:
ed37902026
3484fbf1d9
caeb656fae
4b20c6b833
00b5467b5c
83641d09ea
8c1b56f6b8
712068531c

Change-Id: Iaa749a64020fbec8218c216c54e040563dbf438a
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-06-22 20:22:22 +02:00
Michael Bestas
87c0acd05e Revert "kernel: Remove unneeded MKDTIMG dependency"
This reverts commit caa3bddf00.

Reason for revert: Breaks pixel dtbo.img build, since kernel depends on
mkdtimg. Add it back so it gets compiled and kernel can pick it up.

Change-Id: I2b9fd0b2b35e0cf2f908516b10f65399780d5c30
2022-06-20 11:51:56 +02:00
Michael Bestas
caa3bddf00 kernel: Remove unneeded MKDTIMG dependency
Change-Id: Icc1923e922adb50b02252883aa6814101837adfc
2022-06-18 10:26:14 +02:00
dianlujitao
709371be5e kernel: Ensure dtb(o) always get rebuilt
* AOSP build system is not aware of dtb(o) source update, and thus
   won't rebuild the images, results in outdated artifact.
 * Convert DTB(O)_OUT to make targets and make the images depend on them
   to address the issue. This makes AOSP build system be aware of
   their timestamp changes and re-execute recipes depending on them.
   Finally, it's up to kernel's build system to decide actions to take.

Test: m dtb(o)image and observe dtb(o).img get rebuilt
Change-Id: I197e7d2d3e013ded0e555fc22bb6a1200d40df9c
2022-06-18 10:26:14 +02:00
dianlujitao
9955cd657b kernel: Avoid unnecessary savedefconfig
Change-Id: I5400e549a6574208d67c5d107ca56eee402fa7f2
2022-06-18 10:26:14 +02:00
dianlujitao
8c6398e9fd kernel: Clean up kernel copy recipes
ACP and ALL_PREBUILT are dropped years ago and thus have become no-ops.

Change-Id: Ic317cb4a4fa406cce0dc86555fb8da34d21fb2bf
2022-06-18 10:26:14 +02:00
Danny Trunk
20bf195599 soong: Add TARGET_USES_EGL_DISPLAY_ARRAY conditional
This soong variable is used to conditionally revert a commit [1]
which causes random camera crashes on tama devices

[1] a9550f3fe9

Change-Id: I749c7029f8f2b6d6d95b066aed4929c33e3c75e7
2022-06-16 17:04:56 +02:00
Michael W
39881f863a repopick: Limit commit counting
* For every commit, repopick checks the last commits for the presence of
  the commits to be picked
* In every project a change should go in, it calls "git rev-list --count"
  to find the maximum amount of commits to be searched, but it only cares
  if there are less (or equal) commits at all than to be checked
* Therefore, we can limit the counting to one more than we want to check
* This is relevant for example for fw/b, where there is a huge amount of
  changes and therefore a lot of time used to count

* Example: fw/b
  git rev-list --count HEAD: 46.693s
  git rev-list --count --max-count=1000 : 0.019s
* Real-life example:
  repopick -t qs-lightmode
  Old: 2m33.375s
  New: 0m6.657s

Change-Id: If0500574fb282e332996b606dd9926841f8e0e88
2022-06-15 20:57:30 +02:00
Michael Bestas
fbadddae84
envsetup: Add sort-blobs-list
Change-Id: Ie871fe0bc9dd432e632ca8e9d7fa70c96a82a8c3
2022-06-09 18:50:47 +03:00
Alexander Koskovich
3bab7d780e lineage: build: Wipe DTB/O OBJs before build
* They can linger and cause problems, e.g. mismatching
   kernel and DTBs.

Change-Id: I4adafe140093ff675fc3f55e3233a754d44d5656
2022-05-31 01:37:14 +02:00
Sebastiano Barezzi
f224255cd9 soong: Drop TARGET_USES_QTI_CAMERA_DEVICE
* qcom-camera topic hasn't been ported to 19.1

Change-Id: Ifb053d215527d602109bbb451d96ec80cf028548
2022-05-19 16:05:23 +02:00
Bruno Martins
bf9c45fa42 kernel: Document TARGET_KERNEL_RECOVERY_CONFIG usage
Change-Id: Idefd38dae5e8beac7d7de797f3f792fea25dacef
2022-04-09 14:46:47 +02:00
Bruno Martins
f5023f46f9 kernel: Fix building recovery images
Commit 8ac7d31 introduced this issue.

Test: run `m recoveryimage` and verify that recovery
image is now built.

Change-Id: Iffdd8112db2ba1baff28db7ee4c340dbb5ebd917
2022-04-09 14:46:47 +02:00
Bruno Martins
03f2b69dc7 kernel: Fix kernel rebuilding
Commit 8ac7d31 introduced this issue.

Test: run `m installclean && m bootimage` and observe that
kernel image is built.

Change-Id: I41eb7cd2e5108bae8f4c40c0f9a300a8a3cc95a7
2022-04-09 12:58:09 +02:00
Sebastiano Barezzi
8ac7d31285 build: tasks: kernel: Rework kernel fragments handling
* Since some time you can specify multiple configs when you prepare .config and they'll get merged to main one
* To use it inline:
TARGET_KERNEL_CONFIG := main_defconfig fragment1.config fragment2.config ...
* TARGET_KERNEL_ADDITIONAL_CONFIG has been nuked since it's superseed by this new logic
* kernelsavedefconfig will only use the base defconfig

Change-Id: I479c762a9235ed0ef6fcdc79b53e084d5e2d78a6
2022-04-04 03:54:39 +02:00
Edwin Moquete
834a1081c3 lineage: Pass mka argument to m
* Needed for brunch/mka bacon to work

Change-Id: I0eb44c030eb965e76404e10a7c710ff411eec7ff
2022-03-26 02:27:06 +00:00
Nolen Johnson
057ffca824 lineage: Make mka a function again
* This caused breakages in subshells from scripts.

* Still keep the dropping of `-j`, as it's not needed.

This is a squashed revert of:

    Author:     Timi Rautamaki <timi.rautamaki@gmail.com>
    AuthorDate: 2022-03-24 08:21:34 +0000
    lineage: move mka definition above brunch

    Otherwise it's not defined for brunch.

    Change-Id: I642e3db365fab46d4428d1b1f310304280b72efc

    Author:     Alexander Koskovich <akoskovich@pm.me>
    AuthorDate: 2022-03-21 07:54:20 -0700

    envsetup: Remove threads argument from mka

     * "m" is multi-threaded by default.

    Change-Id: I5c9bb30dc49dafa31ba9fc70e617f477b6814b41

Change-Id: If4112ae739d8356f922cbbaf8e3d7ded5d078bd0
2022-03-25 18:52:34 +01:00
LuK1337
ec10ed10f8 soong: Add TARGET_TRUST_USB_CONTROL_{PATH,ENABLE,DISABLE}
Change-Id: Ib245114588fd14c83069e4365f9ca3e9e9536ba9
2022-03-24 14:46:34 +01:00
Timi Rautamäki
b55f5af61b lineage: move mka definition above brunch
Otherwise it's not defined for brunch.

Change-Id: I642e3db365fab46d4428d1b1f310304280b72efc
2022-03-24 09:28:07 +01:00
Alexander Koskovich
145ffa4316 envsetup: Remove threads argument from mka
* "m" is multi-threaded by default.

Change-Id: I5c9bb30dc49dafa31ba9fc70e617f477b6814b41
2022-03-23 15:21:01 +01:00
Nolen Johnson
8db975cd36 lineage: products: Rename ATV targets to reflect AOSP GSI names
Change-Id: I96a28e5beaffd9148be2ddb379f8990c172ca69f
2022-03-19 19:21:02 +01:00
Nolen Johnson
4d09aac1ec lineage: products: Create new Automotive GSI targets
* And split out emulator includes as needed to do so.

Change-Id: I9a9e02dc9ebf4613bf2da6be9985a8565dac93fc
2022-03-19 19:20:54 +01:00
Michael Bestas
518ab667f2 build: Fix kernelsavedefconfig target
Change-Id: Ie3d9a187693f2435f2555658c833de666848e48e
2022-03-15 17:21:22 +01:00
Tom Pratt
c86992e0cd Fix GSI targets
Inherit from AOSP gsi_{arch}.mk, because aosp_{arch}.mk files
are obsolete in Android 12. Rename for consistency with
AOSP gsi/sdk targets.

Change-Id: I449390521307ff4f269a9ebf1ad3a5ffc398bc97
2022-03-13 23:33:39 +01:00
Nolen Johnson
d0b3a4af0f lineage: products: Add ATV emulator targets
* device/google/atv only supports armv7 and x86, so
  for emulator at least, we will too.

Change-Id: I5c7f00f8dd34d9d95747d05b6c091376451cc986
2022-03-12 23:49:24 +01:00
Alexander Koskovich
6d88852d2e lineage: config: Make LLVM kernel compile the default
* GCC was deprecated awhile ago, the large majority
   of devices should now be using this. Clang should
   be opt out as opposed to opt in.

Change-Id: Ie388aff8eca189663f2f615f7d059e47eaf2dce3
2022-03-10 11:06:43 +01:00
Alexander Koskovich
c5853fe2b8 lineage: build: Drop MSM7K board platforms
* If someone finds a device that uses these platforms
   in 2022, let me know.

Change-Id: I5478d45f40497788d28a4bd04fae7838aae7e116
2022-03-03 17:08:28 +01:00
Alexander Koskovich
4d0c884d23 lineage: build: Drop QSD8K board platform
* This platform was last mentioned during CM 9 in
   android_vendor_qcom_opensource_kernel-tests_mm-audio.

Change-Id: I7e91d17303b74bed3a9c220366868afd8176a7f7
2022-03-03 17:08:28 +01:00
Alexander Koskovich
e12f9f0d97 lineage: build: Drop MTK board platforms
* Remove MTK board platforms, nothing uses this when
   looking for 'MTK_BOARD_PLATFORMS' across the entire
   organization. This lets us revert the utilities back
   to how they were in the QCOM tree.

Change-Id: If3d3a3e7543b79108b26a30c0e02bb3ab154f279
2022-03-03 17:08:28 +01:00
Jarl-Penguin
7adc095f6a kernel: INSTALLED_RECOVERY_KERNEL -> INSTALLED_RECOVERY_KERNEL_TARGET
* Make it consistent with the rest of the targets

Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Change-Id: I869d3d8570b4deb2f1e019efa975526a528ca3e7
2022-02-20 13:26:31 +01:00
Nolen Johnson
8e215b7200 lineage: products: lineage_x86{,_64}: Don't build kernel
* Results in an error.

Change-Id: Ifab94ca34bab75d8e55b317f69060fc02f068ecf
2022-02-15 19:44:19 +01:00
Nolen Johnson
d8bdaefb4f lineage: products: lineage_x86{,_64}: Don't include SDK addon
* This doesn't work, and just errors out similar to arm/arm64.

Change-Id: I53a2261095f1e2acab3b7da20d3f092ccc83e8ab
2022-02-15 19:41:41 +01:00
Tom Pratt
5a35edd014 Rename automotive emulator targets
Matches the upstream separation of gsi and emulator targets.

Change-Id: I07947727c39b87d2bd1ee6bf2809a7f40ff380ba
2022-02-13 11:03:28 +01:00
Bruno Martins
43c8f40ba9 envsetup: Fix long time broken path to sh
Change-Id: Ia76d14e10571dd6f3ac9f4adf288effae851ffe3
2022-02-08 23:09:21 +01:00
Michael W
a28fa6de34 envsetup: dopush: Correct paths
* In order to automatically restart the system when pushing SystemUI, the
  path must actually be correct
* Since android 10 it's in system/*product*/priv-app and 11 will move
  it again, so just match it anywhere
* Make framework also location independent

Change-Id: I4a9eb1edbbb21ab8abe17815c606921f7a538b7f
2022-02-08 22:59:55 +01:00
TheScarastic
af717a279c soong: Rename fod to udfps
* now flag is changed to TARGET_SURFACEFLINGER_UDFPS_LIB from TARGET_SURFACEFLINGER_FOD_LIB

Change-Id: I499b31d00a053b865ceaa3b34a9762f980bbf14e
2022-01-26 22:56:32 +01:00
Alexander Koskovich
e220ca2625
lineage: tasks: Support copying kernel modules out to /vendor_dlkm.
Change-Id: I84993ba5e0190d310c326da7806e82f627e37a58
2022-01-22 22:39:21 -07:00
Chirayu Desai
d91d695664 kernel: Implement build time LTO choice
Change-Id: I898eb50fadb6bde5beebf46f443c5de7e6acc907
2022-01-13 14:40:31 +01:00
Alessandro Astone
174ee28d0f Revert "Revert "kernel: fix KERNEL_TOOLCHAIN_PATH_gcc and usage""
The fix was correct...

This reverts commit 168fd231b6.

Change-Id: If550fd44f32b801553b8ac23cb2a91d3f29df557
2022-01-06 16:41:05 +01:00
Alessandro Astone
8ace32e27d build: Define QC_OPEN_PATH
All references in sm7250 repos point to the correct location
if we simply define QC_OPEN_PATH as vendor/qcom/opensource

Change-Id: Ibb580230212a08c73a251c88630217b192979eb4
2021-12-10 22:42:52 +01:00
Michael Bestas
a427f43848
build: Enable mainline checking for GSI/emulator targets
* This is originally done in build/make but it checks against aosp_* targets
* Enable it for all of our lineage_* targets

Change-Id: I9fa62c8f709bd649d114f24f241d42d471489ae5
2021-11-28 23:53:13 +02:00
Tom Pratt
33384ced53 Use sdk_{arch}.mk as base for automotive emulator targets
It no longer boots using aosp_{arch}.mk and aosp targets all
use sdk_{arch}.mk now.

Change-Id: I2f6c644353966a58299fbdfa42c7fd3b0d5dea90
2021-11-23 12:53:24 +01:00
Michael Bestas
baab5a81f5
build: Remove legacy GSI targets
* Support for these targets is no longer present in build/make

Change-Id: I2b07ca52c3040f8b1592dd9760ca2357105e082d
2021-11-14 20:20:52 +02:00
SagarMakhar
5a4a0c748e
Rework rule building in lineage_generator
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I05c36b8660e51a18ac70a6712b2d03edfc561156
2021-10-15 15:09:42 +02:00