OSDN Git Service

android-x86/build.git
10 years agoMerge "Switch AOSP X86/MIPS compiler to gcc4.8"
Ying Wang [Fri, 15 Nov 2013 22:51:10 +0000 (22:51 +0000)]
Merge "Switch AOSP X86/MIPS compiler to gcc4.8"

10 years agoSwitch AOSP X86/MIPS compiler to gcc4.8
Andrew Hsieh [Fri, 15 Nov 2013 02:25:58 +0000 (10:25 +0800)]
Switch AOSP X86/MIPS compiler to gcc4.8

Change-Id: Ifeee2c7d696c8a8e96e52c6ca51434260bdae5f8

10 years agoMerge "Switch AOSP ARM build to use GCC 4.8."
Ben Cheng [Thu, 14 Nov 2013 22:06:34 +0000 (22:06 +0000)]
Merge "Switch AOSP ARM build to use GCC 4.8."

10 years agoSwitch AOSP ARM build to use GCC 4.8.
Ben Cheng [Thu, 14 Nov 2013 22:05:29 +0000 (14:05 -0800)]
Switch AOSP ARM build to use GCC 4.8.

Change-Id: I65051773153ad5bc2c093cd1313acd212eb427b1

10 years agoMerge "Cleanup x86 and x86_64 flags"
Ying Wang [Thu, 14 Nov 2013 04:54:55 +0000 (04:54 +0000)]
Merge "Cleanup x86 and x86_64 flags"

10 years agoMerge "Switch x86_64 over to uapi headers."
Elliott Hughes [Fri, 8 Nov 2013 22:50:55 +0000 (22:50 +0000)]
Merge "Switch x86_64 over to uapi headers."

10 years agoSwitch x86_64 over to uapi headers.
Elliott Hughes [Fri, 8 Nov 2013 22:47:10 +0000 (14:47 -0800)]
Switch x86_64 over to uapi headers.

Bug: 11559337
Change-Id: Ia0a8dff9194375172d1c89daae917d2d8952ace7

10 years agoMerge "Windows SDK: define BEGIN_DECLS/END_DECLS."
Raphael Moll [Fri, 8 Nov 2013 21:33:57 +0000 (21:33 +0000)]
Merge "Windows SDK: define BEGIN_DECLS/END_DECLS."

10 years agoWindows SDK: define BEGIN_DECLS/END_DECLS.
Raphael Moll [Fri, 8 Nov 2013 19:40:41 +0000 (11:40 -0800)]
Windows SDK: define BEGIN_DECLS/END_DECLS.

These macros are not provided by MingW by default.

Change-Id: I623fda6c8e25e26573543c9368ebad47abc7f5c3

10 years agoMerge "Remove the hacks needed to support ash and mksh concurrently."
Elliott Hughes [Thu, 7 Nov 2013 16:07:31 +0000 (16:07 +0000)]
Merge "Remove the hacks needed to support ash and mksh concurrently."

10 years agoMerge "Move goldfish-specific policy rules to their own directory."
Nick Kralevich [Wed, 6 Nov 2013 23:58:08 +0000 (23:58 +0000)]
Merge "Move goldfish-specific policy rules to their own directory."

10 years agoMove goldfish-specific policy rules to their own directory.
Stephen Smalley [Tue, 5 Nov 2013 14:37:41 +0000 (09:37 -0500)]
Move goldfish-specific policy rules to their own directory.

Change-Id: I1bdd80f641db05fef4714654515c1e1fbb259794
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
10 years agoRemove the hacks needed to support ash and mksh concurrently.
Elliott Hughes [Tue, 5 Nov 2013 19:13:49 +0000 (11:13 -0800)]
Remove the hacks needed to support ash and mksh concurrently.

We no longer have ash, and we'd rather not have unnecessary symbolic links
on the system.

Change-Id: Icfb1a51f1baaf1861c203f6ed93843b094deb65d

10 years agoMerge "Remove shell_ash; ash is but ashes."
Elliott Hughes [Tue, 5 Nov 2013 18:01:25 +0000 (18:01 +0000)]
Merge "Remove shell_ash; ash is but ashes."

10 years agoRemove shell_ash; ash is but ashes.
Elliott Hughes [Tue, 5 Nov 2013 17:05:50 +0000 (09:05 -0800)]
Remove shell_ash; ash is but ashes.

Change-Id: I88040e39c51986b14e3a764e7bb9e2c8c05ed86b

