Commit graph

572 commits

Author SHA1 Message Date
Michael Bestas
ed8e192818 config: Remove TARGET_CAMERA_BOOTTIME_TIMESTAMP
This is no longer needed in T

Change-Id: Id14c88a548c14a8c26858a13f262f355ba72745e
2022-10-23 03:14:52 +02:00
Aaron Kling
50de801adf kernel: Add support for custom dtbimage generation rules
Change-Id: I79d67f9f40ef3f0970d0e29393d00600b57e337b
2022-10-18 00:59:46 +02:00
Alessandro Astone
39392c99e1 roomservice: Try major-only revision if default doesn't exist
Change-Id: I91c18a1711e0d01b25e33b30bf0be9bbd443904e
2022-10-10 14:58:57 +02:00
Alessandro Astone
a4cbd27142 roomservice: Finer branch control for roomservice repositories
* Recursively extend the fallback branches mechanism to any
  layer of dependencies.

* Instead of forcing a dependency to use the fallback branch,
  check for each repository if the current one is available.

* Always write the revision in the manifest entry

Change-Id: I37a4aa094de51e9f58e72851f3bc9dc4767dd79b
2022-10-10 14:58:57 +02:00
Tim Zimmermann
bcfa69d705 kernel: Support building dtbimage with mkdtboimg.py config
Change-Id: Ic0efbf0308e334c1cfe0df0493caa71afe27a621
2022-10-02 17:45:12 +02:00
Michael Bestas
0d450dd954
kernel: Changes for 5.10 build without GCC
Change-Id: Id6e09467937e60e6b00a30a246ba0a4a8d71687b
2022-10-01 00:46:45 +03:00
Michael Bestas
8ab31cfc01
kernel: add pahole dependency
This is needed for 5.10+ T kernel build.

Change-Id: I0729af39cad5509ea3bc8629fdf1176156be6c08
2022-09-28 22:03:50 +03:00
Chirayu Desai
404fb47daf fixup! Hookup GRALLOC_HANDLE_HAS_RESERVED_SIZE
Change-Id: Id12058a238c241acb138e3e419bb0bab8280e51b
2022-09-20 01:50:24 +05:30
Chirayu Desai
b5da4d5070 Hookup GRALLOC_HANDLE_HAS_RESERVED_SIZE
* Needed for camera on redbull 13

Change-Id: Ibc1d941f8a6e5e61e3a56cb0065e387022fa3441
2022-09-19 19:17:27 +05:30
Michael Bestas
1c39c90a8d QCOM: RIP pre-UM families
Change-Id: I36e88d74928303ef13334e5feb3d4d3a98c25bd3
2022-09-19 11:26:29 +02:00
Luca Stefani
a1af8cb166 kernel: Allow passing empty DTB to mkbootimg via board-flag
* Boot Image header v2 demands a DTB be passed by default.
* We don't /need/ one at all, as we have and use a dedicated
  DTB partition.
* Signing hates trying to find dtb.img anywhere for some magical
  reason, so cheat and introduce a flag to include a blank one.

Change-Id: I889ce3815476a55829870b30de1b9210283a79ae
(cherry picked from commit fa16b42ddd1eb341f201b8d810c717ea12afe1cb)
2022-09-15 23:02:14 +02:00
Michael Bestas
18dd1748df
kernel: Changes for LLVM binutils
* Remove KERNEL_LD from kernel.mk, we simply set LD in BoardConfigKernel
* Add llvm-ar in path allowlist (used by LTO)

Change-Id: I76addb6f9d8d413edb1832dba23082ffb6d5ebc3
2022-09-08 04:39:49 +03:00
Michael Bestas
a8bbd0e4aa
config: Remove BOOTLOADER_MESSAGE_OFFSET
This hasn't been ported after lineage-18.1

Change-Id: Ie3d798a009a4e0042b767839b39dd6f68695ef2a
2022-08-30 03:13:55 +03:00
Michael Bestas
50fb699870
config: Remove TARGET_PROCESS_SDK_VERSION_OVERRIDE
This hasn't been ported after lineage-18.1

Change-Id: I3024e503e97075d5bfffc41b60da83a445a4e580
2022-08-30 03:13:55 +03:00
Michael Bestas
fa5bc45a95
config: Remove TARGET_DISABLE_POSTRENDER_CLEANUP
This hasn't been ported after lineage-18.1

Change-Id: Ib1bca251c6de7529c58ea2fb9b439e37b55be6c5
2022-08-30 03:13:55 +03:00
Michael Bestas
3bff07a506
config: Remove TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE
This hasn't been ported after lineage-18.1

Change-Id: I2946fdb08c09a3bfd238d65103869dc89ca2b558
2022-08-30 03:13:55 +03:00
Michael Bestas
e19c6db3c9
config: Remove TARGET_IGNORES_FTP_PPTP_CONNTRACK_FAILURE
This hasn't been ported after lineage-17.1

