Commit Graph

679 Commits

Author SHA1 Message Date
Christian Hoffmann
621f14f2ce lineage: products: Add ATV x86_64 emulator targets
Change-Id: I2ab42a7800b9754e784b2bf5dad7e6fea839b8ff
2024-12-05 19:23:52 +01:00
Christian Hoffmann
00ca937549 lineage: products: Use 6.1 for atv x86
Kernel 6.6 is not currently set up for CONFIG_NETFILTER_XTABLES_COMPAT,
breaking 32-bit iptables userspace.

Change-Id: I79823ea1c66d841f204a1d3c241619abb51f9040
2024-12-05 15:07:58 +00:00
Alexander Martinz
8e47b88870 roomservice: check all device repositories
Some devices have the same codename but shipped a long time
ago and may not have a current branch set up.
Continue looking up all repositories until a match is found
or no repos are left to check.

For example:

  - android_device_amazon_thor
    - cm-14.1
  - android_device_xiaomi_thor
    - lineage-21.0

  - android_device_semc_zeus
    - jellybean
  - android_device_xiaomi_zeus
    - lineage-21.0

  - android_device_amazon_otter
    - cm-12.1
  - android_device_shift_otter
    - lineage-21.0

Change-Id: Icf9826b31efd872363fdfe73d5a71ff2d06cbe20
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2024-12-04 16:58:36 +00:00
Michael Bestas
d6777fa812 config: Changes for libfmjni bp conversion
Change-Id: I666bdc4c1d0cdab4d2557c07f32466cceabe8439
2024-11-01 20:32:14 +00:00
LuK1337
426aa2d862 soong: Remove LD_SHIM_LIBS support
Change-Id: I4a45fdd9a140a95aa42861bf294bfb8e8bb91f34
2024-10-30 08:38:03 +01:00
Michael Bestas
dc34f77675 kernel: Nuke --cuda-path/--hip-path
Revert "kernel: Check HIP support of clang before disabling it"

This reverts commit 62c1374385.

Revert "kernel: Force disable LLVM HIP"

This reverts commit ef68678120.

Revert "kernel: Force disable LLVM CUDA"

This reverts commit ba14020f85.

Change-Id: I5cb2b4624eb0ec25dbc8c1b5888708d961ae59d7
2024-10-19 01:10:12 +02:00
Michael Bestas
e2610f23f2 build: Don't set a default fingerprint
Since ADDITIONAL_SYSTEM_PROPERTIES is being deprecated, this will
need to be handled in build/make and build/soong

Change-Id: Ib4925969f0d9f60ea5b30455806ff80a1817d61f
2024-10-19 01:10:12 +02:00
Michael Bestas
870c3ef1b3 build: Move version & legal properties to PRODUCT_SYSTEM_PROPERTIES
ADDITIONAL_SYSTEM_PROPERTIES is being deprecated.
No functional changes.

Change-Id: I01fd45edcc6c700540d3b7352fc466e65677a44e
2024-10-19 01:10:12 +02:00
Michael Bestas
39b81453e7 build: goodbye Cid :')
Change-Id: Ida0778c0f6a9d02f7e87f75847472358b7c03076
2024-10-19 01:10:12 +02:00
Michael Bestas
e93a56f126 build: Drop lineage sdk versions
Change-Id: I2448822be41835723995734b4e20f191f3ce8987
2024-10-19 01:10:12 +02:00
Michael Bestas
ffca5f4c63 soong: generator: Update for 15
Change-Id: I6f5be3f06f282b036cee5c2a884f1082f698bcaf
2024-10-19 01:10:11 +02:00
Michael Bestas
89c5cd1501 build: Switch to _get_build_var_cached
Change-Id: Id53622f5ce7de406f66b8374c3e91604deb4742b
2024-10-19 01:10:11 +02:00
Michael Bestas
44dcb39378 build: Drop makerecipe/mk_timer from envsetup
Change-Id: I5c15e2f509f69abb3cf993aaab945da47098f3da
2024-10-19 01:10:11 +02:00
Michael Bestas
a01acb80ff build: Split envsetup help to a separate file
Document missing functions while we are at it.

Change-Id: I76063d36775c8c7326153de50e44a24410fc11a2
2024-10-19 01:10:11 +02:00
Michael Bestas
a422a1a574 build: Import check_product from lineage-21.0 build/make
Change-Id: I6cb2856bbc15bc25fc3ad6a4c1a6aa6aa56057f1
2024-10-19 01:10:11 +02:00
LuK1337
6f60459814 Revert "roomservice: Try major-only revision if default doesn't exist"
This reverts commit 39392c99e1.

