aboutsummaryrefslogtreecommitdiff
path: root/envsetup.sh
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-14.0.0_r50' of ↵George Zacharia2024-07-041-6/+12
|\ | | | | | | | | | | https://android.googlesource.com/platform/build into u14.0 Android 14.0.0 Release 50 (AP2A.240605.024)
| * envsetup: fix path to build/bazel/bin toolsLaMont Jones2024-02-121-1/+1
| | | | | | | | | | | | Bug: None Test: manual Change-Id: If0124eb5f5d85064e0063403cca477b98d42a922
| * Add build/soong/bin to the pathsJoe Onorato2024-02-031-1/+2
| | | | | | | | | | | | | | | | This gives us a good place to put scripts on the PATH instead of adding more functions to envsetup.sh Test: GENERATE_SOONG_DEBUG=true m nothing ; soongdbg ... Change-Id: I3c1a80fc8aae8de548bfe9036dc86fa006fc58c6
| * Add banner announcing adevice when running builds.Kevin Dagostino2024-01-171-1/+6
| | | | | | | | | | | | Test: ANDROID_QUIET_BUILD=true mm Test: mm Change-Id: Ib1329d2f52f11d0ad437d0fb02000e4e7f104d55
| * Merge "Fix numeric selection from lunch menu" into mainFabián Cañas2024-01-081-1/+1
| |\
| | * Fix numeric selection from lunch menuFabián Cañas2024-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 318871826 Test: 'lunch' with no arguments, then select a lunch target with a number. Change-Id: I8418ef0415437548d1429ec7a2c239d8c5b615d5
| * | Change default lunch targetGreg Kaiser2024-01-041-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | We keep this as "trunk_staging" and "eng". However, we switch from "aosp_arm" to "aosp_cf_x86_64_phone". This switches us away from 32-bit development, and gives us a project (the cuttlefish ("cf") emulator) at the end of the build which is runnable with reasonable performance, and able to run all 32-bit and 64-bit tests. Bug: 318749634 Test: lunch Change-Id: I920cdd413cbcecd4300bc46c719e5788244a924e
| * Quote the backslash in the hmm output.Martin Stjernholm2023-12-221-1/+1
| | | | | | | | | | | | | | | | | | Otherwise it becomes a single line with an ugly long stretch of spaces in the middle. Test: hmm Bug: 179779520 Change-Id: Ia095b75248952d9bee0d6417028d04460e74ad33
* | build: t13.0: AICPfySemavi Ulusoy2024-05-021-12/+12
| | | | | | | | Change-Id: I6e76e474aeb608bbcb5da9cef2eb8f5d792988c3
* | No more liesChirayu Desai2024-04-261-5/+0
| | | | | | | | Change-Id: If570268c50eabcbfa357918b1266855f83119233
* | envsetup: Pass valid TARGET_RELEASE to check_productLuK13372024-04-261-3/+3
| | | | | | | | Change-Id: I709248c0d362cffdac57d9893b7dfb4d2329204c
* | Revert "envsetup: Set INLINE_KERNEL_BUILDING if EMULATOR_KERNEL_FILE is set"Michael Bestas2024-04-261-2/+1
| | | | | | | | | | | | | | | | | | Reason for revert: Breaks Pixel build, not needed anymore after https://github.com/LineageOS/android_vendor_lineage/commit/f0b1169abd007a6c3417270047297b942e727553 This reverts commit c93afb5bfaa3cfde38c34bbaef3b748a4cbd7e9d. Change-Id: Ia3ead9576a647eeff01a943d6543a82e955b4050
* | envsetup: Set INLINE_KERNEL_BUILDING if EMULATOR_KERNEL_FILE is setDroidFreak322024-04-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixes the following build failure when building emulator targets: FAILED: out/soong/build.ninja cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --bazel-mode --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp error: vendor/qcom/opensource/dataservices/rmnetctl/Android.bp:34:1: "librmnetctl" depends on undefined module "qti_kernel_headers". Module "librmnetctl" is defined in namespace "vendor/qcom/opensource/dataservices" which can read these 2 namespaces: ["vendor/qcom/opensource/dataservices" "."] Module "qti_kernel_headers" can be found in these namespaces: ["hardware/google/pixel"] Or did you mean ["device_kernel_headers" "kernel_log_monitor" "libkernel_cmdline" "qti_powerhal_headers"]? 21:42:24 soong bootstrap failed with: exit status 1 Change-Id: I5a1f735077601871093747a23a9040ecce2cf4c7
* | envsetup: Set INLINE_KERNEL_BUILDING if TARGET_PREBUILT_KERNEL is setMichael Bestas2024-04-261-0/+7
| | | | | | | | Change-Id: I2404adf572bdafb91edc66a19a83a2696004b33f
* | Add roomserviceKoushik Dutta2024-04-261-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partial squash of: Author: Luca Stefani <luca.stefani.ge1@gmail.com> Date: Sun, 1 Jan 2017 21:45:07 +0100 lunch: Use cd - instead of popd * ZSH breaks a lot of things. Change-Id: Idee8485bee673bebf6fe5857253306b20aa92eb5 Author: Luca Stefani <luca.stefani.ge1@gmail.com> Date: Thu, 5 Jan 2017 16:30:15 +0100 build: Replace pushd with cd * For consistency Change-Id: I96711e3be7b73ebadd589f460e5c5e90d000a4f7 Author: Koushik Dutta <koushd@gmail.com> Date: Sat, 26 Nov 2011 18:51:42 -0800 roomservice delivers you lunch combos from the CyanogenMod github. fix roomservice formatting support product names with _ in them fix roomservice to handle pagination Change-Id: I4923c2f768094dbad8e06a72d9f27d46414030ab Author: LuK1337 <priv.luk@gmail.com> Date: Tue Apr 13 19:57:24 2021 +0200 envsetup: Fix the way we check check_product's return value Change-Id: I5a2a4b7be5dfee198094902aaa2c9a8c27b97704 Change-Id: I5bb07944f558e3e5551ab65c97ecfa303609be57
* | build: Add Lineage build supportLuca Stefani2024-04-261-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed also with the following changes: Author: Luca Stefani <luca020400@lineageos.org> Date: Thu Aug 17 22:22:13 2017 +0200 core: Include Lineage pathmap Change-Id: Ie25dee383cc5bc9bb6390cff2cb2460d526d80b6 Author: Simon Shields <simon@lineageos.org> Date: Fri Mar 2 12:55:47 2018 +1100 build: unconditionally use lineage pathmap even if we're not building a lineage target, we need to use the lineage pathmap to make things like recovery and ril happy Change-Id: I974c30ad10d4ff5b7805c3df9c22010f1e002bf1 Author: Luca Stefani <luca.stefani.ge1@gmail.com> Date: Tue Jan 22 15:50:52 2019 +0100 Don't export BUILD_NUMBER in envsetup * The value is meant to be set only before running an /official/ build * This allows us to execute consecutive make commands without running kati for every invocation Change-Id: Ifa94b839f30c7260009c8a3c91c202b50e28022e Author: Luca Stefani <luca020400@lineageos.org> Date: Fri Aug 18 10:17:00 2017 +0200 envsetup: Call fixup_common_out_dir Change-Id: I84e16b0df5822cfd8514c46d709109a13c20f86e Author: Adrian DC <radian.dc@gmail.com> Date: Sat May 12 11:24:33 2018 +0200 build: Include LineageOS specific properties in build.prop * Our properties were supposed to go to /system/etc/prop.default after the following commit: "lineage: Move to Google's method of defining system default props" Change-Id: I6cb0e28a7599b010b389cc541015a37010a00f4b * However if BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED is not true, only /default.prop will retain the properties contents of ADDITIONAL_DEFAULT_PROPERTIES and PRODUCT_SYSTEM_DEFAULT_PROPERTIES, and none of our versioning identification was held in the system * Enabling BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED globally would break all properties on devices that handle partitions usually at the device level rather than the kernel due to mounting races * Include the vendor/lineage/config/main.mk entrypoint to be allowed to extend ADDITION_BUILD_PROPERTIES as we need to define our releases Change-Id: I19918eece0f0dd3ee967db0339b4d09c9a6d540e Signed-off-by: Adrian DC <radian.dc@gmail.com> Author: Rashed Abdel-Tawab <rashed@linux.com> Date: Thu Sep 5 21:35:38 2019 -0700 core: Only include Lineage SE policy if repo exists Change-Id: If799106d2da6d8c303430e316edff365a22f7c99 Author: dianlujitao <dianlujitao@lineageos.org> Date: Thu Sep 5 21:56:36 2019 +0800 product: Exclude AOSP apn list on Lineage build Change-Id: I1fd10089421a2e4b57ef565d87ad1f6036bd1898 Author: Michael Bestas <mkbestas@lineageos.org> Date: Fri Apr 12 02:10:12 2019 +0300 build: Conditionally include AudioPackage14.mk instead of AllAudio.mk * AllAudio.mk doesn't contain latest material files and also contains multiple duplicate files. Just copy the latest material ones and we'll include the older files in vendor/lineage Change-Id: Ic7353216a3f3dc3c51006d951ac932cfd6e5f3b5 Author: dhacker29 <dhackerdvm@gmail.com> Date: Sat Jun 6 22:22:05 2015 -0400 Remove LatinIME as it is included per target in vendor/lineage Change-Id: Ibce4a244ec0653a7c7798d864047ac667866a1dc Author: razorloves <razorloves@gmail.com> Date: Mon Oct 7 05:10:56 2019 -0500 build: Remove su inclusion This stops including su in all lineage userdebug/eng builds. Inclusion of su is conditionally handled in /vendor/lineage. Change-Id: Ia3ad978146f170a2b260d77afe9eb580d4b4f823 Author: Michael Bestas <mkbestas@lineageos.org> Date: Sat Nov 7 22:45:12 2020 +0200 Stop including vendor specific clear_vars.mk vendor/lineage/build/core/clear_vars.mk is no-op since 16.0 Change-Id: I7e159cc9ed5a838c9a04c1a8b7dcf925d83f0e20 Change-Id: Iab8b2ef8b644a7bea10bfd28b99d9e69539b1357
* | Source lineage specific envsetupMichael Bestas2024-04-261-3/+11
| | | | | | | | Change-Id: I39d3e711a6beab47e3284919a9a4fef15b0f40b9
* | envsetup: export ANDROID_BUILD_TOP earlierChirayu Desai2024-04-261-2/+1
|/ | | | Change-Id: Ia3497f61f4e9aaeeb793cecd3b4f488f0a48181a
* Merge "Suggest developers use -eng builds instead when they lunch ↵Mark White2023-11-231-4/+10
|\ | | | | | | -userdebug" into main
| * Suggest developers use -eng builds instead when they lunch -userdebugMark White2023-10-251-4/+10
| | | | | | | | | | | | | | | | | | | | This is because -eng provides faster local builds. (also moving hints to where they are more likely to be seen) Test: lunch cf_x86_64_phone-userdebug Fixes: 307753064 Change-Id: I52cf9e9c399dbb3a52c7952f7204a9e567d15c22
* | Merge "Revert "Add banner announcing adevice when running builds."" into mainColin Cross2023-11-171-4/+0
|\ \
| * | Revert "Add banner announcing adevice when running builds."Colin Cross2023-11-171-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6d10bbddf92887f3535fef2fc9bd4b701e9088d0. Reason for revert: broke exit code from `m` Bug: 309792999 Change-Id: If0de43003a9c4427d1da941de4afc28723ee0cd3
* | | Fix example lunch targetGreg Kaiser2023-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | We make this example valid for trunk stable. Bug: 307738446 Test: lunch command Change-Id: I25a142f1b87facebdcf2751f3f4cb68a0738945d
* | | Merge "Add banner announcing adevice when running builds." into mainRonald Braunstein2023-11-011-0/+4
|\| |
| * | Add banner announcing adevice when running builds.Ronald Braunstein2023-10-311-0/+4
| |/ | | | | | | | | | | Test: ANDROID_QUIET_BUILD=true mm Test: mm Change-Id: I513591137d4866bcb824b3021269c29dec32f972
* | Set empty TARGET_RELEASE for some commandsGreg Kaiser2023-10-271-1/+2
| | | | | | | | | | | | | | | | | | | | The same commands where we're setting things like TARGET_BUILD_VARIANT to be explicitly empty, we do the same with TARGET_RELEASE. Bug: 307946156 Test: 'lunch' with no arguments Change-Id: If78eacd62725122d47829e2e9079b182fdafb9b4
* | Fix banchan for trunk stable buildsGreg Kaiser2023-10-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In the trunk stable builds, we're required to have a TARGET_RELEASE set. For now, we hard-code this to "trunk_staging" (and leave a TODO to accept this as a function argument). This will have us producing valid builds in places like git_main. Bug: 307946156 Test: None Change-Id: Ie418aee2fad192a38beca44cd7d168e0e1b45689
* | Require lunch targets to be product-release-variantGreg Kaiser2023-10-271-23/+10
| | | | | | | | | | | | | | | | | | | | Instead of supporting both product-variant and product-release-variant, we now require the release type to be given to use. Bug: 307946156 Test: 'lunch aosp_mokey-userdebug' (now) fails; 'lunch aosp_mokey-trunk_staging-userdebug' (still) works Change-Id: Ica87b3969f950a57232615f33bfe5f4012a743d6
* | Fix tapas for git_main buildsGreg Kaiser2023-10-261-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In the git_main trunk stable builds, we're required to have a TARGET_RELEASE set. For now, we hard-code this to "trunk_staging" (and leave a TODO to accept this as a function argument). This will have us producing valid builds under git_main. Bug: 307975293 Test: 'tapas google-tradefed-all' now works on a tree that has go/aog/2806253 Change-Id: I70572fb4c7902350513e251694f3ddef91efcb13
* | Have default 'lunch' target use a release typeGreg Kaiser2023-10-251-2/+2
|/ | | | | | | | | | In git_main, the correct target here is aosp_arm-trunk_staging-eng (or "trunk_food" or "next", but we choose the most generic "trunk_staging"). Bug: 307738446 Test: "lunch", hit return for the default, "echo $TARGET_RELEASE" to confirm Change-Id: I4d4bcaf27553976e64133c7351db296953f88b08
* Add aninja to envsetup.shColin Cross2023-10-241-0/+5
| | | | | | | | | | Add an aninja function to envsetup.sh that can run ninja with the appropriate ninja file for an Android build. Simplifies running queries with ninja. For example: aninja -t query droid Test: aninja -t query droid Change-Id: I7064984d55054cd4350800cfd75bf6aaa1740e9d
* add script to help override flag value locallyZhi Dou2023-10-201-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a script to help to create flag value building rules. The script will only extract necessary information from the value file but it will not validate the file. The validation will defer to building system. For input ``` flag_value { package: "com.android.aconfig.test" name: "disabled_ro" state: DISABLED permission: READ_ONLY } flag_value { package: "com.android.demoapp.test" name: "enabled_ro" state: DISABLED permission: READ_WRITE } flag_value { package: "com.android.aconfig.test" name: "enabled_rw" state: ENABLED permission: READ_WRITE } ``` The output Android.bp file will be like ``` VALUE_LIST_LIST = [ aconfig-local-com.android.demoapp.test, aconfig-local-com.android.aconfig.test ] aconfig_values { name: "aconfig-local-com.android.demoapp.test", package: "com.android.demoapp.test", srcs: [ "override_values.textproto", ] } aconfig_values { name: "aconfig-local-com.android.aconfig.test", package: "com.android.aconfig.test", srcs: [ "override_values.textproto", ] } ``` Bug: 298692416 Test: source build/envsetup.sh && overrideflags, and then check the output Change-Id: Ife4063e079811e0b29046be7a6bc127cad668ed0
* Support multiple module name queries with bmod.Jingwen Chen2023-10-171-13/+18
| | | | | | Test: bmod libc libm libdl Test: bmod adb framework-minus-apex libdl Change-Id: I156cc31185d3f97d6b5d74c232bd6cd9287cee02
* Add cog setup scriptsKousik Kumar2023-09-141-0/+5
| | | | | | | | | | | | This script has the following functionality: 1. Sets up the `out` symlink to point to a default location on disk 2. Copies RBE binaries outside Cog (temporary fix for build stall problem) - b/289391270 3. Exports ANDROID_BUILD_ENVIRONMENT_CONFIG variable to point to googler-cog.json file. This file will be available in aosp-main-with-phones and goog/main and downstream branches. TESTED=ran the script within and outside the Cog workspace to test it. Bug: b/295053716 Change-Id: I59cd6d2d5f954be6f7e4ecd7d64de1e63e51b72e
* Use command instead of which to locate/run adbSaagar Jha2023-07-131-1/+1
| | | | | | | | | | | | | If adb is not found on PATH, which will silently fail and evaluate to the empty string. This will cause the remaining arguments to be interpreted as a command to run in the shell, which is generally undesirable. (Consider, for example, "adb reboot" -> "reboot".) Bug: 24473359 Test: Just run adb before lunch so it's not on PATH Change-Id: I6b20722add6c67d1d2627f963dc66095502ab816 Signed-off-by: Saagar Jha <saagarjha@google.com>
* Updating build/config setup to refresh adb path name after a rebuild.Shaju Mathew2023-07-101-0/+4
| | | | | | | Bug: 24473359 Test: Treehugger Change-Id: I706e24a8ba7b75a381e9efe48d5db2d49c0f4da6
* Merge "Remove dmtracedump from build/make" into mainSantiago Aboy Solanes2023-07-071-47/+0
|\
| * Remove dmtracedump from build/makeSantiago Aboy Solanes2023-06-271-47/+0
| | | | | | | | | | | | Bug: 287576918 Fixes: 287576918 Change-Id: Ie84cccf97ddf7e9277d28759000ad35ebf813d1a
* | Add riscv64 banchan target.Ulya Trafimovich2023-06-281-4/+5
|/ | | | | | | Test: banchan riscv64 com.android.art Test: build/soong/build_test.bash --dist -products module_riscv64 Bug: 271573990 Change-Id: I6aa8c51b1a1928b3da52a9345a8bfb84e3eb11d0
* Adapt to gdbrunner packaging.Dan Albert2023-05-161-1/+1
| | | | | | | | | | | | Similar to https://android-review.googlesource.com/c/platform/build/+/2403120. The directory structure of //development/python-packages/gdbrunner needs to change to be able to export type info to importers, and this needs to adapt to keep gdbclient working. Bug: None Test: gdbclient.py --help Change-Id: I8127ec7beae2a7840283be25ee236a8e2af48cae
* Add release flag logic based on TARGET_RELEASE.Joe Onorato2023-05-111-1/+1
| | | | | Test: Lots of manual testing Change-Id: I9072f136e64576009d0debd057c8ce6918fae861
* Add lunch support for TARGET_RELEASEJeff Hamilton2023-05-081-10/+16
| | | | | | | | | | | | | | | | This replaces support for the unused TARGET_PLATFORM_VERSION variable. Now, if you pass three - separated items the first is product, the second is release and the third is variant. If you only pass two they're still product-variant and the build system will choose a reasonable default for release. Test: run lunch with two and three items, confirmed values in the build banner Change-Id: I128177d96ffe81b79b6945a24ebf37861c3b25fc
* envsetup: syswrite - wait after rootingSteven Moreland2023-04-171-3/+3
| | | | | | | | | adb root sometimes takes a second, and the next command will fail. Bug: N/A Test: syswrite on device which isn't already rooted Change-Id: I91754c31c74bf0589ea8cbae77c10e5a120bdce5
* have sgrep search rust and go files tooJoe Onorato2023-02-271-2/+2
| | | | | Test: sgrep Singleton Change-Id: I00ac124cbea59512b094ddc50523a5491ac9a1b7
* Merge "Skip RBE warning message"Treehugger Robot2023-02-011-5/+0
|\
| * Skip RBE warning messageKousik Kumar2023-01-121-5/+0
| | | | | | | | | | | | | | | | | | | | | | Since RBE is default for dev builds, and we no longer set RBE config through env variables, this error message is incorrect. Bug: b/265326161 Test: Ran a build and make sure this error message wasn't printed anymore. Change-Id: I128616ce37763400407e099b52ef284905239eb4
* | Update PYTHONPATH for adb.py restructuring.Dan Albert2023-01-261-1/+16
| | | | | | | | | | | | | | | | | | | | Importers of the adb python package like lldbclient.py and gdbrunner are broken following the restructure that enabled adb to export type info to importers. Bug: http://b/266688086 Test: adb.__file__ is no longer None after envsetup.sh/lunch Change-Id: I7bf27601e800043adee8971c093347ca9b2979a9
* | envsetup: add tomlgrep and jsongrepJeff Vander Stoep2023-01-101-0/+14
|/ | | | | | | This is useful for searching Rust config files in external. Test: cd external/rust/crates; tomlgrep foo Change-Id: I1ff5118a8eee1a95f1bc6fa44c922673a03ebd8b
* Pull common methods into shell_utils.sh, which can be included by scripts.Joe Onorato2023-01-031-27/+52
| | | | | | | | So we can stop copying gettop and others all over the place. Test: manual Bug: 260003429 Change-Id: Ic1b5d6bec8726d9253fb33ec588e503d6fc8167a
* multitree_lunch: remove extraneous callLaMont Jones2022-12-071-3/+1
| | | | | | | If the shell is set to exit on errors, the extraneous (incorrect syntax) call to lunch.py causes an early exit. Change-Id: I0176d5c9e7e42640514fd4988d82fbfdd825631d