Change-Id: I2aff9bb7bc17fa1444a904d47248d885268bf29b
2022-08-30 03:13:55 +03:00
Michael Bestas
e020bffce2
config: Remove TARGET_HAS_MEMFD_BACKPORT
Change-Id: I17444007429f826bf3d7504cba760204c476e664
2022-08-30 03:13:54 +03:00
Michael Bestas
1cfc6cbf4b
config: Remove TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY
This hasn't been ported after lineage-18.1

Change-Id: Ib3ae63ee549b774349268a42923e462a3ef975a0
2022-08-30 03:13:54 +03:00
Michael Bestas
829f975cd8
config: Remove TARGET_HAS_LEGACY_CAMERA_HAL1
Change-Id: I6f4cbe41f6df3ceb6b4058d5b6e77c02e1899809
2022-08-30 02:43:52 +03:00
Michael Bestas
89fd58c860
config: Remove TARGET_USES_QCOM_BSP_LEGACY
Change-Id: I93f111285c46e1a1f811b9d8555de96474d60386
2022-08-30 02:39:47 +03:00
Michael Bestas
f1614da261
config: Remove QCOM HW FDE setup
Change-Id: Ia88a5331e5f3b69a2eea95aa13338f4282779856
2022-08-30 02:36:39 +03:00
Michael Bestas
73732cd931 envsetup: cafremote -> cloremote
Adapt function for .gitupstream so we always get the correct
remote without needing to calculate the path manually.

RIP CodeAurora

Change-Id: I56720dfb859a08c53e79255a9e5e61e7a2e50619
2022-08-25 15:44:58 +02:00
Arian
eb72c64757
soong: generator: Replace android.SourceDepTag usage with IsSourceDepTagWithOutputTag
Change-Id: Iad5d9a07d06a7efda233cc8d3387e8db5c3b0ab5
2022-08-23 02:02:20 +03:00
Michael Bestas
5dfc89a4db
kernel: Always build dtb targets before dtbo.img
Fixes:
error: unable to open output file
'arch/arm64/boot/dts/google/devices/bluejay/google-base/.gs101-b0.dtb.dts.tmp':
'No such file or directory'

Change-Id: I457062e46062fb3553421d196b432de7d06a49ad
2022-08-13 15:16:31 +03:00
Michael Bestas
319d4c4e9a
kernel: Add support for vendor_boot image header version 4
vendor_boot v4 supports packaging multiple "fragmented" vendor ramdisks.
A secondary can be used to store the kernel modules instead of storing
them in the "normal" vendor_ramdisk.

Test: Create a vendor_boot with source built kernel/modules,
      gs101 still boots.
Change-Id: Ic295ccf201c2593e08b9559ae28f80c70a7eb341
2022-08-13 03:02:44 +03:00
Neel Chauhan
fadfdbf4f5
kernel.mk: Allow building external kernel modules
Here, we introduce the TARGET_EXTERNAL_KERNEL_MODULES variable
for the list of external modules.

Change-Id: I1f8b7a48e66bb0c9efbc396692e5a7159f0b835c
2022-08-11 18:34:23 +03:00
Michael Bestas
98447383e4
kernel: Allow overriding dtb target
On some devices we might want to build just the *.dtb files
that we actually need instead of the every dtb that exists.

Change-Id: Id7a152499d4ee1dd08f79d34cc34bfe959313515
2022-08-11 18:34:23 +03:00
Michael Bestas
12b812b4c9
kernel: Allow overriding dtbo target name
gs101 kernel uses google/dtbo.img target for dtbo.img

Change-Id: Ib03f35c0035f56d303771de9399bcce3d02c0775
2022-08-11 18:34:23 +03:00
SahilSonar
cb15b81b01 qcom: Add holi platform
Change-Id: I1f41059c385a37bef71bd7d8ee34739d8bcca77a
2022-07-19 18:12:17 +02:00
althafvly
68544f936f lineage: products: Un-break SDK addon
- Fixes error while building
  Trying to build sdk_addon, but product 'vendor/lineage/build/target/product/lineage_sdk_phone_x86_64.mk' does not define one
- Move gsi_release.mk to gsi_tv_arm*.mk. SDK and x86* targets won't build.
- Set TARGET_SUPPORTS_64_BIT_APPS for x86_64 gsi to support both arch apps.

Change-Id: If01e2eecfc5e27a98e696c29f29babbc1a5ec726
2022-07-04 20:05:29 +02:00
Alexander Koskovich
a78681c09c
kernel: Move TARGET_KERNEL_ADDITIONAL_FLAGS to kernel task
* Currently, because DTC_EXT make flag is in the
   kernel task the only way to override it is to
   have TARGET_KERNEL_ADDITIONAL_FLAGS come after.

Change-Id: If62ed979581dc07eafd4628ce2b2d799388d3704
2022-06-24 14:23:06 +03:00
Alexander Koskovich
911b7c47b3
kernel: Switch to AOSP DTC instead of using scripts/dtc
Change-Id: I8faf295dfb84ab7481b80d5b7d2add8ed8ddf6d9
2022-06-24 14:23:05 +03: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