Change-Id: I124fb3cb668715b1c15a7bcd07f5889785333c16
2024-10-19 01:10:11 +02:00
Sebastiano Barezzi
f887bc5ac5 kernel: Add {recovery}kernelconfig
This target just builds the `.config` in
`KERNEL_OBJ`/`RECOVERY_KERNEL_OBJ` to quickly check if fragments are
applied properly, not to be used during an actual kernel build

Change-Id: Ic92fe7bd544f6d0f1b3169c1405aceb6702775e0
2024-10-18 12:59:55 +00:00
LuK1337
beb9645944 build: Make gsi_arm{,64} inherit full_base_telephony.mk
Without it, some packages such as overlays for 3 button/gestural
navigation aren't installed.

Change-Id: Ic72d9cb628e6f276de0cec6d84130d09d4e218ec
2024-10-09 18:00:00 +00:00
Yumi Yukimura
25dd1aad63 bacon: Make it possible to let other build targets depend on lineage OTA package
Change-Id: I04ed91b62beed9728c354ea73f7c0baa72213808
2024-09-20 15:32:30 +00:00
Chirayu Desai
2d402ed8c0 Revert "roomservice: Use ElementTree.indent()"
Revert submission 402436

Reason for revert: Breaks build

Reverted changes: /q/submissionid:402436

Change-Id: Ia53f8a2c2a39ee437c334c5157a2f7dc5aed44ac
2024-09-13 00:44:07 +00:00
Chirayu Desai
76b04d2f8b Revert "roomservice: Use ElementTree.write()"
Revert submission 402436

Reason for revert: Breaks build

Reverted changes: /q/submissionid:402436

Change-Id: Iac5d3be6cb7692d93dc68c7124dd4362e0800321
2024-09-13 00:44:07 +00:00
Jyotiraditya Panda
13e7f92f72 roomservice: Use ElementTree.write()
write() handles XML conversion and file writing internally.
The xml_declaration=True parameter adds the XML header
automatically, eliminating the need for manual string manipulation

Change-Id: Ib8c3fe33e60accad05572c5af0f0b90866a219d9
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
2024-09-12 18:50:41 +05:30
Jyotiraditya Panda
3bab6429ec roomservice: Use ElementTree.indent()
Replace custom indent() function with the built-in ElementTree.indent()
method, which was introduced in Python 3.9:
https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.indent

Change-Id: I45c513a2f02a36c012490db9b05b8fa1eec356ca
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
2024-09-12 18:32:31 +05:30
Cosmin Tanislav
198966577a soong: add powershare configs
Change-Id: Ia0654765e45b9b36caca680eac134c714dcb4da0
2024-08-22 15:00:48 +00:00
LuK1337
8ba07c4cfc kernel: Deduplicate file paths in file_list.txt
This is a workaround for broken dirty rebuilds.

Test: breakfast gts4lvwifi && m && m
Change-Id: I2529efd0685f15eace5031df39e226dd5eaca1e8
2024-07-24 17:32:08 +00:00
Han Sol Jin
ed59eaf090 kernel: use systemimage_intermediates on devices with no vendor
Change I8b6040e03589bde2af4e161c891ded237a9bb335 did not account for
devices without a separate vendor partition, causing build to fail with
the following:

FAILED: ninja: '/file_list.txt', needed by 'out/target/product/joan/obj/KERNEL_OBJ/arch/arm64/boot/Image.gz-dtb', missing and no known rule to make it

Use systemimage_intermediates instead on said devices.

Test: m kernel
Co-authored-by: Bruno Martins <bgcngm@gmail.com>
Change-Id: If9eb75a1bef98345e9c137c2463e392d50be239b
2024-07-12 21:05:05 -07:00
Sebastiano Barezzi
3fe68ad58a kernel: Better x86 support
- Mention the right kernel image on documentation
- Build dtbs only when the dts folder exists, Google enables CONFIG_OF
  on x86_64 GKI config, this is also the same check done on Linux
  Makefile

Change-Id: I1b0f7a39b0b00f2a4516d2cff79e591136ee3af8
2024-07-12 03:11:30 +02:00
Aaron Kling
b3f09c69c8 kernel: Add kernel modules to partition file list
This is required to ensure that kernel modules end up on the final
partition images when `BUILD_BROKEN_INCORRECT_PARTITION_IMAGES`
environment variable or board config variable is not set.

