summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
Commit message (Collapse)AuthorAgeFilesLines
* Always build superuserWolfgang Wiedmeyer2020-01-021-0/+2
| | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* fix gcc tools pathWolfgang Wiedmeyer2020-01-021-1/+1
| | | | | | export androideabi arm toolchain path Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* use arm-linux-androideabi toolchain buildWolfgang Wiedmeyer2020-01-021-1/+1
| | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* use the GNU/Linux Distribution's arm toolchain for the kernelWolfgang Wiedmeyer2020-01-021-6/+4
| | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* remove prebuilt selinux binaries from PATHWolfgang Wiedmeyer2020-01-021-1/+1
| | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* fix pathsWolfgang Wiedmeyer2020-01-021-1/+1
| | | | | Change-Id: Iaafc283244ec47a0599c474a6a42efa4d87fa97c Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* Initial Replicant 4.2 commitPaul Kocialkowski2020-01-021-8/+9
| | | | | | | | | Change-Id: I69b539d5a87304d53b62d112d6895fd36bfc6446 Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Conflicts: envsetup.sh tools/device/cm.mk.template
* Do not use roomservice when a repository is missingPaul Kocialkowski2020-01-021-11/+0
| | | | | Change-Id: I867fa21cd52b1d0e0a49160b953bde3cd84b1639 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* build: support lineage device treesSimon Shields2017-01-091-6/+17
| | | | Change-Id: I087a97e31cab2ccfba16b5378cef429785baf7d0
* build: envsetup: Update CAF remoteZhao Wei Liew2017-01-081-1/+1
| | | | | | CAF recommends using https://source.codeaurora.org/quic/la now. Change-Id: Ic8d6451111f0e71bce044ffaae79f0acfc34caa1
* build: Rebrand CM_VERSION to LINEAGE_VERSIONZhao Wei Liew2017-01-021-1/+1
| | | | Change-Id: I8b44007ebbe395df3c989be37a5d45339f111130
* build: Rebrand to LineageOSZhao Wei Liew2016-12-271-9/+9
| | | | Change-Id: Ie03583dc2a974a159fa50c6cb19cb68aa256ca77
* 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