summaryrefslogtreecommitdiff
path: root/envsetup.sh
AgeCommit message (Collapse)Author
2022-01-12Add roomserviceKoushik Dutta
Change-Id: Ia17023e1c19695890aee99de998356c9aadc104f
2022-01-12Add Project ICE build supportLuca Stefani
Squashed also with the following changes: Author: Simon Shields <simon@lineageos.org> Date: Fri Mar 2 12:55:47 2018 +1100 build: Unconditionally use AOSPA 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 Change-Id: I6ca3c6a68aa5ea78649b96ac86fb65ff7f489736
2022-01-12envsetup: Source Project ICE specific envsetupMichael Bestas
Change-Id: I5fa2aa165f694c7b6373d543d37073c1e3862795
2021-05-14Merge "Merge SP1A.210510.001" into s-keystone-qcom-devBrian Orr
2021-05-12build: Export TARGET_BOARD_PLATFORM as an env variableRoopesh Nataraja
Exporting TARGET_BOARD_PLATFORM as an environment variable provides the flexibility to use a common codebase across multiple products. OEMs/ODMs can continue to differentiate between their products using TARGET_PRODUCT. Bug: 187972557 CRs-Fixed: 2944678 Change-Id: Ic0ce7211ee8ea6fd553aa080afa468cde2ecdd73
2021-05-10Merge SP1A.210510.001Brian Orr
Change-Id: Ife6652cf718c7d08b65f148c2e69b8e39bcba050
2021-04-29Make verifymodinfo in envsetup.sh quiet on errors during tab completionJoe Onorato
Test: m <tab><tab> before having done a full build. Test: m <tab><tab> after having done a full build. Change-Id: I35154151e6902d0337a26eab27d9d4fc797beed7
2021-04-29Use python3 specifically for envsetup.shJoe Onorato
Test: . build/envsetup.sh ; m <tab> Change-Id: I94152c567f179fd7829bc675766e764624e5b7a3
2021-04-26Merge SP1A.210425.001Scott Lobdell
Change-Id: If8d9138aea6ac81c4f2678cced23ea0133632b61
2021-04-22Clear TARGET_PRODUCT and TARGET_BUILD_VARIANT when getting lunch menuColin Cross
An old TARGET_PRODUCT value pointing to a removed product or an invalid TARGET_BUILD_VARIANT value cause lunch to fail to read COMMON_LUNCH_CHOICES, clear them before calling into the build with get_build_var. Test: TARGET_PRODUCT=foobar TARGET_BUILD_VARIANT=foobar lunch Change-Id: I53d205784149ba7e32cc093f9d81d1a82c08bfc0
2021-04-20Merge "Allow selecting a different product in banchan."Martin Stjernholm
2021-04-19Merge "envsetup: fix indent"Treehugger Robot
2021-04-19Allow selecting a different product in banchan.Martin Stjernholm
Necessary since the products used for APEX modules are different in internal builds. Test: banchan com.android.art Test: banchan com.android.art arm Test: banchan com.android.art art_module_arm Test: banchan com.android.art module_arm Test: banchan com.android.art x86_64 Test: banchan com.android.art art_module_x86_64 Bug: 179779520 Change-Id: Ib59a86b70e409537aaad7258465b6874b589b858
2021-04-19envsetup: fix indentTimi
Test: . build/envsetup.sh Change-Id: I829dafc707dc02d5a31899a784f88a367ec95e94 Signed-off-by: Timi <timi.rautamaki@gmail.com>
2021-04-13Add new user setup command banchan for module building.Martin Stjernholm
It currently uses TARGET_BUILD_APPS just like tapas, but the use case is different and it may diverge more in the future. Test: banchan com.android.art Test: banchan help Test: banchan Test: hmm Bug: 179779520 Change-Id: Iae718e65a2a7212c741c397e03c6f9a6d5ee8951
2021-03-29Merge SP1A.210329.001Scott Lobdell
Change-Id: Ie56add13a8cebda09ba13a27758eba47e2e7d8b5
2021-03-23Merge SP1A.210311.001Scott Lobdell
Change-Id: Iff13e286a22f39ef22d60d203ceb2951afe50b51
2021-03-16Add "ktgrep" for KotlinTaesu Lee
New ktgrep is added and sgrep/treegrep also scan *.kt files. Test: kgrep/sgrep/treegrep for Kotlin files. Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Change-Id: Ie615aa86c4958310785392f18ee7bddaf64706a9
2021-02-26Add dirmods command to envsetup.shJoe Onorato
It will query module-info.json for modules inside a given directory. Test: . build/envsetup.sh ; dirmods frameworks/base Change-Id: Iad3dcb038315f49c156764e34fb5f52ec3ad29be
2021-02-23Merge SP1A.210222.001Scott Lobdell
Change-Id: Ia2cccc68a182bc3df9871228f4b1693b2db619ec
2021-02-22Rename rgrep to rsgrepAlistair Delva
rgrep is a common alias for 'grep -r' and this new macro was confusing. Test: cd external/rust/crates rsgrep test Change-Id: If71cdcc926455983a04a80982356e9feb61968fe
2021-02-08Merge SP1A.210208.001Daniel Norman
Change-Id: Ifdef2b485fcfbfb1404544620f4a8e904ca0274c
2021-02-02envsetup: add rgrep for local Rust filesJeff Vander Stoep
Test: cd external/rust/crates rgrep test Change-Id: I69fa770742c0dc20259346acaf1184c19675b3a7
2021-01-26Add outmod and installmod commandsCole Faust
These are analogs to pathmod/gomod that find/install the module's apk instead of cd'ing to its source directory. Bug: None Change-Id: Iad750e154397f7cfcdd620f1ed6478b05c1225bb Test: Manually, with bash and zsh
2021-01-21Merge SP1A.210105.001Scott Lobdell
Change-Id: I3571e02a80bc7ac0292a24bf37ad77efd7bd5c82
2020-12-14Pipe bazel() note text to stderr.Jingwen Chen
This allows subshell-ing bazel, e.g. bazel build $(bazel query //...) Test: . build/envsetup.sh; bazel build $(bazel query <expression>) Change-Id: If28b63769032b61e150422cb5b9b4e55c14cd13d
2020-11-12Merge SP1A.201105.002Scott Lobdell
Change-Id: I439e7b5c5a8cde16d8e312758a3b4ed1c27c4987
2020-11-05Merge "Merge SP1A.201015.001" into s-keystone-qcom-devChris Gross
2020-11-03Export SOONG_HOST_OUT as ANDROID_SOONG_HOST_OUTJiyong Park
Some host tools (launch_cvd, etc.) have been using HOST_OUT. As their dependencies are now installed by soong, the tools should refer to SOONG_HOST_OUT. Export it as ANDROID_SOONG_HOST_OUT. Bug: 172065015 Test: build aosp_cf_x86_phone, execute launch_cvd Change-Id: Ie175049f15b89485feec0d33d82e756b12a7ad8a
2020-10-27build: allow refreshmod with external out directoryAlessandro Astone
Get a relative path to out by using $(get_build_var PRODUCT_OUT) instead of hardcoding it to out/target/product/$TARGET_DEVICE. That will correctly return the path to the out directory when setting an external OUT_DIR_COMMON_BASE. Change-Id: I8a990b710222bc72755c6b6b88fd0c9e80711e14
2020-10-26Rename abazel() to bazel(), give a warning if clobbering an existing Bazel, ↵Rupert Shuttleworth
and have it call tools/bazel (aka build/bazel/bazel.sh) to start Bazel. Test: Manually. Change-Id: I5605571147db33c6b6a008cedbf279bb909ecdee
2020-10-21Merge SP1A.201015.001Scott Lobdell
Change-Id: Ia4a81c25ba07b0b785355899f06215090ae17315
2020-10-20Export PLATFORM_VERSION environment variable.Vinay Verma
CRs-Fixed: 2801394 Change-Id: Ibfee21a03b2fdfa5954785cce66a8d23353991dd
2020-10-20Merge changes from topic "am-b1508dde-d998-419e-8b42-0002dca56ab7" into ↵Treehugger Robot
s-keystone-qcom-dev * changes: [automerger] Remove hidl-gen script trigger am: b1bba8d14a Remove hidl-gen script trigger
2020-10-14Source vendorsetup.sh scripts anywhere within the repo.Patrice Arruda
When sourcing the envsetup.sh script from a deep directory inside of the repo, the vendorsetup.sh scripts are not being sourced. This was causing the ANDROID_ENABLE_METRICS_UPLOAD not to be set and developer's metrics were not being uploaded. Provided the top directory to each directory path. Also cleaned up the function to handle whitespacing correctly. Bug: b/169699936 Test: *Ran source ../../build/envsetup.sh from external/libchrome dir *Renamed repo dir to "aosp master" and source build/envsetup.sh *Ran the script in zsh command line interpretor *Ran the script in MacOS Change-Id: I96eb73d50a1923cdda782792778b0d185a341cf9
2020-10-13Add abazel() function to envsetup.Rupert Shuttleworth
Test: Tested manually on Linux and macOS. Change-Id: I17f061c2d9135a7a309fc0750cc44cb30d455bc7
2020-10-12[automerger] Remove hidl-gen script trigger am: b1bba8d14aVinay Verma
Change-Id: I84183eb09009314dc9752ee33b2058fd5cebc070
2020-10-12Remove hidl-gen script triggerVinay Verma
Hidl-gen script was added to generate Android.bp on the fly for different platform version. This is to support same component b/w multiple Android platform version. Removing this support as we all the Android.bp files are checked in & no requirement to support sharing component across multiple platform versions. CRs-Fixed: 2794180 Change-Id: I8b92b228c5154d6c008a223a6d248e0267f1ab75
2020-09-29Fix conflict with common zsh aliasBen Taitelbaum
oh-my-zsh common-aliases plugin defines `alias -g T='| tail'`, which causes an error with the line `local T dir f`. Making these lines more explicit resolves this issue, while also being clearer that the intent is to clear out the local variables. Bug: 169191000 Fix: 169191000 Test: source build/envsetup.sh; lunch <target>; m Change-Id: Ief27aa3d9f541d0c39c6c11d7d771818d6493d31
2020-09-24Merge SP1A.200921.001Justin DeMartino
Change-Id: Id5c312e2de443b785657c3f0184b01093498fd84
2020-09-22Merge "envsetup.sh: add 'syswrite' function"Treehugger Robot
2020-09-17envsetup.sh: add 'syswrite' functionSteven Moreland
This function: - disables verity on the device - reboots the device only if it is needed - remounts partitions on the device Bug: 167697453 Test: syswrite Change-Id: I23c3e88daaa2b334233f4faf7fe8f8244cd56225
2020-09-16Add a showcommands function to envsetup.Dan Albert
This is similar to the old `m showcommands`, but operates on specific output paths instead and does not require a build aside from the initial invocation of soong to generate the ninja files. The `--regenerate` option is accepted that causes the ninja file to be regenerated first, but this is not the default because it is slow. Just note that without this flag results may be stale. It unfortunately doesn't work for everything in out. For example, `$OUT/system/lib/libc.so` won't work because it is a symlink that isn't in the build graph, but `$OUT/system/lib/bootstrap/libc.so` works. Test: showcommands out/target/product/walleye/system/lib/libz.so Bug: None Change-Id: I4cfded3db994044870fc71ae4bcf9a69224b1e15
2020-09-01Merge SP1A.200727.001Bill Peckham
Conflicts: core/Makefile core/binary.mk core/build_id.mk core/config.mk core/soong_config.mk target/board/generic_x86_64/BoardConfig.mk target/board/gsi_system_ext.prop target/board/gsi_system_ext_user.prop Change-Id: I123c34ae2911dffd1144b811997e5805e96a7dfd
2020-06-04Do not print environment variables if ANDROID_QUIET_BUILD is set.Sasha Smundak
Test: manual Change-Id: I17c24beb9f0008e038a739a06027266b57e17e7a
2020-05-21Revert "Minor cleanup for script consistency and adherence to Google shell ↵Matt Alexander
style guide." This reverts commit d92718356d8067eb33a971e00108a34a8fa92b32. Reason for revert: Adding the opening brace to the end of the function breaks lunch. Change-Id: Ia3a9ff01964de0e616a534058d568150de32558a
2020-05-20Minor cleanup for script consistency and adherence to Google shell style guide.Matt Alexander
Test: manual Change-Id: Ie9fd197cee5e934a0b89898b85d1a97adcec6348
2020-04-09Update refreshmod docs.Steven Moreland
This also affects pathmod here. Since it's updating module-info.json, we could say that as well (this should affect any tools which parse this file), but I haven't seen any indication it's necessary in this context. Bug: N/A Test: N/A Change-Id: Iecb6f454112b5c0095ee7063bc5442fdb1e3bd09
2020-04-08Print a user-friendly message when `lunch` cannot use the default product.Roland Levillain
In some environments (e.g. with the master-art branch), the default product (aosp_arm-eng) cannot be built, and thus prevents `lunch` from printing the lunch menu (as it cannot initialize the build system in order to fetch the common lunch choices). When this happens, show an explicit error message from `lunch` instead of a Soong UI error. Test: Check that this command line displays the expected error message: unset TARGET_PRODUCT && . build/envsetup.sh && lunch Bug: 152762648 Change-Id: I40c66bca5b075d88dbc8364b36b2db713e6ad93e
2020-03-06Remove unused mips workarounds.Elliott Hughes
This was never really finished, and hasn't been supported for years. Test: treehugger Change-Id: I7668088d1449f33025aaf36fae0817894c84a877