build: clean up otasigcheck

- Only mount and unmount /data if it was originally unmounted
- Don't use comparison hack, just check the result of the script

Change-Id: I4a22485d315cf91e95ce578907c49f5fa3a03222

Patchset: 1
http://review.cyanogenmod.org/#/c/78531/
build: Only mount /system if not mounted

The commit on which this depends takes care of the mount error if /data
is already mounted during install. This commit takes care of the error
if /system is already mounted.

Change-Id: I97d0540676a7ce98762545e76ecb1a7f6335d204

Patchset: 1
http://review.cyanogenmod.org/#/c/78545/
Merge branch 'cm-12.0' of github.com:CyanogenMod/android_build into cm-12.0
Merge branch 'cm-12.0' of github.com:CyanogenMod/android_build into cm-12.0
Update flags + define L1/L2 cache sizes for Krait
Merge branch 'cm-12.0' of github.com:CyanogenMod/android_build into cm-12.0
Disable block-based ROM GitHub won't allow us to put 280 MB zip, fallback to older format
build: Add chromium prebuilt support to envsetup.sh && The core Makefile

This adds a chromium_prebuilt function to envsetup.sh that is invoked by lunch to check
whether the chromium prebuilts are up-to-date or not. If not, it will be built from source
and then the new source built version will be pulled during brunch/mka bacon to become the
new prebuilts for future builds.

This is all opt-in through the USE_PREBUILT_CHROMIUM flag. Without it being set to 1,
none of this would be ran, and regular operations will go on.

PS13:
-use export TARGET_DEVICE
-replace git -C with params compatible to old git versions

(vendor repository for script)

Change-Id: I40f8c8dbd2a8a84a5c1b9f47ee04180a71ef4e07
(cherry picked from commit 84bbaf5a7426680b0b3723d11be852f756ed9e86)

Conflicts:
	core/Makefile
build: update prebuilt chromium script

Prebuilt chromium: update for lollipop

Change-Id: I4e34feb26c1b4bec10fb751a10dbc52579d7cd07

Prebuilt chromium: Run a check for target device directory

this should fix the issue that arises if device fails and device is built again,
chromium will error out because it thinks the prebuilt files exist (which they are
not, directories are just created).

Signed-off-by: Ayysir <ayysir@aospal.com>
Change-Id: I595cab268e66c738ccae9900150b36d7f9626a6e
(cherry picked from commit 32dad2952a7c9c924e18ca97336bcaefdc45fe5c)
build: Ensure /system unmounted at install start

Account for the possibility that a user has mounted system manually
before installing the FullOTA package.

Change-Id: I97d0540676a7ce98762545e76ecb1a7f6335d204
Fix chromium prebuilt
repopick: handle variant hal branching

Change-Id: Ib0dee19abc13a7fb8d8e42c09b73c1b4f35ca938
releasetools: ota_from_target_files: add FullOTA_PostValidate

Change-Id: I152412049f90fd546d4516cc064238c3192be553
Add ext2, ext3, and vfat to releasetools

Support some non-standard partition that may be found in recovery.fstab

Conflicts:
	tools/releasetools/common.py

Change-Id: I0026a1d3ae5d432db10150d1a15f7bc8e7a6054b
core: Enable -mcpu=cortex-a8 flag for Scorpion cpu variant

To be used with
	http://review.cyanogenmod.org/#/c/77758/

Change-Id: I7ecc4707fa45bd7098165615c0521a12c85fb087
buildinfo: only set ro.build.product on non-unified devices

Change-Id: I5dccba2172dade3dacc55d832a2042fce306b5f5
core: Enable -mcpu=cortex-a9 flag for Cortex-A9 cpu variant

Change-Id: I9294a518bcdc21ccbae72eadd9f3c1a12982d028
core: armv7-a-neon.mk: Add missing endif

Change-Id: Id6f9c952d01d3c980115a52605d9c86038b3b5bd
otasigcheck: Go back to the key-rewrite check.

Using an intermediate file had the at-the-time unintended but good
side-effect of making execution failures (absent script, no
busybox in recovery, bad selinux setup) pass gracefully. Since this
check is intended as a blacklist, blocking the update when only
sure that breakage will ensue, that was a nice thing to get.

Checking the return code, while cleaner, is making non-key-related
failures like those mentioned above abort execution of the script.
The key itself isn't even checked, yet we're aborting because of it.

So go back to the original behavior: In case we're not sure... pass.

To do:
This can be cleaned up differently, and to the same effect, by returning
an explicit error code from the script and aborting when that error
comes up. Change the script to do that and come back here. :)

Change-Id: Ic9d7c3128047c25f31e2ef416c9df4d21ca0a1a8
Merge branch 'cm-12.0' of github.com:CyanogenMod/android_build into cm-12.0

Conflicts:
	core/combo/arch/arm/armv7-a-neon.mk