10 years agoMerge "AArch64: Enable AArch64 support"
Ben Cheng [Wed, 30 Oct 2013 17:27:17 +0000 (17:27 +0000)]
Merge "AArch64: Enable AArch64 support"

10 years agoAArch64: Enable AArch64 support
Ben Cheng [Tue, 29 Oct 2013 23:13:30 +0000 (16:13 -0700)]
AArch64: Enable AArch64 support

This patch completes the support for AArch64. It adds the last few
tweaks that will enable a AArch64 build of bionic.

Please note that though AArch64 uses the new kernel infrastructure,
where the userspace exported headers live in uapi folders, we still
need to include "kernel/common" in the include search path
(take a look at external/kernel-headers/uapi/asm-generic/signal-defs.h).

Also remove the relro linker flags for now as they crash the foundation
model.

Change-Id: Ie2fa8c1056c84dc15fec4469f2d65b8d0c5e712b
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
10 years agoMerge "Add the search path for libgcc.a and crt*.o."
Ben Cheng [Mon, 28 Oct 2013 17:44:38 +0000 (17:44 +0000)]
Merge "Add the search path for libgcc.a and crt*.o."

10 years agoAdd the search path for libgcc.a and crt*.o.
Ben Cheng [Mon, 28 Oct 2013 17:27:58 +0000 (10:27 -0700)]
Add the search path for libgcc.a and crt*.o.

Change-Id: I727f5630f7667b98770d779d43be6a7901471c55

10 years agoMerge "Two quick fixes: fix kernel header location and nostdlib."
Ben Cheng [Fri, 25 Oct 2013 16:36:39 +0000 (16:36 +0000)]
Merge "Two quick fixes: fix kernel header location and nostdlib."

10 years agoTwo quick fixes: fix kernel header location and nostdlib.
Ben Cheng [Fri, 25 Oct 2013 16:33:22 +0000 (09:33 -0700)]
Two quick fixes: fix kernel header location and nostdlib.

Change-Id: Idf2d101e16e895ca75a74a095091e3543b2b482b

10 years agoMerge "x86: turn on -Wl,--fatal-warnings"
Nick Kralevich [Thu, 24 Oct 2013 21:34:27 +0000 (21:34 +0000)]
Merge "x86: turn on -Wl,--fatal-warnings"

10 years agox86: turn on -Wl,--fatal-warnings
Nick Kralevich [Thu, 24 Oct 2013 20:32:05 +0000 (13:32 -0700)]
x86: turn on -Wl,--fatal-warnings

In 4f2f16da143fede94a1124ee79efccee78442b90, we added
-Wl,--warn-shared-textrel to TARGET_GLOBAL_LDFLAGS. This generated
a warning whenever we created a shared library with a text
relocation.  At the time, we wrote:

=====
Emit a warning when the static linker detects a shared library
has text relocations. Text relocations make it harder to
share pages across processes, and make it harder to use
certain memory protection features in, for example, SELinux.

This warning will turn into an error in a future change
(via --fatal-warnings)
=====

All code which uses text relocations has either been fixed, or
we've temporarily worked around the issue so the code can still
compile.

Enable --fatal-warnings.

Bug: 11353056
Change-Id: I2f2c65352166ef0a96f54858de1556f0290fe306

10 years agoMerge "Point to the uapi header location for aarch64."
Ben Cheng [Fri, 18 Oct 2013 16:45:12 +0000 (16:45 +0000)]
Merge "Point to the uapi header location for aarch64."

10 years agoPoint to the uapi header location for aarch64.
Ben Cheng [Wed, 16 Oct 2013 19:28:38 +0000 (12:28 -0700)]
Point to the uapi header location for aarch64.

Change-Id: Ic42f5520eb0711c35aaf7106939ef83e449bda74

10 years agoCleanup x86 and x86_64 flags
Pavel Chupin [Thu, 10 Oct 2013 16:26:31 +0000 (20:26 +0400)]
Cleanup x86 and x86_64 flags

-mandroid, -D__ANDROID__ is on by the toolchain;
-msse3 moved to llvm_config, it seems it's required only there;
__cxa_atexit is provided by libc now;
USE_SSE2 should not be used anywhere, it's always true;
remove -mstackreallign and -mfpmath=sse as useless for x86_64;

Change-Id: Ib7739f6522c375c09de10d22616c48a493841c4c
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agoMerge "Allow ECDSA signing OTA files"
Kenny Root [Mon, 14 Oct 2013 21:05:07 +0000 (21:05 +0000)]
Merge "Allow ECDSA signing OTA files"

