Commit Graph

48 Commits

Author SHA1 Message Date
Gokul GK 49c4f331ff build.sh: fix script exiting with code 0 on error
Change-Id: I54ca754b3b8e249c5a3702616ca3cc7fc7580c81
2023-01-20 18:38:25 +00:00
Hernan Castañón Álvarez bc5e098b2e aospa: allow setting alpha as a build variant.
As the default is now unofficial and alpha/beta/release tags are
only for team purposes, we need to add alpha option too.

Signed-off-by: Hernan Castañón Álvarez <herna@paranoidandroid.co>
Change-Id: Ib7c73204bf84d0e771432a61c06dc9cc42a3d42a
2022-08-12 02:57:36 +02:00
Roman Rihter 1dfffd3b21 build.sh: Add ability to set build version as argument
Sometimes you need to mark builds` versions by editing the
AOSPA_MINOR_VERSION, let's provide an argument for it instead
of editing version.mk.

Change-Id: Id48478c92fa3dc678db5b37fab9c45f0a7fd2346
2022-07-17 00:04:29 +00:00
Roman Rihter 92d1311f2e build.sh: allow to specify multiple modules
Sometimes you need to build multiple modules
at one time, 32 and 64 bit libraries for example.
Allow to do it by specifying multiple -m arguments.

Change-Id: I1d138ad027ab1bf06815cc23209ce31b1ea578c1
2022-03-18 06:44:59 +00:00
Omkar Chandorkar 074596df3e !fixup: build.sh: make use of `get_build_var()`
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Iabbf089aacca5c187d38819b89c9054e55120715
2022-03-04 17:43:14 +00:00
Akhil Narang d35efb5d2f build.sh: make use of `get_build_var()`
no need to lunch twice to get value

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Change-Id: I25da5de22be291c9536084b64d35b69995716525
2022-03-04 05:58:39 +00:00
Adithya R 204bad30d1 build.sh: Print otapackage path on completion
Change-Id: I2621e9f2d667500edb4c01abdcdbf96fc09443dc
2022-02-18 11:12:15 +00:00
Adithya R 74449d9ee1 build.sh: Abort build if lunch failed
* otherwise it builds aosp generic target

Change-Id: Ica0cd7ca712eceeb74f08b9253a61efdaeb65488
2022-02-18 11:12:13 +00:00
Adithya R 6d4955e8f4 build.sh: Run installclean after lunching
* only then it works properly

Change-Id: I59fc9938f590cdb04f52cac490a8c14943654069
2022-02-18 11:10:21 +00:00
Omkar Chandorkar 6b7dfe28d3 build: rename signed fastboot package
* users think fastboot is signed while ota isn't

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Ibf4faefacc7895874936cdfab00bd2a1edb4e4a6
2022-02-12 13:14:19 +00:00
Omkar Chandorkar abbcc615cf build: split ota/fastboot builds for non-signed as well
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I3baf13a34936a020dc02f8b265bbd161d3a2dcf4
2022-02-12 13:14:17 +00:00
Omkar Chandorkar b720880035 build: build target-files-package instead of dist
* let's save everyone a few cpu cycles and disk writes

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I6abd3794f1007d52acc401e3babc9de067a15c18
2022-02-12 13:14:16 +00:00
Hernán Castañón Álvarez 6d52b7c2ce aospa: fix AOSPA variant issues.
The AOSPA_BUILDTYPE was wrongly written. First we need to check whether if
it's a beta or stable, then set alpha if it's not, as no matter what we put after
-v in build sentence, it will be either beta/release or alpha.

Signed-off-by: Hernán Castañón Álvarez <herna@paranoidandroid.co>
Change-Id: I4c84419c92f7652a45b78cf20ad49533ddd0390d
2022-02-12 13:13:38 +00:00
Omkar Chandorkar d4e11e56b2
build: let us know signed fastboot package is being generated
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Ifbd1a68a0336284fb8142119a00a7ede2316f329
2022-02-01 19:20:29 +05:30
Omkar Chandorkar eda9d9b12e
build: fix $JOBS
* "$CMD" on commands wasn't respecting the initial space for some reason

Change-Id: I6945bdc396d92b57f28a25aeea0400a62bbb668e
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-02-01 19:19:36 +05:30
Vishalcj17 3a6c6ef8c9
aospa: Setup and adapt build script for the new Sapphire.
Change-Id: If06410a46acb6585e20c7a6c63762e47bb23d0ab
2021-10-14 11:46:10 +09:00
Evan Anderson a8b19ecf74 build: Remove backuptool flag
This is no longer included for R

Removed in commit eb5bf82b68

Change-Id: If4066b9ab90be99c07b993be4d2fc9eae9b8a7b2
2021-01-07 00:22:28 +00:00
Evan Anderson 1d358b4560
script: Allow generating of fastboot zip with unsigned builds
* We need to support this for OP8/T.

Change-Id: I86ae5deb813b3603ea6f1990819cccfc01fe1b79
2020-12-22 15:54:18 -07:00
Evan Anderson 1919416ec0 script: Clean up targets and signing scripts
* Signing scripts must be referenced from the build directory
otherwise the search paths for signing jars are wrong

Change-Id: I70ea96fc950fcf7ffec817591fdcee8887c9458c
2020-12-19 18:02:31 -06:00
Jyotiraditya 85f12985fe
pa: envsetup: Stop executing vendor HAL script.
* CAF used this to generate blueprints for their QTI
   vendor HALs under vendor/qcom/opensource/interfaces.

 * In Android 11 they switched to pre-generated blueprints,
   so there's no reason to run this at build time, also
   it slows down build.

 * Also remove mka, after removing this it no longer
   serves a purpose as the "m" function exists.

Change-Id: I9644a08d120fbfedf0cb119e21e12800fa2509ff
2020-09-25 18:14:26 -07:00
Evan Anderson 91cdcad1ba build: Don't write the delta to the same file
Change-Id: I857adc9dd1c990de2fcc8266efa1cc2d59ae3f0a
2020-04-23 23:37:59 -05:00
Evan Anderson d46f82581e build: Add incremental OTA and image zip generation options
* We'll use incremental OTAs for releases
* Image zips are required for OP7

Change-Id: I61f3e5a5589df34ed201df28bd07e36ec6cb16bd
2020-04-23 00:40:45 -05:00
Park Ju Hyung b142e2c246 pa: rom-build: symlink to final OTA zip instead of hard copy
This is both a waste of time and space

Change-Id: I111e00702c065be7c6805e943c9179a6bf313b91
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
2020-03-12 22:06:46 +00:00
TheStrix d39938e754 pa: rom-build: Improve build script
- Added option to sign builds.
 - Added option to specify build type and variant.
 - Added option to build module(s).
 - Detailed options can be viewed by ./rom-build.sh --help.
 - Other minor updates.

Change-Id: I61ee4819ed042beaec3876bfef61c55776b28ed7
2020-01-08 20:24:58 +01:00
TheStrix c8b1aa196b pa: build.sh: Fix PA_VERSION
Change-Id: Iccb732ccbfdaeb049a79db54ac6aff806531a14c
2019-12-28 19:08:03 +05:30
Hernán Castañón 9b8b95d294 pa: change location of PA_VERSION on our build script.
We recently moved it from main.mk to props.mk

Signed-off-by: Hernán Castañón <herna@paranoidandroid.co>
Change-Id: I0e9bc1e7849ff3eb044a85ce0130bcc464143f85
2019-02-25 16:52:57 +01:00
Evan Anderson dfbf9ac6cc
pa: build.sh: propogate mka return code
This requires https://gerrit.aospa.co/#/c/3692/

As in the associated commit, this change propogates the return code to
the shell environment which called the script. It also prints "Build
Failed!" in red as an indication to the user that the build has failed.

Change-Id: Ifedffecf4bf87f908056779e5e26e8f997998872
Signed-off-by: Evan Anderson <evananderson@aospa.co>
2017-08-09 20:49:38 -05:00
Evan Anderson 531b75b765 build: Use JDK 8
Nougat requires JDK 8 to build

Change-Id: I445d03cae4abeca4ad89f80523819c4db880a48b
Signed-off-by: Evan Anderson <evananderson@aospa.co>
2016-08-30 16:57:16 -04:00
Ícaro Hoff 25b37e1c27
pa: avoid displaying an 'export' variable on header
When you run the script, it will print: "Building AOSPA export 6.0.3".
This happens due to:
989f423b85
Because the variable we had before didn't need to be exported:
"VERSION=$VERSION_MAJOR.$VERSION_MINOR$VERSION_MAINTENANCE-$VERSION_TAG"
After the commit I mentioned above it needs, so we need to make the
'sed' command notice that too. Fix it!

Change-Id: I0c66d56460e1769fa0b6cb6ff8711b5bff84e7a6
Signed-off-by: Ícaro Hoff <icarohoff@gmail.com>
2016-08-16 17:11:30 -03:00
Evan Anderson 989f423b85 Simplify versioning
There's no need to separate the major, minor, maintenance, and tag
versions. Switching to a single version declaration makes scripts
simpiler and saves space.

Change-Id: Ie6237c58705e4e31ee5ab08a4aa7167af90f6897
Signed-off-by: Evan Anderson <evananderson@aospa.co>
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-08-08 16:45:44 +02:00
Alex Naidis bcda378194 build-script: set repo params for smallest download
* Makes a big difference with the new caf manifest since we don't have to clone all branches

Change-Id: Ibe4298c42298febe432eb6c27c5d83787cdb4d0f
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2016-07-19 19:08:04 +02:00
Valters Strods ad7d85cb00 pa: Merge makefiles and rewrite dependency updater
There is no reason for the makefiles to be split up as they have
been. They are not long enough to be hard to oversee in a single
file and, arguably, are even easier to manage in a single file.

Additionally, the dependency updater has been rewritten to be a
bit more flexible with its inputs and outputs. The usage stays
exactly the same.

Conflicts:
	configs/pa_extras.mk
	configs/system.mk
	main.mk
	prebuilt/app/Android.mk

Change-Id: Ie26c3b89721d03825fa3116ab5fe0cae76ec55ab
2015-12-28 14:22:33 +02:00
Jake Weinstein c4858beb9c vendor: remove prebuilt chromium script
* Chromium is already prebuilt on 6.0
2015-12-27 20:38:45 +00:00
Valter Strods e65bcecc7b Merge "build.sh: Add usage information" into lollipop-mr1 2015-08-07 02:02:02 -04:00
Parthipan Ramesh 05f5a4f906 build.sh: Add usage information
As with this commit, the user can now see the available options by
running `build.sh -h`. Additionally, the option list will also get
output when the user does not pick any specific device to build.

Change-Id: I899b8b1f266edd37ae94d36becdcad9d39811461
2015-08-05 13:55:06 -04:00
Evan Anderson 7833bf3f92 buildscript: Only remove device directory on clean step
We don't need to remove all of the out folder since most
of the non-device specific items don't need rebuilding every time.
This preserves the host binaries and other generic items.

Change-Id: Idb3196d63d03c60cd2578cc07786ffbfc0069bd8
Signed-off-by: Evan Anderson <evananderson@aospa.co>
2015-07-02 02:15:32 -05:00
ayysir 60c934e0e8 build.sh: Check whether the host is 64-bit
Abort right away if the user tries to build on a box that does not
appear to be 64-bit.

Change-Id: If71685c238c8e1690fd50fee9b4151f803305a81
2015-02-01 13:06:15 +02:00
Valter Strods da59157305 PA: Rewrite the build script
usage: ./rom-build.sh <device> [sync] [user] [clean]

The parameters are now accepted in any order so you do not need to
worry about crazyness like that. The interactive mode was dropped
as it was not referenced from anywhere, along with UPLOAD and
CLEAN_BUILD variables being set. Various other changes have taken
place all around, generally aiming for improved stability. As an
extra on top, we have the username set correctly once again with
this change applied.

Change-Id: I52db5ee034b90f99e0f0501583073b2bca0fc0e1
2015-01-29 14:08:51 +02:00
Evan Anderson 7d9d7434f6 build.sh: Add support for user builds
This adds a command line argument for enabling user
builds for releases.  Example usage is below

./rom-build.sh hammerhead user

Change-Id: I49a5ae767e7eff8389a2bd17075ec32990498b7c
Signed-off-by: Evan Anderson <evananderson@aospa.co>
2015-01-26 23:46:05 -05:00
Valter Strods b6fc50ea8b PA: Drop all hybrid-specific configuration
PREFS_FROM_SOURCE was initially added to product makefiles back
in 03c1663 and the PA overrides makefile in d454ed8 and then was
discontinued after a short period with d454ed8 but mentions of it
still remained throught the makefiles up until now even though
PaPrefs is not in use at all anymore. OVERLAY_TARGET is in a
situation very similar to that - the variable is not in use as
hybrid is not in use.

Change-Id: I117f7f16828af8d963d80d3a7c2626f772e16f91
2015-01-23 02:13:10 +02:00
ayysir 4d16b02b4a build.sh: lollipop supports Java 7
Change-Id: If28358f169deb374d13bef6f60366ca2db933e99
2014-12-21 12:24:48 -05:00
Liu Yen-Liang (josh) efb7430eb1 get correct number of cores info in MacOSX
no /proc file system in MacOSX. use sysctl to return correct number of
cores to speed up building.

Change-Id: Ic813521c5867fd3c5ac1f565894dcb89aa1a3579
2014-10-01 00:12:50 -04:00
Ayysir 5c77d8af5c Use prebuilt chromium by default
thanks to OmniRom for this implement

Signed-off-by: Ayysir <dresadd09691@gmail.com>
Change-Id: Ieff9b8ec655cb6da9c719b72d1d58c97494133b3
2014-08-07 17:51:55 -04:00
Curtis Mayers 299a567c0a Merge "Show version tag when building" into kitkat 2014-01-21 22:03:40 -05:00
Yamil Ghazi ce52c8f9b7 Add ro.pa.device property
PS1: fix derp

Change-Id: I0940b4791e9b94574c270fa5fed7391798983589
2014-01-14 03:24:50 -06:00
Yamil Ghazi fa0f110fac Show version tag when building
Change-Id: I6e202614c69a53420bcd91b13cd1d6296e1d960b
2014-01-13 06:14:54 -06:00
D4rKn3sSyS 90b33d84e3 Vendor fixes
* Fix build derp
* Call roms ALPHA
* Remove readme

Change-Id: Ibbfbe44a5c686f5fc1cb8f9b7827cd918f3a2b5a
2013-11-10 08:58:19 -05:00
BigBrother1984 f5ae67de72 Move basic build script to vendor repo.
Need to add ccache part too.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
2013-11-09 22:35:01 +01:00