Merge tag 'android-4.4.2_r1'

Android 4.4.2 Release 1
build: update eat() command with gapps and path fixes

Two changes with the behavior:

  1) Push zip to /data/media/0 in recovery

    In the case when eat was run and the device was not in recovery, it
    would push to /data/media/0/. When the device is in recovery, /sdcard/
    is symlinked to /data/media/, so the file is never found on reboot.

    With this patch, it will push it and flash it to the same location,
    /data/media/0/, where it will be consistent.

  2) Support environment variable $EAT_GAPPS_PATH

    If it is set, then eat will flash the gapps specified right after
    flashing the ROM zip.

    $EAT_GAPPS_PATH should be a path relative to /data/media/0/ and it
    should already be on the device when the command is run. Since this
    file is not going to change often, there's no use in pushing it every
    time.

Change-Id: I9eac3f317e0142d4b840a827f3dc24502a971f13
Signed-off-by: Roman Birg <romanbirg@gmail.com>
pstest: Make it smarter

* allow no revision to be specified which will pick the most recent patchset

Change-Id: Ib9d5fd5cdcc921bccea9801158490cdd3bd1a873
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
update pspush to kitkat

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
eat: fix recovery command when flashing gapps

/tmp/recovery takes a command as one line, before it was placing each
command on a separate line. So remove all the lines from the file and replace them with spaces.

Change-Id: I81ff8123b8b3a640d4ba45c44f057559349e04c7
Signed-off-by: Roman Birg <romanbirg@gmail.com>
build: Fix global selinux policy inclusion

We're adding specific policies to an overlay instead of patching
external/sepolicy, so we need to make sure it's included to prevent
misbehaving systems

Change-Id: I7989a1093f9abc8360d492e73a860eb4afad10ad
build: Add installer persistence support [1/3]

Was commented out in the 4.4.x merge of build/

This reverts commit decc8f09860ecbda70fb0a3100b24cf24aa0ba1b.

Change-Id: I64984097ac43d58ea02bb45775341669d595c6fb
Support building with GNU make 4.0

* It works just fine, no need for the warning.

Change-Id: Ifa2ab17454edfcd8b7840a7534f70576286f2864
Merge "Support building with GNU make 4.0" into kitkat
Merge branch 'kitkat' of https://github.com/AOKP/build into kitkat