See 152cdfab7c
for more information.

Co-authored-by: Bruno Martins <bgcngm@gmail.com>
Change-Id: I8b6040e03589bde2af4e161c891ded237a9bb335
2024-07-11 07:05:32 +00:00
Dhina17
b9ca97bc45 envsetup: dopush: Update regex to match remaining build time
QPR2 introduced remaining build time in the progress box [0]
but it was broken with tee cmd so dopush() was worked fine.
Now, QPR3 fixed that issue so dopush() is broken.

Example:
[ 99% 394/395 1m30s remaining] Copy: out/target/product/devon/apex/art_boot_images/javalib/arm/boot.art
[100% 395/395 1m30s remaining] Install: out/target/product/devon/system/framework/framework.jar

Change-Id: Ifdfcfe0f750d39f4e3fe7d669e5094729d75e224
2024-07-10 22:04:25 +05:30
Yumi Yukimura
14403c2122 roomservice: Set timeout when accessing GitHub
* Bypasses the literally infinite timeout for users who have
  limited access to GitHub (before: 2m13.749s, after: 0m14.354s)
* The timeouts should be enough for users who have freedom internet
  access, even ADSL network connection shouldn't take that long...

Test:
1. Execute `source build/envsetup.sh`
2. `breakfast` a existing device
3. Add "0.0.0.1 github.com" and "0.0.0.1 raw.githubusercontent.com"
   to /etc/hosts
4. `breakfast` any device, observe that it should not take up to
   minutes to quit

Change-Id: Ib90e69c75a50e66b47e6245cb6d0521351b5c71b
2024-07-02 00:28:34 +00:00
Maitreya25
15bbe27486 kernel: Include OEM DTBs in build
Some OEMs (for example: oplus) push their dtbs to their own folders which causes kernel build to error out, fix this by including non qcom dtbs as well.

Change-Id: I2f51db103475cd2609cd061e0ec66af5accb96ab
2024-05-30 17:18:55 +00:00
Arian
0b86619dc5 soong: Add power libperfmgr extension config
Change-Id: I401335a1851948bae8de42d0f86af4763dd795b3
2024-05-19 15:53:36 +01:00
Aaron Kling
49c4dd8f86 kernel: Error on duplicate modules
This can happen when an out of tree module target uses a matching module
name from the base kernel. This causes two problems:

1) Depmod gets confused and only pulls symbols from one of the modules
2) Copying the modules to modules_out is not entirely deterministic and
   is based on the first variant to be returned by find, meaning that
   the variant that gets copied to the device could change build to
   build.

To avoid these issues, fail the build if this happens and force the
build target to only generate one copy of each module name.

Change-Id: I2e47ba4e142054feabaa1ab80fbbe0332fd84a62
2024-05-13 20:45:15 +00:00
Bruno Martins
4ffd90db94 Revert "Hookup SDMCORE_HAS_IS_DISPLAY_HW_AVAILABLE_FUNC"
This reverts commit bc8d7739ac.

Reason for revert: no longer needed when using blobs that match tag
DISPLAY.LA.3.0.r1-10700-KAILUA.0.

Change-Id: Ia89ce566a4cade6091a2dc6bc4e8b56ef7d1f73b
2024-04-22 21:19:09 +00:00
Alexander Martinz
3db0f47263 envsetup: cloremote: build got moved to build_repo
Build is now a group instead of a repo.
The actual repo got renamed to build_repo.

Change-Id: I61f65251896d18c3025d849109206d44e2686c70
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2024-04-11 14:17:37 +00:00
Kilian von Pflugk
8bda0bf62b products: lineage_{gsi,sdk}_tv*: Remove TARGET_USES_64_BIT_BINDER
The TARGET_USES_64_BIT_BINDER option is deprecated and can be removed

Change-Id: I6b828da1fbcc8c054c5b35ff78c870a689f7ed9f
2024-04-09 02:07:42 -04:00
Aaron Kling
1b0fc0e043 fixup! kernel: Support copying modules to boot ramdisk
Original commit incorrectly added kernel as a dep to the vendor ramdisk
for this path, when instead the dep should be added to the boot ramdisk.