10 years agoMerge "Specify -mcpu=cortex-a15 for krait CPU variants."
Ian Rogers [Sat, 12 Oct 2013 00:30:31 +0000 (00:30 +0000)]
Merge "Specify -mcpu=cortex-a15 for krait CPU variants."

10 years agoSpecify -mcpu=cortex-a15 for krait CPU variants.
Ian Rogers [Fri, 11 Oct 2013 22:52:53 +0000 (15:52 -0700)]
Specify -mcpu=cortex-a15 for krait CPU variants.

Bug: 11178216

Change-Id: I9922e4cd5ba27e3857798aae5c84299e26e054ea

10 years agoAllow ECDSA signing OTA files
Kenny Root [Wed, 9 Oct 2013 22:00:14 +0000 (15:00 -0700)]
Allow ECDSA signing OTA files

ECDSA works in the recovery verifier, so we can allow OTA updates to be
signed with EC keys.

Change-Id: If8f2be028843fbfd6c8c9c41b492605d9b5cbeb0

10 years agoMerge "Explictily specify the dynamic linker name."
Ben Cheng [Tue, 8 Oct 2013 21:42:32 +0000 (21:42 +0000)]
Merge "Explictily specify the dynamic linker name."

10 years agoExplictily specify the dynamic linker name.
Ben Cheng [Tue, 8 Oct 2013 21:19:50 +0000 (14:19 -0700)]
Explictily specify the dynamic linker name.

Change-Id: Ie456f19cbe3dc8e3a9677638cc705b6eaf77c2b4

10 years agoMerge "Remove explicit passing of dynamic loader name"
Elliott Hughes [Tue, 8 Oct 2013 17:09:03 +0000 (17:09 +0000)]
Merge "Remove explicit passing of dynamic loader name"

10 years agoRemove explicit passing of dynamic loader name
Pavel Chupin [Tue, 8 Oct 2013 07:35:39 +0000 (11:35 +0400)]
Remove explicit passing of dynamic loader name

We should trust toolchain on that.

Change-Id: I20dd882d167cc84c262aef245ea2d86c17bc1785
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agoMerge "Add generic aarch64 board config and build rules."
Ben Cheng [Mon, 7 Oct 2013 21:38:01 +0000 (21:38 +0000)]
Merge "Add generic aarch64 board config and build rules."

10 years agoAdd generic aarch64 board config and build rules.
Ben Cheng [Fri, 4 Oct 2013 23:02:59 +0000 (16:02 -0700)]
Add generic aarch64 board config and build rules.

Change-Id: I8b4a377596705dfa0a3bd234162d183ec2ae9530

10 years agoMerge "Remove useless x86 options that were always hardcoded on."
Elliott Hughes [Fri, 4 Oct 2013 21:37:46 +0000 (21:37 +0000)]
Merge "Remove useless x86 options that were always hardcoded on."

10 years agoRemove useless x86 options that were always hardcoded on.
Elliott Hughes [Fri, 4 Oct 2013 07:00:52 +0000 (00:00 -0700)]
Remove useless x86 options that were always hardcoded on.

ARCH_X86_HAVE_MMX, ARCH_X86_HAVE_SSE, ARCH_X86_HAVE_SSE2,
and ARCH_X86_HAVE_SSE3 were all always on. There are no longer any makefiles
or code that are conditional on any of these, so let's just remove them
rather than encourage anyone to mess with knobs that don't work.

Change-Id: I5ee095e8041eecff4554ad4801894fbfca69093f

10 years agoMerge "Duplicate i686 target arch options for x86_64."
Ying Wang [Wed, 2 Oct 2013 22:00:26 +0000 (22:00 +0000)]
Merge "Duplicate i686 target arch options for x86_64."

10 years agoMerge "x86_64: Adding new target"
Ying Wang [Wed, 2 Oct 2013 21:59:58 +0000 (21:59 +0000)]
Merge "x86_64: Adding new target"

10 years agoDuplicate i686 target arch options for x86_64.
Stephen Hines [Wed, 2 Oct 2013 18:35:29 +0000 (11:35 -0700)]
Duplicate i686 target arch options for x86_64.

Change-Id: I94a18562c38a20bac526b348eb98c2aba67a431f

10 years agox86_64: Adding new target
Pavel Chupin [Mon, 26 Nov 2012 05:50:07 +0000 (09:50 +0400)]
x86_64: Adding new target

Add x86_64 Android builds. Compiler is expected to be able to understand
-m64 code generation option.

