Commit graph

67 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
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
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
80a67129e3
Initialize tequila 2024-05-25 22:23:29 +02: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
Michael Bestas
a0003041e1 envsetup: Fix breakfast
Change-Id: I9742638765f323876bffcdd0d9c1131d28a54614
2024-03-20 20:53:44 +00:00
Michael Bestas
83fbf7dc32
envsetup: aospremote: Take .gitupstream into account
Adapt function for .gitupstream so we always get the correct
remote without needing to calculate the path manually.

Test: Run `aospremote` in `kernel/configs` repository.
Change-Id: Idcac37ded4a5b2d62d26dc01dd7d68039def6220
2023-04-17 19:29:41 +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
Michael Bestas
fbadddae84
envsetup: Add sort-blobs-list
Change-Id: Ie871fe0bc9dd432e632ca8e9d7fa70c96a82a8c3
2022-06-09 18:50:47 +03: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
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
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
Bruno Martins
9b70f838e9 envsetup: Make dopush() /system_ext aware
Change-Id: Iee4b1fea656f2fd0262cde4f5a634ec95dd6dab8
2021-05-01 11:20:57 +02:00
Dhina17
4280154049 envsetup: replace __detect_shell with basename $SHELL
- __detect_shell is dead long ago.
  $SHELL is a global env var in all shells.

Change-Id: Ie6bd4bbc9d52832a6d42933993c4bc6d0d058633
2021-04-26 20:31:46 +05:30
Dhina17
5c1d8be8c2 envsetup: fix lineagegerrit push for zsh
- fixes:
  error: src refspec HEADefs/for/lineage-18.1 does not match any
  In zsh, :r is a modifier.

Change-Id: Ie6a2a079a96f13c8eb6732a796bab2c2700d7276
2021-04-26 20:30:41 +05:30
LuK1337
3bd9a6607a lineage: Handle build type suffixes properly
This gets rid of grep error code when running breakfast.

Change-Id: I7a8eb86b6068ae1973a96a929129da9eaa84865c
2021-04-13 19:40:01 +02:00
Luca Stefani
3d5480724f envsetup: s/wait-for-online/wait-for-device-recovery/g
Change-Id: I3fd52aa99d281837fdbdba3b1d268572061a900d
2020-03-13 23:30:39 +01:00
Alessandro Astone
cdf9ae8532 lineage: modernize functions
[installrecovery]
 * Don't try to mount system

[installboot]
 * Kill kernel module pushing
 * Now we don't need to mount system anymore ^.^

[eat]
 * No need to use /cache/recovery/command when we have
   adb reboot sideload-auto-reboot
 * Make use of our custom adb wait-for-online

[_adb_connected]
 * Could be removed entirely, but for now make it use
   adb wait-for-online

Change-Id: Ife25e63c63c784670c7d330f8a69de01326de1a0
2020-03-05 12:18:40 +01:00
Roman Birg
d51094ce3b vendor: make dopush recognize files on more partitions
Change-Id: Ied1a243730df1d683fd237f8ea7bd9b1742db105
Signed-off-by: Roman Birg <romanbirg@gmail.com>
2019-12-19 20:45:26 +01:00
Sam Mortimer
c386595e0c vendor/lineage: Fix dopush
* $OUT is now absolute so strip $ANDROID_BUILD_TOP before
  looking for targets to adb push.

Change-Id: If00e58a98484b7b6b2ee6e4ecd00fc3031e1f47b
2019-12-19 20:41:18 +01:00
Alessandro Astone
f8f4877abb lineage: env: fixup recovery fstab path
Change-Id: I36860bdee4f9d3c186ca643becb37ad20213628c
2019-09-27 17:05:33 +02:00
Bruno Martins
9cc0175f16 lineage: Trash the last bits of SDClang support
Change-Id: I9ccb9b931a63342e233578c3ddbc5ea6391af601
2019-09-11 22:08:31 +01:00
Bruno Martins
ae8f482a0c envsetup: Remove call to deprecated function
This allows us to get rid of the following warning when running
`breakfast` command:

add_lunch_combo is obsolete. Use COMMON_LUNCH_CHOICES in your AndroidProducts.mk instead.

Change-Id: I5b05515465d40b9b77f74c69293a1431c5325f5d
2019-09-11 22:08:19 +01:00
Bruno Martins
85471bb4be envsetup: Kill Jack args export
Jack is dead since O.

Change-Id: I46e2102de025cbe141fb08f0edfb7d24ee3b7e91
2019-09-11 21:49:59 +01:00
Sam Mortimer
55d6ec583d vendor/lineage: Support relative OUT_DIR in fixup_common_out_dir
* For use with LINEAGE_FIXUP_COMMON_OUT=1, update
  symlink handling to work with relative OUT_DIR.

* Fixes error:
FAILED: ninja: error: mkdir(out/target/common/obj): No such file or directory

Change-Id: I958be470b4d9ff2074442f210b1a73541e4981c8
2019-09-10 11:59:52 -07:00
Michael Bestas
a504aa4498 envsetup: Add githubremote function
* Useful for picking changes from our repositories
  to AOSP based repositories before forking them

