summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* Enable multilib odex only if TARGET_2ND_ARCH is defined.Ying Wang2014-09-151-2/+4
| | | | | | Bug: 17507247 Bug: 14694978 Change-Id: I160a37bc0970315054606829aa112b67eaee7d49
* Support to build apk odex for both arch.Ying Wang2014-09-153-50/+53
| | | | | | | | | | Build odex for both arch in multilib build if an app has LOCAL_MULTILIB := both. Refactored the common setup code to a separate file setup_one_odex.mk. Bug: 17409149 Bug: 14694978 Change-Id: I74c9426cd74fe0b0cb4811368f740a88ac2ae022
* Missed one part of removing the vbox target.Dan Albert2014-09-101-6/+0
| | | | Change-Id: I8edb5252b5e71de042b79cb9eb2a497d89efb773
* Refine TARGET_GLOBAL_CFLAGS for x86 and x86_64:Alexander Ivchenko2014-09-092-5/+0
| | | | | | | | Remove -msse2 for x86 (-mssse3 should be provided by the compiler). Remove -fPIC (compiler provides by default). Remove -fno-inline-functions-called-once. Change-Id: Ibb29934224c4eedfff926dc72c3b6342c1861ac9
* Add LOCAL_POST_LINK_CMD.Ying Wang2014-09-052-0/+3
| | | | | | | | | For now we support LOCAL_POST_LINK_CMD only for static executables. This fixed the hack of building linker which need to insert additional step after link. Bug: 17403674 Change-Id: Iefdfe1e3fab3a30c5d4ad701d46f931481eab572
* Add LOCAL_CLANG_*FLAGS for clang only flags.Chih-Hung Hsieh2014-09-042-0/+8
| | | | | | To be used only for some modules. Change-Id: I107ec37f11f738f860598f0c86c4ad7ec20c9011
* Merge "Add LOCAL_NO_FPIE."Tim Murray2014-09-033-1/+5
|\
| * Add LOCAL_NO_FPIE.Tim Murray2014-09-033-1/+5
| | | | | | | | | | | | | | | | Not all executables should be built with -pie. bug 15814177 Change-Id: I402e8a531866b507ee80a0bf677f9f3551ca7693
* | Merge "[MIPS64] Modify the default MIPS64 build to MIPS64R6."Ying Wang2014-09-031-1/+1
|\ \ | |/ |/|
| * [MIPS64] Modify the default MIPS64 build to MIPS64R6.Raghu Gandham2014-09-021-1/+1
| | | | | | Change-Id: I797e4c2e5b69c6991545c26886b5b25e6f8c2a67
* | Merge "Fix build breakage due to incorrect bcc_compat RS_TRIPLE."Stephen Hines2014-09-037-1/+7
|\ \
| * | Fix build breakage due to incorrect bcc_compat RS_TRIPLE.Stephen Hines2014-09-027-1/+7
| |/ | | | | | | | | | | Bug: 17333374 Change-Id: I13582ce0cde86f7b3728aa4f45a5197438d65a2d (cherry picked from commit 52626d2a7b4767905e8a369ddc8316c1290ad156)
* | Merge "[MIPSR6] R6 target options for clang"Ying Wang2014-09-032-9/+0
|\ \
| * | [MIPSR6] R6 target options for clangDuane Sand2014-07-312-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass along new R6 target arch options and floating point register model options to clang. Also pass along older arch variants. This patch depends on recent Mips extensions to 3.5 clang. The new options are rejected by aosp's current 3.5 clang. This only affects builds for mips32r6/mips64r6, not Android's default builds for mips32r2. Change-Id: Ic921dc14ced34a83143a82e322124b3ef035014a
* | | Default host module to 64-bit except for SDK builds.Ying Wang2014-09-021-13/+11
| |/ |/| | | | | | | | | | | | | | | Set "HOST_PREFER_32_BIT := true" only if "sdk" or "win_sdk" is among the make command line goals, or it's a MinGW windows build, which only builds host SDK tools. Bug: 13751317 Change-Id: I8ec1a97a5d1af065a153b16523c2ee3434d0dd71
* | Merge "Fix RS_TRIPLE and RS_TRIPLE_CFLAGS."Stephen Hines2014-09-026-4/+10
|\ \
| * | Fix RS_TRIPLE and RS_TRIPLE_CFLAGS.Stephen Hines2014-08-296-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17333374 Add RS_TRIPLE_CFLAGS to ensure that we build with the proper defines on targets like x86. This also changes all build targets to use the proper 32/64-bit triples when creating their runtime libraries. Change-Id: I8f6175b1a14af6d03ee90f32069f3688ec227fb9
* | | Merge "Add missing flags to x86 (both 32- and 64-bit) arch variants. Delete ↵Ying Wang2014-09-017-13/+16
|\ \ \ | | | | | | | | | | | | x86_64-atom.mk as we don't support 64-bit on old Atom."
| * | | Add missing flags to x86 (both 32- and 64-bit) arch variants.Varvara Rainchik2014-08-047-13/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Delete x86_64-atom.mk as we don't support 64-bit on old Atom. Change-Id: I0b9ab61cd9b840f32c30059cb3ba9704c733c42a Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
* | | | Add --no-include-debug-symbols to avoid bloat in user buildsBrian Carlstrom2014-08-282-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 16938924 (cherry picked from commit 91b9d01b6ba2d3ea37928febce67d13c005a2336) Change-Id: I0b744e0aaacc11fe8983f22f56ffc546a07ae764
* | | | Clang rejects -Wno-old-style-declaration flag.Chih-Hung Hsieh2014-08-261-8/+9
| | | | | | | | | | | | | | | | | | | | BUG: 17258227 Change-Id: I2a35263298ffd8dd7cda25183e185274cbf62b7b
* | | | Merge "Clang does not recognize -Wno-literal-suffix."Chih-Hung Hsieh2014-08-261-1/+2
|\ \ \ \
| * | | | Clang does not recognize -Wno-literal-suffix.Chih-Hung Hsieh2014-08-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | BUG: 17258227 Change-Id: I2d98e68daa780fbe0e127605840ae7edcb4e9880
* | | | | Merge "Push ISA features into system properties"Calin Juravle2014-08-261-0/+5
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Push ISA features into system propertiesCalin Juravle2014-08-261-0/+5
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to know instruction set featues at runtime as well so that the apps get compiled on target with the proper features. The properties are read by installd and passed to dex2oat. Bug: 16716262 (cherry picked from commit 28be9d8884861f70fbd39b3768a6d4b34009deed) Change-Id: I45b363558dea17e9b049e4a83a55990b4911d9d8
* | | | Add GCC only flags to clang .mk files.Chih-Hung Hsieh2014-08-251-1/+7
|/ / / | | | | | | | | | | | | BUG: 17258227 Change-Id: Iec9fdb21a9fa31e18a17704beb27bb493c9b7192
* | | HAVE_FUTEX is unused.Elliott Hughes2014-08-208-44/+0
| | | | | | | | | | | | | | | | | | I missed this the other day. Change-Id: Ifb6912de3aae6d03593ffb08d8d9555dc9e53f4d
* | | Merge "Remove HAVE_ANDROID_PTHREAD_SETNAME_NP."Elliott Hughes2014-08-215-40/+0
|\ \ \
| * | | Remove HAVE_ANDROID_PTHREAD_SETNAME_NP.Elliott Hughes2014-08-205-40/+0
| | | | | | | | | | | | | | | | | | | | | | | | https://android-review.googlesource.com/104945 removes the only user. Change-Id: I303d941036ab889ab747f26561506a5e1c93f0c2
* | | | Merge "HAVE_OPEN_MEMSTREAM is no longer used."Elliott Hughes2014-08-218-40/+0
|\ \ \ \
| * | | | HAVE_OPEN_MEMSTREAM is no longer used.Elliott Hughes2014-08-208-40/+0
| |/ / / | | | | | | | | | | | | | | | | Bug: 17164505 Change-Id: I8055e52019d8cdea957d0fb8cbd46ca9b52564e1
* | | | Performance improvement for whole static libsDan Albert2014-08-201-4/+13
|/ / / | | | | | | | | | | | | | | | | | | Improves performance for LOCAL_WHOLE_STATIC_LIBS by copying the first .a to the new .a rather than extracting and recreating Change-Id: Iecdb5e4bb2ce987bb41a70c3393d18a6d72ae689
* | | Merge "Remove unused entries from AndroidConfig.h."Elliott Hughes2014-08-168-170/+0
|\ \ \
| * | | Remove unused entries from AndroidConfig.h.Elliott Hughes2014-08-188-170/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We should probably try to remove these files completely, but this at least takes care of the stuff that's completely obsolete. Change-Id: Ic71b7b491c119963068294e258dc6afe5a45b40d
* | | | Merge "Strip my_clang on assignment."Dan Albert2014-08-161-6/+6
|\ \ \ \ | |/ / / |/| | |
| * | | Strip my_clang on assignment.Dan Albert2014-08-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were a few cases that my_clang was being used without being stripped. This was causing uses like the following to fail because it would be partially applied (use clang as the compiler, but don't strip out incompatible cflags). LOCAL_CLANG := true # explanation To avoid this problem in the future, just strip my_clang when it is assigned. Change-Id: I41c2f36a4d4c3aa305a25b4a151c066dad5ffe0f
* | | | Merge "Remove HAVE_GETTID."Elliott Hughes2014-08-167-36/+0
|\ \ \ \ | |/ / / |/| | |
| * | | Remove HAVE_GETTID.Elliott Hughes2014-08-187-36/+0
| | | | | | | | | | | | | | | | | | | | Bug: 17048545 Change-Id: Ib5b72ecb451a26cb393147a44601566400ca1dd6
* | | | Add compile time check for statically linked libcDmitriy Ivanov2014-08-151-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17047392 (cherry picked from commit 655d6851f308ad890193787a848b003685d3df9c) Change-Id: Ia824137e690b9bca1688a7603254273a737ddcbb
* | | | Fix HOST_LIBRARY_PATH.Ying Wang2014-08-141-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we switched to $(HOST_OUT)/lib64 for 64-bit libraries and $(HOST_OUT)/lib for 32-bit libraries. Change-Id: Ie43bc03c37e2ac8542412a7543a6af5d60c6f725
* | | | Apply TARGET_GLOBAL_LDFLAGS to transform-bc-to-soYing Wang2014-08-131-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | This fixes mips unbundled build since we switched to mips64el toolchain for both mips and mips64. TODO: multilib build support. Change-Id: I7add92d2cecfc3ab739785ceef6700240a25093a
* | | Add flag to enable default clang builds--USE_CLANG_PLATFORM_BUILD.Tim Murray2014-08-131-0/+7
| | | | | | | | | | | | | | | | | | bug 17007253 Change-Id: Ib11c017bf8aee384e6780e2a1252221fbff3327a
* | | Merge "Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option."Andreas Gampe2014-08-112-1/+8
|\ \ \
| * | | Add a WITH_DEXOPT_BOOT_IMG_ONLY configuration option.Alex Light2014-08-112-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If WITH_DEXOPT_BOOT_IMG_ONLY=true and WITH_DEXPREOPT=true then we will only preopt the boot.art and boot.oat files, leaving everything else to be compiled at first boot. This has fast startup times of WITH_DEXPREOPT but has a smaller space usage and allows one to update the non-image parts of /system without reflashing. Bug: 16938924 Change-Id: Ib366b6b5ad80f7078f01bf51f9fbc29ea7e5d777
* | | | Consistent use of USE_MINGWYing Wang2014-08-074-4/+4
| | | | | | | | | | | | | | | | Change-Id: I05e212e5a99639d0196006b9c2ec35072c54f399
* | | | Fix Windows SDK build.Dan Albert2014-08-071-0/+5
| | | | | | | | | | | | | | | | Change-Id: Ia2a318957aa525f0e72b556a693a20f513146b64
* | | | Inhibit implicit -Bsymolic in -shared.Dan Albert2014-08-078-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 16853291 Change-Id: Id70488b077256a70137c4417f21be2c2d1d4341c
* | | | Fix uses of -fPIC and -fPIE.Dan Albert2014-08-078-11/+14
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We've been using -fPIC and -fPIE together in the global cflags all this time. These options are incompatible. The only reason we haven't been hit by this before is because of the forced -Bsymbolic in GCC. To fix this, pass -fpic when compiling objects for shared libraries and -fpie when compiling objects for executables. For static libraries, also use -fpic. We have to do this because static libraries might be included in either a shared library or an executable. Code compiled with -fpie cannot be included in a shared library, but code compiled with -fpic may be included in an executable. We've also been using -fpic and -fPIC together. These are different options, and only the latter will take effect. http://stackoverflow.com/a/967010 The final thing this fixes is that we had -f(PIC|PIE) flags being passed to link commands. These are compile time flags, and don't do anything at link time. Bug: 16823325 Change-Id: Ic76f47e63dc2c81b7e1a8058bae1b3dc8565d606
* | | Make system use patchoat to relocate during runtime.Alex Light2014-08-052-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change DexPreOpt to include patch information of all compiled files so we can relocate at runtime. Bug: 15358152 Change-Id: Ibe92d8b55a24bbf718b0416a21b76e5df7a2de26
* | | Merge "Move from dalvik.vm.image-dex2oat-flags to dalvik.vm.dex2oat-filter ↵Brian Carlstrom2014-08-011-2/+2
|\ \ \ | |/ / |/| | | | | [build]"