Change-Id: I99e7337c5a5766afc5e528a481bd21631ff44dd5
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agoMerge "SignApk: add argument for loading a Provider"
Kenny Root [Wed, 25 Sep 2013 21:37:17 +0000 (21:37 +0000)]
Merge "SignApk: add argument for loading a Provider"

10 years agoMerge "Read algorithm OID directly from PKCS#8 container"
Kenny Root [Wed, 25 Sep 2013 18:41:00 +0000 (18:41 +0000)]
Merge "Read algorithm OID directly from PKCS#8 container"

10 years agoSignApk: add argument for loading a Provider
Kenny Root [Wed, 25 Sep 2013 18:14:33 +0000 (11:14 -0700)]
SignApk: add argument for loading a Provider

For supporting loading a custom key type provider, add a -providerClass
argument that loads the selected JCE at the front of the provider list.

Change-Id: I3df16f7c570d36e08806b614d6f30c41cb117565

10 years agoRead algorithm OID directly from PKCS#8 container
Kenny Root [Wed, 25 Sep 2013 16:59:10 +0000 (09:59 -0700)]
Read algorithm OID directly from PKCS#8 container

The PKCS#8 PrivateKeyInfo structure has the algorithm OID encoded right
before the actual key octet stream is encoded. Use Bouncycastle to read
the OID for creation with the key factory.

This aids in the creation of custom key types that are backed by
hardware devices (e.g., HSMs) and have their own assigned OIDs.

Change-Id: If5d8fe07bc157e9bb5a3fb5f99091e924143105f

10 years agoMerge "SignApk: add support for EC keys"
Kenny Root [Tue, 24 Sep 2013 18:04:57 +0000 (18:04 +0000)]
Merge "SignApk: add support for EC keys"

10 years agoSignApk: add support for EC keys
Kenny Root [Thu, 19 Sep 2013 19:49:36 +0000 (12:49 -0700)]
SignApk: add support for EC keys

Change-Id: I09bc0e52fc84ec321b997016a8f97de1bfd2770d

10 years agoMerge "SignApk: update SignApk to support SHA256withRSA signing"
Kenny Root [Fri, 20 Sep 2013 21:18:44 +0000 (21:18 +0000)]
Merge "SignApk: update SignApk to support SHA256withRSA signing"

10 years agoSignApk: update SignApk to support SHA256withRSA signing
Doug Zongker [Wed, 10 Apr 2013 16:19:32 +0000 (09:19 -0700)]
SignApk: update SignApk to support SHA256withRSA signing

(cherry picked from commit c0581a02ede48007623030c4ce13174ee972cc42)

Change-Id: I6212e0f3a6aa3265b111f0f7348b667af4a668b0

10 years agoMerge "Extend x86 to have different arch variants"
Ying Wang [Thu, 19 Sep 2013 16:45:15 +0000 (16:45 +0000)]
Merge "Extend x86 to have different arch variants"

10 years agoExtend x86 to have different arch variants
Negreanu Marius Adrian [Wed, 28 Sep 2011 14:47:50 +0000 (17:47 +0300)]
Extend x86 to have different arch variants

Author: Negreanu Marius Adrian <adrian.m.negreanu@intel.com>
Author: Andrew Boie <andrew.p.boie@intel.com>
Author: Daniel Leung <daniel.leung@intel.com>

Currently, x86 target only has generic i686 and x86-atom
as arch variants. This patch adds the ability to have
more than two arch variants. Defining a new arch variant
is similiar to ARM targets, by adding a new file in
core/combo/arch/x86. These files also define what
capabilities the targeting CPU has (e.g. having SSE2,
SSE3, etc.).

We define arch variants for Sandy Bridge, Ivy Bridge,
Haswell; upcoming arches can be easily added to this
set with future patches.

Change-Id: Iafbce10d205e860738db4a216ff603f9a84d7311
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
10 years agoMerge "Remove unnecessary dependencies between host and target modules."
Ying Wang [Wed, 18 Sep 2013 16:02:03 +0000 (16:02 +0000)]
Merge "Remove unnecessary dependencies between host and target modules."

10 years agoRemove unnecessary dependencies between host and target modules.
Ying Wang [Fri, 7 Jun 2013 01:05:53 +0000 (18:05 -0700)]
Remove unnecessary dependencies between host and target modules.

With this change, modules introduced by LOCAL_REQUIRED_MODULES will be
split by host/target: target modules only depend on target modules and
host modules only depend on host modules.

Bug: 9303948
Change-Id: I4078a7983aa3c00e99534f3f170dfe4b66b12287

