adb: Don't force -O2

Don't force -O2 over -O3 -- the O2 hardcode is there to force
optimizations, not to reduce them...

Change-Id: Ic75eeb767db4926f519580fba8f5f7b8e593df4f
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
core: Fix build in ISO C++11 mode

Fix compatibility with ISO C++11 compilers

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Change-Id: I8f9aa775b5681d4d8c5202a1a1935acb4efa4171
core: Increase the size of variable for the uevent.<hardware>.rc file name.

    The size of hardware is 32 bytes and the tmp variable should fit
    'uevent.' and '.rc' as well. In some cases like for the ST-Ericsson
    Snowball the 32 bytes were not enouth.
    hardware = "st-ericssonsnowballplatform"

Signed-off-by: Patrik Ryd <patrik.ryd@linaro.org>
core: Increase the size of variable for the init.<hardware>.rc file name.

The size of hardware is 32 bytes and the tmp variable should fit
'init.' and '.rc' as well. In some cases like for the ST-Ericsson
Snowball the 32 bytes were not enouth.
hardware = "st-ericssonsnowballplatform"

Change-Id: I6bf8f17c45bf5ea57fbf662e98de786c22acc863
Signed-off-by: Patrik Ryd <patrik.ryd@linaro.org>
rootdir: init.rc: Restore all Linaro changes from ICS

Change-Id: Ifb7d81d59eea01e0d9071dc27f9dbe548d635b67
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
rootdir: init.rc: Update init.rc for wifi

Update init.rc for wifi to create sockets folder wifi

Change-Id: Id52bc4728e266ce2ad31774e624d4d8d560ca8ad
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
rootdir: init.rc: Start gatord running at boot

This is a the daemon that the Streamline tool talks to
from ARM Development Studio 5 (DS-5)

Signed-off-by: Jon Medhurst <tixy@linaro.org>
sync_test: Use -fno-strict-aliasing

Use -fno-strict-aliasing here so we don't have to use it globally.
Performance on tests isn't important anyway.

Change-Id: I92ae7209ced60176cc5608f32b8ff6a911c09f10
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Allow adb shell to run as root in tests variant

Linaro is starting to use the TARGET_BUILD_VARIANT=tests, slowly
transitioning from the traditional TARGET_BUILD_VARIANT=eng builds.
Testing has found that LAVA (specifically the lava-android-test project)
expects adb shell to offer full root access. This is not the case in
'tests' builds where adb shell drops privileges and runs as the 'shell'
user.

Since it does not decrease security in any way (tests builds are marked
as insecure) would like to have adb root shell access in
TARGET_BUILD_VARIANT=tests as well.

Change-Id: I20cbe3f32385162f9dc2b6b71c47ad22b9a0924f
Adding required ST-Ericsson changes to graphics.h

Pixel formats have been added to graphics.h (they used to be in
hardware.h). One is ST-Ericsson specific and the rest are just
added since they were there in GB.

Change-Id: Ib180a29a1fb0a57bae478dc9a3ba6607fa8cab23
Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/70894
filesystem_config: Allow executables in /system/libexec

Files in $PREFIX/libexec, such as gcc's cc1, need to be executable.
Don't let make_ext4fs strip executable permissions from them.

Change-Id: Ieb90b237ba54e38deaa1705777414d207d0bae8e
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
PD's charger mods.

Change-Id: I8892723289081b233af3dee25fec99646ef0d0f1
touch-up rootdir

Change-Id: Id3f8284397897d9ccca0bad60ce67ddb7805df34
Fix include order

Change-Id: I24966d85d01741e131c437fcc7a4ac14775e6204
Use a more-AOSP init.*

Change-Id: I969443b0d22b71af9d8704245bc976694211e5c9
corkscrew-x86: Fix build with some glibc versions

Make sure __USE_GNU is actually set before ucontext.h is included
(even implicitly).
This should fix the build inside android-build (wasn't broken locally
in the first place).

Change-Id: Ic8fba210df502c3017e53a8ca4961c4a5815df67
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
adb: Link to libdl manually to avoid build failure on android-build

An outdated build environment results in a host adb build failure
because libcrypto needs libdl, but libdl isn't linked explicitly:
out/host/linux-x86/obj/STATIC_LIBRARIES/libcrypto_static_intermediates/libcrypto_static.a(dso_dlfcn.o):
In function `dlfcn_globallookup':
/mnt/jenkins/workspace/linaro-android_galaxynexus-jb-gcc47-aosp-blob/build/external/openssl/crypto/dso/dso_dlfcn.c:474:
undefined reference to `dlopen'
/mnt/jenkins/workspace/linaro-android_galaxynexus-jb-gcc47-aosp-blob/build/external/openssl/crypto/dso/dso_dlfcn.c:478:
undefined reference to `dlsym'
/mnt/jenkins/workspace/linaro-android_galaxynexus-jb-gcc47-aosp-blob/build/external/openssl/crypto/dso/dso_dlfcn.c:479:
undefined reference to `dlclose'

Change-Id: Ia232430d9f636779db84ff05ae7ece7256be8894
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
toolbox: new applet restart

- stop + start
- for the lazy.

Change-Id: Ie0ef0e27f5b7819a5575ece6b82c5813f4e38420
Reduce init logging

for the shorties

Change-Id: Ic04147aa751a08ebe90023b0da57e4609d8caeeb
Vanirify init.rc

-Hopefully fix overclocking
-Fuse
-Tweak kernel stuff
-Tweak VM stuff

Change-Id: Ia226a822bfbc83453e57df32e15159779fdeba11