summaryrefslogtreecommitdiffstats
path: root/core/combo/HOST_linux-x86.mk
Commit message (Collapse)AuthorAgeFilesLines
* Support host multilib buildYing Wang2014-05-141-29/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change basically ported our target multilib to the host side. It supports 2 host build modes: x86 and x86_64 multilib build. For now you need to set "BUILD_HOST_64bit=true" to switch to x86_64 multilib build. Later we'll default to x86_64 build and have a flag to force 32-bit only build, which may be needed by SDK build. In host module definition, like in target ones, you can use the following LOCAL variables to set up multilib configuration: LOCAL_MULTILIB: can be "both", "first", "32" or "64". It also supports the same set of arch or 32-vs-64 specific LOCAL variables. By default, it builds only for the first arch. To keep path compatibility, in x86_64 build files are still output to out/host/linux-x86; Both 32-bit and 64-bit executables are in out/host/linux-86/bin; In x86_64 build 32-bit shared libraries are installed to out/host/linux-x86/lib32 and 64-bit shared libraries are installed to out/host/linux-x86/lib; 32-bit object files are output to out/host/linux-x86/obj32 and 64-bit object files are output to out/host/linux-x86/obj. Bug: 13751317 Change-Id: I6044f83b7db369a33e05209e8c588eb6dc83409f
* Disable canonical prefixes of system headersAndrew Hsieh2014-05-091-1/+2
| | | | | | | | | | | | | | | | | GCC know a few pre-defined paths (relative to its location) to search for headers, libraries, program, etc. By default GCC prefixes its own path(argv[0]) and calls realpath() which result in absolute path with all symlink, . and .. removed. It's usually good to have canonicalised paths, but absolute paths in *.d file can cause unnecessary relinking when stale entries in ccache cache hit Add -no-canonical-prefixes (gcc>=4.6) and -fno-canonical-system-headers (gcc>4.6) to disable realpath() on prefixed paths Change-Id: I58d739e61fb013015fb05a9c98b2132b307f915a
* Switch to new host prebuilt x86_64-linux-glibc2.11-4.6Andrew Hsieh2014-04-231-7/+2
| | | | Change-Id: I763398d523bf4851a13722f72b12ec69d7a4bb4f
* Make Clang host builds hermetic on Linux.Tim Murray2014-03-241-0/+4
| | | | | | | | | This lays the groundwork for making builds hermetic on Darwin as well. That will be fixed in a future patch. bug 13435344 Change-Id: Iae82d0b9efad0598d682ff5fd4daa737aa607866
* Fix HOST_TOOLCHAIN_PREFIXAndrew Hsieh2014-03-121-6/+6
| | | | | | | | | Previously HOST_TOOLCHAIN_PREFIX can't accept toolchain in arch-os-*-gcc format. Fix it so we can try out new host toolchain, eg. HOST_TOOLCHAIN_PREFIX=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/x86_64-linux- make Change-Id: Ic1092593036c41d5471e788654fb4e0991dd7e40
* Define __STDC_CONSTANT_MACROS globally to work around host build differences.Ian Rogers2014-03-101-1/+1
| | | | Change-Id: I945128b3087b28f62467c7123b759e3514027574
* Revert "Define __STDC_LIMIT_MACROS globally to work around host build ↵Ian Rogers2014-03-101-1/+1
| | | | | | | | differences." This reverts commit 668427c941bd88cacdf24d0562e6b68eb93038a1. Change-Id: I3694aad84e7499e4c6839db0bd06acf5166e4802
* Define __STDC_LIMIT_MACROS globally to work around host build differences.Ian Rogers2014-03-101-1/+1
| | | | Change-Id: I571fc5a4b35c830ca8de4dc3117aef258dffa1bd
* Fix the host inttypes.h problem globally.Ian Rogers2014-01-291-0/+4
| | | | | Bug: 12708004 Change-Id: I2c75647bac304b82e150c540b9e6c5568997596d
* Enable NX protectionsJoshua J. Drake2013-12-121-4/+4
| | | | | | | | | | | Add -Wa,--noexecstack and -Wl,-z,noexecstack as default flags when compiling host-side applications. This enables NX protections, which prevent code from executing on the stack or heap. NX protections make exploiting memory corruption issues more challenging and is an important security feature. Change-Id: Iae580abe887e01f9029ec2a4e0fc0aae496724a4
* am e2f7bd46: am c148cca6: Merge "Specify -msse3 on host as on target."Ian Rogers2013-02-271-1/+2
|\ | | | | | | | | * commit 'e2f7bd46fc7b9aa746ae46e551727c4db0356d37': Specify -msse3 on host as on target.
| * Specify -msse3 on host as on target.Ian Rogers2013-02-261-1/+2
| | | | | | | | | | | | | | | | Make the host and the target x86 build more uniform by using the same machine flags. Its unlikely Android has ever been built on a machine without SSE3 support. Bug: 8068608 Change-Id: I19635528b61bf2c6faf02c2e575b1d9bf8025d3a
* | Allow user to override the linux host toolchain.Ying Wang2013-02-121-0/+2
|/ | | | | Bug: 8181840 Change-Id: Ib2a90d33414758e95b1a3c60db62c4188944dfdd
* am 865d851a: Merge "Remove the obsolete comments and change the misleading ↵Ying Wang2012-11-121-16/+8
|\ | | | | | | | | | | | | var name." * commit '865d851a8012e13c35d573d98770b7187d32b7f7': Remove the obsolete comments and change the misleading var name.
| * Remove the obsolete comments and change the misleading var name.Ying Wang2012-11-121-16/+8
| | | | | | | | Change-Id: Ib19099cbce0133f5c7df44fa0fd80215809a1ad8
| * Added BUILD_HOST_static to build statically linked executable/shared-libAndrew Hsieh2012-08-211-0/+5
| | | | | | | | | | | | | | | | | | | | Statically linked executable/shared-lib (eg. SDK tools) are useful in sandboxed environment. In BUILD_HOST_static zipalign needs -lpthread indirectly: zipalign->libutils.a->liblog.a->logd_write.c->pthread Change-Id: I615f574e918c83ed1ab82db2453b69d0420cb59c
* | Move AndroidConfig.h from system/core to the build project.Ying Wang2012-09-201-5/+2
| | | | | | | | | | | | So unbundled branches don't need to include the system/core project. Change-Id: Ic4ef62ee6df069b9b2dd123aed95a3e7fcdfc146
* | Don't include system/core/include/arch/<arch>/Android.mk for apps-only build.Ying Wang2012-08-161-0/+2
| | | | | | | | | | Bug: 6994483 Change-Id: I76c4d96264cf94a79d59fdeb52bb37c07a9458dd
* | Added BUILD_HOST_static to build statically linked executable/shared-libAndrew Hsieh2012-04-281-0/+5
|/ | | | | | | | | | Statically linked executable/shared-lib (eg. SDK tools) are useful in sandboxed environment. In BUILD_HOST_static zipalign needs -lpthread indirectly: zipalign->libutils.a->liblog.a->logd_write.c->pthread Change-Id: I8fa91a937b728ccdf942c4ba199efb1e2e49da3d
* On linux, always use the prebuilt host toolchainJean-Baptiste Queru2012-04-201-2/+0
| | | | Change-Id: I8077c4780e1e3540e5e2133cf0ffa61d474d3acc
* Point to new linux prebuilt toolchain for SDK buildAndrew Hsieh2012-03-131-6/+6
| | | | Change-Id: I21849119b0f3f45f950e9e6d1da0833aff381fb7
* BUILD_HOST_64bit=1 to build host tools in 64-bitAndrew Hsieh2012-02-281-2/+8
| | | | | | | | By default we build tool in 32-bit. This flag allow individual tool and its dependencies to be built in 64-bit (eg. Emulator). Fixes to resolve 64-bit porting issues (in other git) will be submitted seperately. Change-Id: I486cf7ddac727d3c374ed890857d497c3a69e598
* Revert "Reference new location of SDK toolchain"Jean-Baptiste Queru2012-01-111-1/+1
| | | | This reverts commit 1b834c6660c80d376151e977466e1622b67a2af0.
* Reference new location of SDK toolchainJean-Baptiste Queru2012-01-091-1/+1
| | | | Change-Id: If470d742a92061006d94b72f21df5c642348e179
* HOST_linux-x86: Avoid doubly define macro _FORTIFY_SOURCEJim Huang2011-11-101-1/+1
| | | | | | | | | | | | | | | | While building Android with latest host gcc, it causes the following build error: Install: out/host/linux-x86/bin/mkbootimg host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp <command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] <built-in>:0:0: note: this is the location of the previous definition cc1plus: all warnings being treated as errors In order to make build system happy, this patch does unset macro _FORTIFY_SOURCE and then define it in host cflags. Change-Id: Ic37a90f05081a2c3650b3335bc87e9e895900fb2
* Remove the simulator target from all makefiles.Jeff Brown2011-07-111-5/+0
| | | | | | Bug: 5010576 Change-Id: Ie814f4c8d3aa1e7cc7f5735822ab25542f36cf62
* Add support for custom Linux host toolchains when building the SDK.David 'Digit' Turner2010-12-131-0/+20
| | | | | | | | | | | | This is needed in order to build Linux SDK binaries that can run properly on Ubuntu 8.04 (Hardy). By default, the host toolchain on 10.04 (Lucid) generates machine code that won't run on Hardy due to GLibc ABI mistmatches. Note that nothing happens if the new toolchain is not in the prebuilt tree. Change-Id: I45c1f68e37e15a0032f885df1c5c0f297b3d8642
* Disable new longjmp in glibc 2.11 and later.Ying Wang2010-09-011-0/+3
| | | | | Bug: 2967937 Change-Id: I4e2a5f806ad45a01ca7f8c4d032cd29fce1d794d
* Build the target side of the simulator as 32-bit.Andy McFadden2010-02-241-3/+6
| | | | | | | | | This detail got lost in my previous cleanup change 9b4a812. Also add a comment explaining why the host side of the simulator needs to be built in 64-bit (wxWidgets). Change-Id: I2a867f7f80b43d53e73348b19f6ae834600295f9
* Get rid of $(combo_target)Jean-Baptiste Queru2010-02-231-0/+37
The only OS-ARCH combo that would have benefited from it is linux-x86, but it explicitly used separate configurations for the HOST_ and TARGET_ side of things. This makes is clear which files are related to the HOST_ configuration and which ones are related to the TARGET_ configuration, and expands $(combo_target) to the only possible/reasonable value that it could have had in every file. This also cleans up the simulator, by moving it in a single place in TARGET_linux_x86 (since the only part that's special is to use HOST_ settings even when building TARGET_ modules). Change-Id: I2420eeb8cfe539f5807ec99cb3177ffb9f2476d5