10 years agoMerge "Add support for WITHOUT_CLANG"
Ying Wang [Mon, 16 Sep 2013 20:38:28 +0000 (20:38 +0000)]
Merge "Add support for WITHOUT_CLANG"

10 years agoAdd support for WITHOUT_CLANG
Mike Lockwood [Fri, 14 Jun 2013 17:52:50 +0000 (10:52 -0700)]
Add support for WITHOUT_CLANG

(cherry picked from commit 051a1740eb434e317451c09b72ae09c81cbfa1c1)

Change-Id: I60b7d1fa958557d13b74563c07f694b86d6a6d6f

10 years agoMerge "Switch x86 default compiler to multilib version"
Ying Wang [Sat, 14 Sep 2013 20:44:59 +0000 (20:44 +0000)]
Merge "Switch x86 default compiler to multilib version"

10 years agoMerge "Fix parsing string parameters in BOARD_MKBOOTIMG_ARGS"
Ying Wang [Sat, 14 Sep 2013 00:41:30 +0000 (00:41 +0000)]
Merge "Fix parsing string parameters in BOARD_MKBOOTIMG_ARGS"

10 years agoMerge "Rename bin/clang to bin/analyzer"
Andrew Hsieh [Fri, 13 Sep 2013 17:32:08 +0000 (17:32 +0000)]
Merge "Rename bin/clang to bin/analyzer"

10 years agoRename bin/clang to bin/analyzer
Andrew Hsieh [Fri, 13 Sep 2013 07:49:39 +0000 (15:49 +0800)]
Rename bin/clang to bin/analyzer

Change-Id: Ie77018e4943823f7d0f18e9249f973a98ee3652a

10 years agoMerge "Add libcore.conscrypt tests back to CTS"
Kenny Root [Thu, 12 Sep 2013 18:53:38 +0000 (18:53 +0000)]
Merge "Add libcore.conscrypt tests back to CTS"

10 years agoAdd libcore.conscrypt tests back to CTS
Kenny Root [Thu, 5 Sep 2013 22:10:44 +0000 (15:10 -0700)]
Add libcore.conscrypt tests back to CTS

A reorganization of the libcore test jar files caused the Conscrypt
tests to be accidentally dropped from CTS. Add them back in their own
package.

(cherry picked from commit 69c00c9ee8e6f1d865db3bc61e16473bc64f7a28)

Bug: 10210673
Change-Id: I5ffc62736d3dab7e96e480c593e07d6c640b8950

10 years agoMerge "Add Junit4 to the classpath for CollectAllTests"
Kenny Root [Thu, 12 Sep 2013 05:26:01 +0000 (05:26 +0000)]
Merge "Add Junit4 to the classpath for CollectAllTests"

10 years agoMerge "Add "WITH_STATIC_ANALYZER=1 m/mm/mmm/mma/mmma ...""
Andrew Hsieh [Wed, 11 Sep 2013 00:07:27 +0000 (00:07 +0000)]
Merge "Add "WITH_STATIC_ANALYZER=1 m/mm/mmm/mma/mmma ...""

10 years agoAdd Junit4 to the classpath for CollectAllTests
Kenny Root [Wed, 11 Sep 2013 00:00:33 +0000 (17:00 -0700)]
Add Junit4 to the classpath for CollectAllTests

This is needed for CollectAllTests to work with Junit4 tests.

Change-Id: I5e339022220b8e40bcb12337a09f3615dad7d53c

10 years agoAdd "WITH_STATIC_ANALYZER=1 m/mm/mmm/mma/mmma ..."
Andrew Hsieh [Tue, 10 Sep 2013 09:37:14 +0000 (17:37 +0800)]
Add "WITH_STATIC_ANALYZER=1 m/mm/mmm/mma/mmma ..."

The new option WITH_STATIC_ANALYZER=1 instructs build system to
run static analyzer via "clang --analyze" on a successful build.
If analyzer finds any issue, instruction to open report is displayed.
See http://clang-analyzer.llvm.org/scan-build.html for details.

WITH_STATIC_ANALYZER trumps WITH_SYNTAX_CHECK if both exist.

Project use lots of GCC extensions (eg. nested function) not supported
by clang may opt out by adding LOCAL_NO_STATIC_ANALYZER:=true

Change-Id: I9970560560bd52ce5f0fd7129c3488629627c735

10 years agoMerge "Add "WITH_SYNTAX_CHECK=1 make ...""
Andrew Hsieh [Wed, 4 Sep 2013 21:57:50 +0000 (21:57 +0000)]
Merge "Add "WITH_SYNTAX_CHECK=1 make ...""

