summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
Commit message (Collapse)AuthorAgeFilesLines
* envsetup: Fix cafremote/aospremote for projects with non-standard pathsMichael Bestas2016-10-201-2/+2
| | | | | | | * Fix -caf and -caf-<platform> projects * Fix AOSP HALs that are synced in "/default" subfolder Change-Id: I33cc344a3234de6698676c32035622acbec03dd1
* build: Support a fallback to java 8 if java 7 is not foundAdrian DC2016-10-121-1/+2
| | | | | | | | | | * In the case of a host installed only with java 8, the build starts correctly but on use of JAVA_HOME binaries, the java references are missing * Allow the java 7 to be tested and try to use java 8 Change-Id: Ie50892edb54feb8608a0ef80a1c2a8667703e8ee
* Use sensible default locations for JavaNeil Fuller2016-09-301-13/+20
| | | | | | | | Use sensible default locations for Java based on the EXPERIMENTAL_USE_JAVA8 flag. Bug: 25786468 Change-Id: I7ec035b5329785efc41b3f971d5e3ae202293576
* Revert "envsetup: Always look up JAVA_HOME path"Keith Mok2016-09-281-1/+1
| | | | | | | | This breaks, if we have both jdk7 and jdk8 installed on same machine. This reverts commit bc9ae3d5c21915c165b2b2cb41d07e1573814254. Change-Id: Id0482d130d5306e797adfeeaeb2efbd1e25aa3ee
* build: Fix caf and aospremoteluca0204002016-05-191-2/+2
| | | | Change-Id: I8ad28d71254941c0aacb91b1c6c702f9f13caf5f
* envsetup: Fix aosp & caf remoteluca0204002016-05-061-14/+16
| | | | | | | | | Fixes: sed: -e expression #1, char 9: unknown option to `s' * Return if .git directory is missing and move it on the top * Update cmremote strings ( match caf/aosp remote ) Change-Id: Ifb606a20f308e7317e9ce519d682a3fdb8bfe9bf
* envsetup: Always look up JAVA_HOME pathDark Eyes2016-03-311-1/+1
| | | | Change-Id: I8b0641eb107cd095079bb17f92e99730f532fda7
* envsetup: fix mm under zshKhalid Zubair2016-03-141-4/+3
| | | | | | | | Fix a word splitting issue in zsh. Instead of building a duplicate ARGS array for the !GET-INSTALL-PATH case, leave it untouched. For the GET-INSTALL-PATH case, modify the argument list as needed. Change-Id: I902ff1bc7a53e7afa8c4737d4208592ac18f95d7
* build: better compatibility between zsh shellsRoman Birg2016-03-011-5/+5
| | | | | | | | | Handle equals expansion in zsh http://www.zsh.org/mla/users/2011/msg00160.html Change-Id: I2b0cb23991aa88c3fa2c4dce00f7c3a673176e0a Signed-off-by: Roman Birg <roman@cyngn.com>
* envesetup: mmm/mmma: fix for zshKhalid Zubair2016-02-291-4/+16
| | | | | | | | | Fix broken argument handling due to differnt word-splitting behavior in zsh [1]. Zsh arrays should be explicitly defined. - [1] http://zsh.sourceforge.net/FAQ/zshfaq03.html Change-Id: Ic299c1952384001e374c64caebbb23e9792fddf2
* envsetup: cmgerrit: fix for zshKhalid Zubair2016-02-201-0/+6
| | | | | | zsh does not define $FUNCNAME, define it for zsh when necessary. Change-Id: I097d3e572b18c84d953ca03b3714271d1d2fd5c3
* envsetup: add function to detect shellKhalid Zubair2016-02-201-2/+11
| | | | | | | Add a function to detect shell, other functions can now use this to handle shell specific behavior. Change-Id: I4aabc0068e836c5433053b144d163fb0ed49f752
* Implement 'mmap' commandMartin Brabham2016-02-111-0/+2
| | | | Change-Id: I029da8a8421bea2b628b4025f9f2d6f749436c7b
* envsetup: dopush: fix error when device is not connectedKhalid Zubair2016-02-031-2/+15
| | | | | | | | | $(adb get-state) was unquoted and returns an empty string when no device is connected causing the if and until statements to be malformed. Fix quoting and refactor the test to a separate function. Change-Id: I2cfa0a7b2033e5a379cab2cae64ed57f5495dbed
* mms: introduce a shortcut to quickly rebuild kernel/boot.imgKhalid Zubair2016-01-041-0/+26
| | | | | | | | | | | | Add a new shortcut to short circuit the long build process that walks the entire tree collecting all Android.mks. The resulting dependency list is sufficient to rebuild the kernel, copy product files and repack the system image with updated modules. This shortcut allows Kernel devs to rebuild just the boot.img and kernel modules very quickly (20s vs 3min). Change-Id: Ie0a69f241ea7b920859ff1e02c3542b79952462c
* dopush: Add support for OS XLuK13372015-12-061-2/+10
| | | | | | | * OS X's sed doesn't have `-r` parameter and requires different color stripping regex. Change-Id: I2438f0492b1b564be6b7596fa123fc17eb64b25f
* envsetup: Remove Busybox referencesSteve Kondik2015-11-151-4/+4
| | | | | | * Toybox provides the necessary commands. Change-Id: Ia65948a49cb9f7093a6d2b651f6a8a67e300ad6e
* eat: GTFO after done eatingSteve Kondik2015-11-101-1/+1
| | | | | | * We need to use sideload_auto_reboot if we want to eat and run. Change-Id: I09c31bdd7a381f5fe74cd527c3019f1c3d9be2c3
* Merge tag 'android-6.0.0_r26' into HEADRicardo Cerqueira2015-11-051-3/+9
|\ | | | | | | | | | | | | | | | | | | | | Android 6.0.0 release 26 Conflicts: core/Makefile core/build_id.mk tools/releasetools/ota_from_target_files.py Change-Id: Ia1404ee9cd931a6540ea0dd3e2aa7b32d649e80c
| * Use $OUT_DIR/filelist when OUT_DIR is setBrian Carlstrom2015-09-301-3/+9
| | | | | | | | Change-Id: Iadf3f05e752d71371d3d74e670ade3e937b1cd92
* | build: fix dopush with zshLuca Stefani2015-11-021-1/+1
| | | | | | | | Change-Id: I4a9e71cfa820583c4d48363815f1ced05d972b54
* | mka: allow mka to be run from anywhere in the treeKhalid Zubair2015-10-271-8/+14
| | | | | | | | | | | | | | | | | | | | The Android build system expects to be launched from the top of the tree. Invoking mka at any other level often has unintended consequence (e.g. targets the host ARCH because ARCH was not set). The various build shortcuts like m and mm invoke Make from the top of the tree. mka now does the same. Change-Id: Id956cf04cbaf1d12d12549ca54e32b9c2ce1fc29
* | envsetup: Fix mismerged comment about java versionMichael Bestas2015-10-271-1/+1
| | | | | | | | Change-Id: I6a5bd1bd3c04fff3ebe4ff86ee14f42267a43ff2
* | envsetup: dopush: set file permissions on files pushed to /data tooMatt Mower2015-10-271-2/+42
| | | | | | | | | | | | | | | | * If pushing to /data, transfer old file owner, group, permissions to pushed files, then restorecon Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org> Change-Id: Ibf2945adee457a680a288f2bdfba3d2e29ba25a1
* | fix success/failure coloring for darwinRoman Birg2015-10-261-7/+6
| | | | | | | | | | | | | | what's the point of OS X if it's not pretty Change-Id: I7a1ed0766adead46b46092acf826c6ef270edd10 Signed-off-by: Roman Birg <roman@cyngn.com>
* | envsetup: Show error when supplied dir isn't present with mmmAbhinav19972015-10-201-1/+6
| | | | | | | | | | | | | | | | When a directory isn't present with mmm, don't show "No Android.mk present", rather show that the directory isn't present Change-Id: I7259a60012c6f30c470daa60d5a5097d01ffc4c7 Signed-off-by: Abhinav1997 <abhinav.jhanwar.august2@gmail.com>
* | Set kernel gcc version to 4.8 for ARM targetsBrandon McAnsh2015-10-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * This causes the check during path setup for an arm-eabi-4.9 toolchain to fail, thus only leaving the arm-linux-androideabi- to exist. * This is only temporary as Google is building with 4.9 and 4.8 gcc's have been removed in their next release Was updated to 4.9 here: https://github.com/CyanogenMod/android_build/commit/bf8346e90c5a6d5d809fa7166d50714b2b6bc30d Toolchain check here: https://github.com/CyanogenMod/android_build/blob/cm-13.0/envsetup.sh#L189 Change-Id: I24bff10e392a6cdced1797870e523144e83d611d Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* | build: Enable custom ccache cache dir for AndroidMatt Mower2015-10-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | During lunch, check environment variables for ANDROID_CCACHE_DIR. If it is specified, CCACHE_DIR is set to match. Prevents issues with multiple versions of ccache writing to the same cache dir. ANDROID_CCACHE_SIZE should also be specified, allowing for a distinct cache directory size from the default. Syntax for ANDROID_CCACHE_SIZE is the same as applied in the command: 'ccache -M$ANDROID_CCACHE_SIZE' Change-Id: I17497a6f56347850e0fa7b8ebd4de0b5a0b13e55
* | build: Fix device detection for a few of the envsetup commandsSteve Kondik2015-10-091-4/+4
| | | | | | | | | | | | | | * Edge case where a certain developer ended up with a blank system partition in recovery. Wonder how that happened? Change-Id: I17854a53bf18d07c98c4b7f53df252d6f1d7113d
* | envsetup: repolastsyncMatt Mower2015-10-091-0/+8
| | | | | | | | | | | | | | Prints date and time of last repo sync. Example: Last repo sync: 11 Jun 2015, 21:54:59 CDT / 12 Jun 2015, 02:54:59 UTC Change-Id: I4280b500e58237479194ad2e230ed7466db87755
* | Allow dopush to load binaries onto the "wrong" deviceChris Sarbora2015-10-091-1/+1
| | | | | | | | | | | | | | * Lets solitary projects be built+pushed quickly even without a full build * Affects mmp, mmmp, mkap as well Change-Id: I53594bcbece9f9458d28c3ea930453c14df95fe8
* | envsetup: cleanup the full listAnthony King2015-10-091-5/+2
| | | | | | | | | | | | echo each one and stick it in columns. It was unreadable before Change-Id: I99c50595dcf35f0f03d5d3d6b01043ad8a8306d2
* | lunch: sort the choicesAnthony King2015-10-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This will sort the lunch array when lunch is called, giving us a consistent list of devices, which is easier to search through Change-Id: I80854e8b949950cbc928121a184b64fc3b8164c8 envsetup: lunch: always sort the menu this fixes the use case of 'lunch 34' straight after envsetup Change-Id: I19d45016edf254131015aab8476bc815bec9abe4
* | envsetup: add mk_timerAnthony King2015-10-091-3/+8
| | | | | | | | | | | | | | | | | | this wraps around any method call, mainly for 'make'. mka needs this on linux, since ionice and schedtool don't respect functions Change-Id: If8cdd235ed9eba377dd90ab8b12e93036a377ea5
* | dopush only tries to push if its arg doesn't failMarcos Marado2015-10-061-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `dopush mm`, as an example, tried to do mm, ignored its result, and went to push. Now, it does mm, and if mm exits successfully it continues to push the results, but if mm fails dopush stops, returning mm's return code. This is useful for having things like: $ mmp && adb reboot which now reboot the device weather the changes were pushed or not. With this patch, the device will only get rebooted if the compilation succeeds. Change-Id: I001e3dd83e25a775919adbccbd49914da1e94cde
* | Add ddclient function for debugging with DDDClark Scheff2015-10-061-0/+100
| | | | | | | | | | | | | | | | | | | | While debugging via the CLI is great, it is nice to have the option to debug using a graphical front end. This patch adds a function for using ddd to debug native code. Simply replace gdbclient with dddclient and start debugging. Change-Id: I3d3afe08772007b11ad6e0f839868e85386340f1 Note: Requires that ddd be installed on the host PC.
* | envsetup: new function cmkaChirayu Desai2015-10-061-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | - The build system adds a clean-<module> target for each module / package. - This utilizes that and cleans and builds using mka. - If no argument is supplied, it runs "mka clean". - If argument is (bacon|otapackage|systemimage), it runs installclean. Change-Id: I582ac2f92df3278c41c254c73e9c02ad7f406851 (cherry picked from commit eb74c2f2b9bb708e77edfdbb8ba0d0b716fef2fc) (Also sneak in another minor change, a help entry for mkap)
* | build: fix dopush for SystemUIPawit Pornkitprasan2015-10-061-1/+1
| | | | | | | | | | | | The path for SystemUI has changed in Lollipop Change-Id: Ib2126f48f6769e5f91d0aa1d44d4049bdbe1deff
* | Improve cmremoteChirayu Desai2015-10-061-12/+4
| | | | | | | | Change-Id: I7e1f87ed92cddcf8df3ea4fd701f56a9ef806add
* | build: fix bash completion sourcingKyle Ladd2015-10-061-15/+16
| | | | | | | | | | | | | | | | Sourcing functions in files from a function within a file being sourced was giving bash a hard time. This fixes 'repo' command tab completions. Change-Id: Iac1b3078e20749fb474ed1270e0886cf435e24d9
* | envsetup: export ANDROID_BUILD_TOP earlierChirayu Desai2015-10-061-1/+2
| | | | | | | | Change-Id: Ia3497f61f4e9aaeeb793cecd3b4f488f0a48181a
* | Consolidate bash version checksJames Roberts-Thomson2015-10-061-3/+3
| | | | | | | | | | | | | | | | There were two checks for bash version, the 2nd was superfluous; this patch removes the duplicate checks, and shifts the bash version check to being back after the "are we in bash" check. Change-Id: I57ff8c1fedce80f739c06643d2976d2c1465db1b
* | Build: Add support for specifying build variant in brunch/breakfastJustArchi2015-10-061-1/+5
| | | | | | | | | | | | | | | | | | | | This little modification allows specifying build variant in brunch/ breakfast commands. For example we can use "brunch i9300 user" to build user variant instead of default userdebug. When no extra argument is given, userdebug is default. Change-Id: I935327252098ee74b34a815a023d2ac6b9a53a30
* | envsetup: fixup dopushMatt Mower2015-10-061-19/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * After clobber, $OUT does not exist and tee cannot create .log; fix this by calling mkdir -p $OUT * Make sure Copy and Install are at the beginning of the log line being analyzed and also search for ':' so that "Copying:" lines don't count * Fix Copy file list by quoting so shell doesn't think this is a command: $LOC $(...) * Fix 'only copy files from $OUT' now that multiple file pushing works right * Only stop java services once (if needed) and then wait to restart services until after all files have been pushed * Change location of SystemUI.apk to priv-app Signed-off-by: Chirayu Desai <cdesai@cyanogenmod.org> Change-Id: I65edd34bf445b28c2638cb3e9621719121fb962f
* | envsetup: Mark zsh as compatibleEmilio López2015-10-061-1/+3
| | | | | | | | | | | | | | Basic functionality has been tested on zsh 5.0.2 and has been found to work correctly. Change-Id: I02e5e3bedf56b43104c280d9737ae7b334357643
* | envsetup: drop unnecesary exportsEmilio López2015-10-061-4/+0
| | | | | | | | | | | | export -f is a bashism and we don't actually need it, so lets remove it. Change-Id: I9228cef0c4a9543b3d34fdc39a368ad0238431e2
* | envsetup: do not print an error if complete failsEmilio López2015-10-061-1/+1
| | | | | | | | | | | | | | complete is a bashism; so it will fail on other shells. Avoid printing an error if that is the case. Change-Id: Id6d6311792f409cc3a697c7a2bb003863f1afe60
* | envsetup: Fix remote functions to deal with symlinksSteve Kondik2015-10-061-2/+2
| | | | | | | | Change-Id: I6f35dc30dda22149b2c37e1c6c7d41ea7239d3bb
* | build: Add cafremote command to envsetupSteve Kondik2015-10-061-0/+19
| | | | | | | | | | | | * So lazy! Change-Id: I99a988180abb4fb486d4ebbb842bb9eda03bf1bc
* | Add a unique build number to every buildRicardo Cerqueira2015-10-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDK-readable via android.os.Build.INCREMENTAL Change-Id: If9885adebe12a56b2b2e353285721be695bc411b Fix exporting the unique build identifier Change-Id: Ie58e981b7e83a4351d137dfd8995dce7d365d950 Fix incremental build number on Darwin Darwin does not include sha1sum, but it should have openssl. Change-Id: If2b685c1478f9486bed21dfba0c655d9e02db72b Use openssl instead of sha1sum Change-Id: Iab8a74d4af6646104cb23312853f811a38bdec0d