Commit Graph

29 Commits

Author SHA1 Message Date
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