10 years agoMerge "FDO: Only support locally"
Ying Wang [Wed, 4 Sep 2013 18:50:48 +0000 (18:50 +0000)]
Merge "FDO: Only support locally"

10 years agoAdd "WITH_SYNTAX_CHECK=1 make ..."
Andrew Hsieh [Tue, 27 Aug 2013 09:33:06 +0000 (17:33 +0800)]
Add "WITH_SYNTAX_CHECK=1 make ..."

The new option WITH_SYNTAX_CHECK=1 instructs build system to invoke
"clang -fsyntax-only" to utilize clang's better diagnostics before calling
LOCAL_CC/LOCAL_CXX for code generation.  The compilation time is slightly
longer, and the generated object file should be the same as w/o WITH_SYNTAX_CHECK

Project use lots of GCC extensions (eg. nested function) not supported
by clang may opt out by adding LOCAL_NO_SYNTAX_CHECK:=true

Change-Id: I5689586788ef049bd967364f71f31f1e359bd121

10 years agoFDO: Only support locally
synergydev [Wed, 14 Aug 2013 00:41:52 +0000 (17:41 -0700)]
FDO: Only support locally

The issues:
  - The size increase from utilizing FDO is quite large while
    utilizing runtime profiles in build.
  - By default, FDO is utilized globally if the target arch variant
    profiles exist.
  - Not all modules can show statistical significance in
    performance comparison, yet still suffer the size increase.

The solution:
  - Only enable FDO locally with LOCAL_FDO_SUPPORT
    for modules which may benefit enough to justify the size
    tradeoff.

Solution notes:
  - I've noted statistical significance in libwebcore and libskia
    thus far from utilizing FDO.
  - Analysis included sunspider, drawcanvas benchmarks, as
    well as gooda analysis on both arm and x86
  - To support runtime profile generation in modules which have
    LOCAL_FDO_SUPPORT specified,
    BUILD_FDO_INSTRUMENTATION is still used. Otherwise,
    if the target arch variant profiles exist, FDO is utilized for
    specified modules.

Change-Id: I7e95266943ff47c7d82b02e6200fd09911d0bb57

10 years agoMerge "Re-tighten default compiler options."
Ben Cheng [Wed, 28 Aug 2013 18:26:58 +0000 (18:26 +0000)]
Merge "Re-tighten default compiler options."

10 years agoRe-tighten default compiler options.
Ben Cheng [Wed, 28 Aug 2013 18:00:54 +0000 (11:00 -0700)]
Re-tighten default compiler options.

Remove "-Wno-unused-parameter -Wno-unused-but-set-parameter" added for
GCC 4.8 experiment.

BUG: 10495043
(cherry picked from internal master 1cea0755f400c1d183d22679d5b931c3a04ae4a4)

Change-Id: Ifa221709b1351a9268c06872e2b667138995c3da

10 years agoFix parsing string parameters in BOARD_MKBOOTIMG_ARGS
Jianxun Zhang [Wed, 17 Apr 2013 22:19:19 +0000 (15:19 -0700)]
Fix parsing string parameters in BOARD_MKBOOTIMG_ARGS

The existing logic in common.py breaks string arguments incorrectly:
e.g. --para1 val1 --para2 "val2 is a string" will be output as:

'--para', 'val1, '--para2', 'val2' 'is' 'a' 'string'

This will cause mkbootimg command fails due to the invalid arguments
generated from the wrong parsing.

The patch fixes this issue to get:

'--para', 'val1, '--para2', 'val2 is a string'

Change-Id: Ia34ec357550f11ae9d6adc719d86a0c6a9099fbc
Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
10 years agoMerge "Hmm, contrary to Deckard's assurances, this broke internally. Reverting."
Geremy Condra [Mon, 26 Aug 2013 21:45:52 +0000 (21:45 +0000)]
Merge "Hmm, contrary to Deckard's assurances, this broke internally. Reverting."

10 years agoHmm, contrary to Deckard's assurances, this broke internally. Reverting.
Geremy Condra [Mon, 26 Aug 2013 21:27:56 +0000 (21:27 +0000)]
Hmm, contrary to Deckard's assurances, this broke internally. Reverting.

Change-Id: I0d7892cd619e742fb5d6b1bda6d0dba7d6cd47bf

10 years agoMerge "Add sepolicy_version to PRODUCT_PACKAGES"
Geremy Condra [Mon, 26 Aug 2013 21:16:34 +0000 (21:16 +0000)]
Merge "Add sepolicy_version to PRODUCT_PACKAGES"

