Commit graph

665 commits

Author SHA1 Message Date
Michael Bestas
5146fd9854
build: Import check_product from lineage-21.0 build/make
Change-Id: I6cb2856bbc15bc25fc3ad6a4c1a6aa6aa56057f1
2024-10-24 20:00:30 +02:00
Cosmin Tanislav
1547e5f7ee
soong: add powershare configs
Change-Id: Ia0654765e45b9b36caca680eac134c714dcb4da0
2024-10-24 20:00:30 +02:00
Han Sol Jin
4dce6f9768
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-10-24 20:00:30 +02:00
Sebastiano Barezzi
e4a046294b
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-10-24 20:00:30 +02:00
Aaron Kling
ad4d8af7e8
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-10-24 20:00:30 +02:00
Dhina17
fe0af9d2f6
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-10-24 20:00:30 +02:00
Yumi Yukimura
07706facd4
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-10-24 20:00:30 +02:00
Maitreya25
cd720fb6ac
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-10-24 20:00:30 +02:00
Michael Bestas
2fdf082279 soong: generator: Update for 15
Change-Id: I6f5be3f06f282b036cee5c2a884f1082f698bcaf
2024-09-07 20:47:30 +00:00
Michael Bestas
0a7410cb9e build: Split envsetup help to a separate file
Change-Id: I76063d36775c8c7326153de50e44a24410fc11a2
2024-09-07 20:47:10 +00:00
5d311b2821
vendor: github.com -> gitownia.eu 2024-09-05 21:16:52 +02:00
Omkar Chandorkar
995388722d
vendor: tasks: Add updatepackage target
Change-Id: If1fe461bfc1eea2c759073d3ab0d48b77024cf88
2024-05-25 22:23:33 +02:00
2d7eb8d7c9
bacon: Show nice ASCII art after build is done
Change-Id: I6fec2585c76c8b95447c485c09ecf43c3af08565
2024-05-25 22:23:33 +02:00
80a67129e3
Initialize tequila 2024-05-25 22:23:29 +02:00
622d772008
Remove automotive and atv support 2024-05-25 05:23:24 +02:00
7794936473
Remove nvidia support 2024-05-25 05:11:08 +02:00
4d7baa67a1
kernel: Allow prebuilt kernel on all builds 2024-05-25 05:00:50 +02: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
LuK1337
2a9bbcf403
roomservice: Require python3
Change-Id: I08429fbc9380b3a1f04bbcc5116fedf3e2457747
2024-02-14 09:06:18 +01:00
Michael Bestas
f0b1169abd
build: Provide qti_kernel_headers module
Change-Id: Ifbe76bf4e08fe6671886d83dde084381ebeda180
2024-02-13 21:34:29 +02:00
LuK1337
3e865ebb78 roomservice: Add support for remote=aosp-*
This will let us sync kernel prebuilts directly from AOSP.

Change-Id: Ie94f84ee7ec5020023533f8f3364b546ace4983d
2024-02-13 12:12:19 +00:00
LuK1337
65498a79bd repopick: Skip commit_exists() check when using -p
Change-Id: I7b99e8c940bddad80e6362302f1ae24248e42faf
2024-02-12 21:45:28 +00:00
LuK1337
92ced50692
repopick: Fix logic for skipping already merged changes
We can't iterate a list and update it at the same time.

Test: Run `repopick -t XXI` twice
Change-Id: I85651783531b59fd4b48d54a663c22cb243edac7
2024-02-11 11:03:43 +01:00
dianlujitao
77e5f117f7 repopick: Use hostname of the URL to determine lineage gerrit
Change-Id: Ifd3883917bc4acd7d58179235d880f2e4a43b670
2024-02-08 20:26:58 +08:00
Yumi Yukimura
b5e2177257 roomservice: Add support for dry run
* In local build environments, we may want roomservice to
  not mess with the repos and local_manifests

Change-Id: I83014fdedbfdcd9f731463954a8779cf6d1f4cbf
2024-02-08 07:25:01 +00:00
Aaron Kling
d725e592fe kernel: Support kernel modules via kbuild
TARGET_EXTERNAL_KERNEL_MODULES variable is used for the list of modules,
same as the existing functionality, but is invoked if ':kbuild' is
appended to a module name

Existing external module build calls make in the module directory, which
is a standalone module build. The module makefile may chain to kbuild,
but that depends on the module. This addition invokes the kernel build
system, passing the module directory via the M= param, which is the
kernel standard for building out of tree modules.

Change-Id: I38a582952f79f7155cdbf8a5975cf23074bbdab0
2024-02-07 18:00:28 +00:00
Aaron Kling
2f1c529782 kernel: Support copying modules to boot ramdisk
Android supports loading modules from the boot ramdisk in the case of
vendor ramdisk not existing.

Change-Id: Ide1255b2c37ee262c8a4181d5eb0e380d0488edc
2024-02-07 18:00:28 +00:00
dianlujitao
12c5c7233e repopick: Clear Pyright warnings
Change-Id: I63962cc31820329a0fcf8ed96a13ef12a9f67875
2024-02-06 09:39:58 +00:00
dianlujitao
ce64349c54 repopick: Check fetch result based on the actual commit
Checking for FETCH_HEAD is not reliable when fetching in parallel.

Change-Id: I0c07f7c4bffb80e5d12b13f301ba684b95112272
2024-02-06 09:39:58 +00:00
dianlujitao
8a3a02e0b5 repopick: Apply change in parallel
Change-Id: Iafd803422082bcc17f2ad3300df3882d689f3674
2024-02-06 09:39:58 +00:00
dianlujitao
0b48b9b0c1 repopick: Avoid repeatedly performing the same check
Jobs such as check for already picked changes only need to be done once
for each git repository, but it was lunched every time picking a commit.

Change-Id: I87b3fea101dbcedb38502015fe9a9af5f25b397c
2024-02-06 09:39:58 +00:00
dianlujitao
6682b3f35a repopick: Use the builtin urllib to handle HTTP basic authentication
Also do proper URL encode while at it.

Change-Id: I64c0913eed535b109af2adc830288b3dd17c0cbb
2024-02-06 09:39:58 +00:00