Commit graph

35 commits

Author SHA1 Message Date
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
Rashed Abdel-Tawab
0180664282 envsetup: Use GNU sed commands if GNU sed is detected
The current check only checks for Linux, but many of us
use GNU sed on darwin as well, which means the non-Linux
command will fail, so read the sed version and use the GNU
command if GNU is found in the version string.

Change-Id: I7eefd0309751b069eef5e5e2b907d3d4f38f1638
2017-01-27 14:58:14 +00:00
Zhao Wei Liew
fb4b8c54b5
build: envsetup: Update CAF remote
CAF recommends using https://source.codeaurora.org/quic/la now.

Change-Id: Ic8d6451111f0e71bce044ffaae79f0acfc34caa1
2017-01-08 05:14:08 +02:00
Ethan Chen
b69c2ff494 envsetup: Fix indentation of eat function
Change-Id: I14afa4c8f7c705cfa04ad07f56f7e7a13a8c9378
2017-01-08 01:58:14 +00:00
Matt Mower
ed8c248ec0 envsetup: Fix check for deprecated CM device tree
By the time lunch is run on a product name, it's too late to check
whether a deprecated CM device tree is being used (roomservice runs in
lunch). Instead, rely on check_product() to identify whether a tree
uses cm_ or lineage_ before running lunch.

Change-Id: I16288365f791ff68c3226f3808427168b2fc06fa
2017-01-02 03:00:58 -06:00
Zhao Wei Liew
321dde5f70 cm: Rebrand CM_VERSION to LINEAGE_VERSION
Change-Id: I79433c4d2fa14784c5b41985ed91e3712aacafa4
2017-01-02 04:08:40 +00:00
Simon Shields
63ce74b055 cm: support lineage device trees
Change-Id: Id7d7c5747639903d1289557dab38341d5c7cc287
2016-12-31 21:29:32 +00:00
Dan Pasanen
0344771b53 vendor: we are now LineageOS
* Change necessary bits to support our project move

Change-Id: I085470d448a243cc9d60b4ce920dee52086f64cd
2016-12-28 19:44:28 +00:00
Zhao Wei Liew
64fc5aeb49 cm: build: envsetup: Add mmmap command
It doesn't make sense to have:
1. mm and mmp
2. mma and mmap
3. mmm and mmmp
4. mmma BUT NO mmmap

Add the mmmap command for consistency.

Change-Id: I8cb1041113e6d56a0ac1d34898b07615da22b459
2016-12-10 16:48:27 +08:00
Luca Stefani
84fda60f6b build: Set android jack args to global jack server args if existing
Change-Id: Iafd416aaac81642c7ec736712b45ecbe05b0d55e
2016-11-24 05:31:23 -08:00
Alexander Martinz
1bbf3e9346 envsetup: block SDCLANG on Darwin for now
Snapdragon LLVM is not supported on Darwin yet.
There might be the case where the directory structure is set up
by default and the build system will try to execute the linux binaries.

This will fail obviously:
  /bin/bash: /Volumes/Android/build/prebuilts/snapdragon-llvm/toolchains/llvm-Snapdragon_LLVM_for_Android_3.8/prebuilt/linux-x86_64/bin/clang: cannot execute binary file

Change-Id: I1f4d0bbda88b540b7ac3159f8e83de4501b9073b
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
2016-11-06 21:28:57 -08:00
Steve Kondik
26e669badc cm: Autodetect SDCLANG in prebuilts/snapdragon-llvm
* Will be used by the build servers

Change-Id: I5d31a7c41adc283cb9336314e9d54412cc740e9e
2016-11-04 12:08:06 -07:00
Steve Kondik
36ae30b879 cm: mka nicer
Change-Id: Iec38c313c9eb88a74c7bf7a5cf424131b568ac0a
2016-10-26 17:37:40 -07:00
Marc K
97b035dd88 envsetup: dopush: fix finding files to be pushed with ninja
Change-Id: I27b4e62d08dcd2a6dc95519197c6284c8c44636d
Signed-off-by: Marc K <morckx@gmail.com>
2016-10-26 01:12:03 -07:00
Marc K
2be9cac81b envsetup: dopush: allow (symbolic) host names for adb connect
Change-Id: Icfab874abab64b0a3e5e63091cb6c25dd9630737
Signed-off-by: Marc K <morckx@gmail.com>
2016-10-26 01:11:49 -07:00
Marc K
299137f39d envsetup: dopush: fix test if device is in recovery
Change-Id: I1687b879e00918813886b2c9c54535376aa62d99
Signed-off-by: Marc K <morckx@gmail.com>
2016-10-26 01:07:17 -07:00
Michael Bestas
e724a1c496 envsetup: Fix cafremote/aospremote for projects with non-standard paths
* Fix -caf and -caf-<platform> projects
* Fix AOSP HALs that are synced in "/default" subfolder

Change-Id: I33cc344a3234de6698676c32035622acbec03dd1
2016-10-24 10:40:12 -07:00
Michael Bestas
3952f6cb0d Import CM build additions
Change-Id: Id1eb902129754e61dfcc2b5d95c3a75172ff0c5e
2016-09-25 22:32:37 -07:00