Change-Id: I4f1d733354591fd3db431dd590ccf46e12f6a342
2018-08-30 23:17:00 +02:00
Adrian DC
a8e06d3593 envsetup: Filter unique push paths in dopush
* Reverse the FILE and TARGET handling to sort
    and filter unique paths to be pushed

 * Resolves the 'mkap systemimage' where
    /system/etc/nano/* symlinks were pushed
    multiple times in loops

Change-Id: I178cec2e1708ad9239d9e544544fca157639e3b5
2018-07-08 20:20:53 +02:00
Adrian DC
6393a3f083 envsetup: Fix adb recovery state detections
* The original commands were checking a file,
    and validating that adb ran without error,
    resulting in an always-true result

 * Fix eat and _adb_connected by properly
    checking the 'test -e' error code

Change-Id: I49f82f04f4b51097be76f03bf7021203665da76f
2018-07-08 20:20:53 +02:00
Michael Bestas
9e6bde5205 envsetup: Fix lineageremote for caf projects
Change-Id: I9d98cef27deea805904f4500c4bc02905da885f4
2018-04-22 03:45:42 +02:00
nicknitewolf
0bb793eb38 envsetup: Update default path for SDCLANG 4.0
Change-Id: Ia5eebb977a1f90c94557d27386d2b6d907ac4483
2018-03-27 17:09:52 +00:00
Pengxuan Zheng
7f5d4e1050 Add support for using the secondary SDLLVM toolchain
If LOCAL_SDCLANG_2 is set to true, the secondary SDLLVM toolchain
(SDCLANG_PATH_2) will be used instead.

Change-Id: Icb7492562aeaa3c584edcbced8fe1e98776774bd
2018-03-27 17:09:52 +00:00
Mandeep Singh Grang
dc8df22add Rules to enable LTO for Adreno GFX driver.
This patch controls rules when LTO is enabled for Adreno GFX driver.

Change-Id: I45bd163889ffd3e0237d5451adaca0fc411b14f8
2018-03-27 17:09:52 +00:00
Michael W
2e203941cc envsetup: Clean up for install[boot|recovery]
* Remove the files from device after installation

Change-Id: I52dc60c22abde972a066b879b3a74459261966e5
2018-01-29 02:50:01 +02:00
Rashed Abdel-Tawab
b52c70881d
envsetup: Automatically replace qcom/opensource with qcom-opensource
CAF doesn't use qcom/opensource in their paths, so automatically adjust
the project path for this when using cafremote

Change-Id: I6252fbd1c3e8a545c0d54eefb6b730b893821574
2017-12-24 22:44:11 +02:00
Paul Keith
b11d5736b0 build: Make eat use the latest zip in $OUT
* Fixes weird issues with timestamp differences

Change-Id: Ibeb0c5043b646faab6ce372290acf7efb4f22e15
2017-11-15 17:39:12 +00:00
Rashed Abdel-Tawab
fd8b8290b6
envsetup: Create remotes with build if repo is build/make
Google moved the repo on O and its causing chaos with
aospremote and cafremote

Change-Id: Ie8b02d21c981cabfc95e7c2545194e79734c4de6
2017-10-24 22:01:00 -04:00
Michael Bestas
ad3a57032a lineage/aosp/cafremote: Make variables local
* Certain order of running these commands on different repos can
  end up producing broken remotes, because the variables are
  exported globally (looking at you PFX)

Change-Id: I0b679f04264d964ed9a0f0d1adfdbaeac9403ec8
2017-08-27 12:39:42 +00:00
Michael Bestas
af3532bef5 envsetup: Fix lineageremote for AOSP projects
* lineageremote was not working properly for pure AOSP projects
  because there is no github remote.
* Read and convert AOSP remote name if there is no github remote

Change-Id: I629f0a8ae3be09d539e18d63a9738c32fb24496c
2017-08-27 12:39:15 +00:00
Luca Stefani
076c27b91a
vendor: build: Add mk_timer
Change-Id: Ib7ce1e7c662fe0555d296e125241c222f89f671d
2017-08-23 17:33:26 +03:00
Luca Stefani
085af72a05
vendor: build: Kill schedtool
Change-Id: Idd6cc6679b1e84f365a5a18645590c549af20af5
2017-08-23 17:33:25 +03:00
Luca Stefani
74df07039a
envsetup: Update mka for O
Change-Id: I36ec10be9152f135ec3645b4304e63ea30d06774
2017-08-23 17:33:25 +03:00
Luca Stefani
eae93144d2
envsetup: Kill mms
* soong/ninja is blazing fast rendering this command useless

Change-Id: I2241d7309f41c0d11b6c32b9a2c1193f6e0a2ab2
2017-08-23 17:33:25 +03:00
Luca Stefani
5c60e4fd24
lineage: Complete the rebrand
* TODO: Rebrand cmsdk when it's in a working state

Change-Id: I0d8d573f9e0032110ae3a0f54ebe11a877b83137
2017-08-23 17:33:22 +03:00
Dan Pasanen
91f7620c4d
vendor: change vendor to lineage
Change-Id: I2df13091f5d62b552ef434aef1a389f4fe1249e0
2017-08-23 03:26:28 +03:00
Ashwin Ramesh
b0ea62a5df envsetup: Fix installboot on ZSH
* ZSH errors out when it doesn't find anything in $OUT/system/lib/modules/.
* So add a check to avoid error while using installboot() with a target
  that doesn't have modules enabled.

Change-Id: Ibe66f6962943e9b90c7059a4c9b4ded558318326
2017-08-21 16:46:34 +00:00
frk
f85ec8a22e build: Pass path into grep instead of using cat
grep should be given the filename directly instead of using cat
to pass the file contents.

Change-Id: Ic5275ac0f057f3d134fe57f43672a73fa7e3d7de
Signed-off-by: frk <frk@haze-productions.com>
2017-02-23 18:49:38 +00:00