10 years agoSwitch x86 default compiler to multilib version
Pavel Chupin [Fri, 23 Aug 2013 12:49:21 +0000 (16:49 +0400)]
Switch x86 default compiler to multilib version

Switch from gcc-4.7 32-bit only to gcc-4.7 multilib (32/x32/64) compiler.
Tested x86 image build on Linux and Darwin.

This bionic patch is required:
https://android-review.googlesource.com/#/c/64183

Change-Id: Ifc2c6c5d6a4a1b71a00a87af072bb7f67b1c284d
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agoAdd sepolicy_version to PRODUCT_PACKAGES
William Roberts [Sat, 11 May 2013 18:21:18 +0000 (11:21 -0700)]
Add sepolicy_version to PRODUCT_PACKAGES

Change-Id: I3d2652dd594d272507c0a1485e21227149ee4af7
Signed-off-by: William Roberts <wroberts@tresys.com>
10 years agoMerge "Adding the missing audio files into the SDK system image"
Ying Wang [Wed, 21 Aug 2013 19:42:14 +0000 (19:42 +0000)]
Merge "Adding the missing audio files into the SDK system image"

10 years agoMerge "[MIPS] Add support for MXU instructions for Ingenic builds."
Ying Wang [Mon, 19 Aug 2013 23:16:27 +0000 (23:16 +0000)]
Merge "[MIPS] Add support for MXU instructions for Ingenic builds."

10 years agoMerge "mkbootimg: Support custom mkbootimg implementation"
Ying Wang [Mon, 19 Aug 2013 21:24:07 +0000 (21:24 +0000)]
Merge "mkbootimg: Support custom mkbootimg implementation"

10 years ago[MIPS] Add support for MXU instructions for Ingenic builds.
Pete Delaney [Fri, 16 Aug 2013 01:26:14 +0000 (18:26 -0700)]
[MIPS] Add support for MXU instructions for Ingenic builds.

This enables an Ingenic build to use MXU asm instructions.
MXU support was just recently added:

    ASM: https://android-review.googlesource.com/63701
    GCC: https://android-review.googlesource.com/63702
    BIN: https://android-review.googlesource.com/#/c/63704/

Change-Id: I2b60567a689efa70ec064dfbb0f241a6bc61aed1
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
10 years agoMerge "Add missing LOCAL_ADDITIONAL_DEPENDENCIES dependency to BUILD_PREBUILT."
Ying Wang [Wed, 14 Aug 2013 01:25:05 +0000 (01:25 +0000)]
Merge "Add missing LOCAL_ADDITIONAL_DEPENDENCIES dependency to BUILD_PREBUILT."

10 years agoAdd missing LOCAL_ADDITIONAL_DEPENDENCIES dependency to BUILD_PREBUILT.
Elliott Hughes [Wed, 14 Aug 2013 00:05:34 +0000 (17:05 -0700)]
Add missing LOCAL_ADDITIONAL_DEPENDENCIES dependency to BUILD_PREBUILT.

Change-Id: Id7c0e77110653e618d783026cd4b4aeadb3c45ec

10 years agoMerge "Prepare upcoming GCC 4.8 release."
Ying Wang [Tue, 13 Aug 2013 21:59:26 +0000 (21:59 +0000)]
Merge "Prepare upcoming GCC 4.8 release."

10 years agoPrepare upcoming GCC 4.8 release.
Ben Cheng [Tue, 13 Aug 2013 21:38:15 +0000 (14:38 -0700)]
Prepare upcoming GCC 4.8 release.

o Add -Wno-unused-parameter -Wno-unused-but-set-parameter to suppress
  new warnings.
o Define GCC_COLORS to enable colorful diagnostic messages.

Change-Id: Icbd62300b0e6f39d4e514edec2431a06b4d72421
(cherry picked from internal commit ccd8e6082b5b1e519a75068fa6c887a1a85b53c4)

10 years agoMerge "FDO: support linux-x86 target"
Ying Wang [Tue, 13 Aug 2013 17:38:36 +0000 (17:38 +0000)]
Merge "FDO: support linux-x86 target"

10 years agomkbootimg: Support custom mkbootimg implementation
Bjorn Andersson [Mon, 26 Nov 2012 00:53:44 +0000 (16:53 -0800)]
mkbootimg: Support custom mkbootimg implementation