Change-Id: I25a42d403fe2ddb0538b08c2dd8f761eae960810
2024-03-30 06:38:58 +00:00
mse1969
5b8dd24b8e lineage: products: sdk_phone_x86_64 emulator - fix sdk_addon packaging
With the merge of tag 'android-14.0.0_r29', the emulator sdk_phone_x86_64
is inherited from device/generic/goldfish. This means, that the component
PRODUCT_SDK_ADDON_COPY_FILES needs to be defined here.

Change-Id: I2cee21d27f28521f34e80262c2abda6b7eb3360c
2024-03-27 23:48:10 +00:00
LuK1337
75b2afaadf repopick: Require python3
Change-Id: I95f598947a29b2095bd7539b1f279dccc1b25097
2024-03-26 20:09:48 +01:00
mse1969
105b86ee09 lineage: products: sdk_phone_x86_64 emulator - restore partition sizes
With the merge of tag 'android-14.0.0_r29', the emulator sdk_phone_x86_64
is inherited from device/generic/goldfish. Its defined super partition
size of 1.6GB however is too small to build the LineageOS 21 emulator.

Therefore, overwrite the partition sizes with the values as previously
set in build/make/target/board/BoardConfigEmuCommon.mk

Change-Id: Ib8443cb3d8cacb42cab68f154845574fadf99b55
2024-03-25 17:22:39 +01:00
mse1969
01a36e1909 lineage: products: remove sdk_phone_x86 emulator target
necessary after merge of tag 'android-14.0.0_r29':

 e04167e Retire obsolete (32bit-only) emulator targets and boards

 Please use 64bit-only targets instead:
 [...]  * we don't support x86+arm for AOSP targets

Change-Id: I001b97e218f837005d4283bd0540519b00301783
2024-03-24 23:20:28 +01:00
mse1969
b0d0c6fa41 lineage: products: Fix lineage_sdk_car* emulator targets
necessary after merge of tag 'android-14.0.0_r29':

 228de7b Remove sdk_<arch> products

 The SDK is arch-agnostic, so does not need per-arch products.

Change-Id: Idac94e841e749d6dcc4aa643b8738f8c07ac71fa
2024-03-24 23:17:17 +01:00
mse1969
1c69ed407e lineage: products: Fix lineage_sdk_phone_x86_64 emulator target
necessary after merge of tag 'android-14.0.0_r29':

 4bf479f Retire obsolete emulator targets and boards

 the sdk_phone* targets are replaced with sdk_phone64*,
 the emulator* boards are replaced with emu64* in
 the device/generic/goldfish folder.

Change-Id: Ie36e73684d586223bbce642a62cf155a3990713e
2024-03-24 23:13:00 +01:00
LuK1337
dfec562594 kernel: Add clean headers script to workaround conflicts with bionic
After the "Avoid multiple definitions of sigaction." change in bionic,
we ought to modify our kernel headers to make sure that sigaction struct
is not present in uapi headers.

Change-Id: I15645480e013e79cbcafaac99253368b646b6b11
2024-03-20 20:53:44 +00:00
Michael Bestas
a0003041e1 envsetup: Fix breakfast
Change-Id: I9742638765f323876bffcdd0d9c1131d28a54614
2024-03-20 20:53:44 +00:00
LuK1337
2a348e8e2b repopick: Use number instead of id for error msgs
Change-Id: I1ebfd8315d1dbbdbee2cd50095f5d7c6b98e7057
2024-03-11 11:58:11 +01:00
LuK1337
f3ee86687f bacon: Depend on $(DEFAULT_GOAL)
This makes sure that $OUT contains images for all partitions.

Test: breakfast tangorpro && m bacon && ls $OUT/vendor_boot.img
Change-Id: Ia59a1fb7d9d1054040453ff2e7954ea6d7c61fde
2024-03-04 16:10:36 +01:00
Luofan Chen
bc8d7739ac Hookup SDMCORE_HAS_IS_DISPLAY_HW_AVAILABLE_FUNC
Change-Id: Icb4b8aebd8042e9f83bacddee1e7949cf373226d
2024-02-16 00:26:40 +00:00
DroidFreak32
9fe4bc8a60 lineage: products: Bring back lineage_sdk_phone_arm64 emulator target
Change-Id: I0578608bd78e1a03f90b17de4ee558646ce9ef2f
2024-02-14 22:13:08 +00:00
LuK1337
2f89bf24a2 roomservice: Remove python2 imports
Change-Id: Id65a4c139f14106632587634c42ef9941b55d0c1
2024-02-14 09:22:34 +01:00