Support using custom mkbootimg to allow boards to specify custom
boot image formats. Also export this as the environment variable
MKBOOTIMG to the *_from_target_files releasetools scripts.

Change-Id: I2084273b1175de097fb7da5c4f2264ea8014d74f
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
10 years agoFDO: support linux-x86 target
synergydev [Thu, 8 Aug 2013 20:08:26 +0000 (13:08 -0700)]
FDO: support linux-x86 target

Change-Id: I4a3a1d298176da109df316cf9128f19e77490bc9

10 years agoMerge "Link PRIVATE_TARGET_FDO_LIB before shared libraries"
Ying Wang [Fri, 9 Aug 2013 20:33:10 +0000 (20:33 +0000)]
Merge "Link PRIVATE_TARGET_FDO_LIB before shared libraries"

10 years agoMerge "Modify release tools to replace certs in MMAC files."
Ying Wang [Fri, 9 Aug 2013 19:42:09 +0000 (19:42 +0000)]
Merge "Modify release tools to replace certs in MMAC files."

10 years agoModify release tools to replace certs in MMAC files.
Robert Craig [Fri, 19 Apr 2013 14:59:22 +0000 (10:59 -0400)]
Modify release tools to replace certs in MMAC files.

Added support to perform a string replace of specified
dev keys with release keys when using the release tool
scripts.

Change-Id: Id0e945b0d62720c41f5ca9764a00de4bcdecaab4
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
10 years agoMerge "FDO: do not support host modules"
Ying Wang [Thu, 8 Aug 2013 18:54:20 +0000 (18:54 +0000)]
Merge "FDO: do not support host modules"

10 years agoLink PRIVATE_TARGET_FDO_LIB before shared libraries
synergydev [Wed, 7 Aug 2013 07:00:39 +0000 (00:00 -0700)]
Link PRIVATE_TARGET_FDO_LIB before shared libraries

For global declaration of FDO profile generation and usage,
we need to link PRIVATE_TARGET_FDO_LIB (libgcov.a by default)
prior to linking shared libraries.

TARGET_FDO_LIB is set if feedback directed optimizations
are in use, so we do not need to worry about consistent size
increases from this change.

Change-Id: I543903f58893816f037c9466f31b19dfe822fdf4

10 years agoAdding the missing audio files into the SDK system image
Jun Tian [Tue, 6 Aug 2013 02:27:48 +0000 (10:27 +0800)]
Adding the missing audio files into the SDK system image

The system audio files are not included in the SDK image makefile.
It causes the audio effects cannot be played in the SDK image.
It also fixed lots of error messages in the logcat.

Change-Id: I1670b2b9e4f8fe6709cd68b8e792e2f8c289876f

10 years agoFDO: do not support host modules
synergydev [Mon, 5 Aug 2013 09:44:37 +0000 (02:44 -0700)]
FDO: do not support host modules

Summary:
If built with BUILD_FDO_INSTRUMENT alone, host modules will fail at runtime (during build)
due to failing to create /data in most standard unix user permission cases. If the user does
have full permission to /, /data/profile/ will be created and profiles will be generated there.
Any file generation in the Android Build System should be kept to $OUT.

This commit fixes this bug.

Test Plan:
Build with BUILD_FDO_INSTRUMENT without additional configuration, and host modules will no longer generate profiles
at their runtime.

10 years agoMerge "Remove BUILD_HOST_JAVA_LIBRARY dependency on aapt"
Ying Wang [Fri, 2 Aug 2013 17:53:15 +0000 (17:53 +0000)]
Merge "Remove BUILD_HOST_JAVA_LIBRARY dependency on aapt"

10 years agoRemove BUILD_HOST_JAVA_LIBRARY dependency on aapt
Brian Carlstrom [Fri, 2 Aug 2013 06:31:19 +0000 (23:31 -0700)]
Remove BUILD_HOST_JAVA_LIBRARY dependency on aapt

Change-Id: I8be48114b43e46255977be1677b0c0bbccdf9163

10 years agoMerge "Remove the bogus icu.dat dependency."
Elliott Hughes [Wed, 31 Jul 2013 22:35:47 +0000 (22:35 +0000)]
Merge "Remove the bogus icu.dat dependency."

10 years agoRemove the bogus icu.dat dependency.
Elliott Hughes [Wed, 31 Jul 2013 22:02:17 +0000 (15:02 -0700)]
Remove the bogus icu.dat dependency.

Simply depending on the icu4c libraries now pulls in the appropriate
data files for you.

Change-Id: Ied659584b2583c92d871c5823988ce0a865eabe4