Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Unified Diff: src/untrusted/irt/irt.gyp

Issue 9816003: GYP build for ARM untrusted runtime. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/shared/srpc/srpc.gyp ('k') | src/untrusted/irt_stub/irt_stub.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/irt/irt.gyp
===================================================================
--- src/untrusted/irt/irt.gyp (revision 8118)
+++ src/untrusted/irt/irt.gyp (working copy)
@@ -46,53 +46,66 @@
'irt_random.c',
],
},
- 'conditions': [
- # NOTE: We do not support untrusted gyp build on arm yet.
- ['target_arch!="arm"', {
- 'targets': [
- {
- 'target_name': 'irt_core_nexe',
- 'type': 'none',
- 'variables': {
- 'nexe_target': 'irt_core',
- 'build_glibc': 0,
- 'build_newlib': 1,
- 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'],
- 'link_flags': [
- '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)',
- '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)',
- ],
- },
- 'dependencies': [
- '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
- '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib',
- ],
- },
- {
- 'target_name': 'irt_browser_lib',
- 'type': 'none',
- 'variables': {
- 'nlib_target': 'libirt_browser.a',
- 'build_glibc': 0,
- 'build_newlib': 1,
- 'sources': ['<@(irt_sources)', '<@(irt_browser)'],
- },
- 'conditions': [
- ['target_arch == "x64" or target_arch == "ia32"', {
- 'variables': {
- 'link_flags': [
- '-r',
- '-nostartfiles',
- ],
- },
- }],
- ],
- 'dependencies': [
- '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
- '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib',
- ],
- },
+ 'targets': [
+ {
+ 'target_name': 'irt_core_nexe',
+ 'type': 'none',
+ 'variables': {
+ 'nexe_target': 'irt_core',
+ 'build_glibc': 0,
+ 'build_newlib': 1,
+ 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'],
+ 'conditions': [
+ # See comment in native_client/src/untrusted/irt/nacl.scons
+ # regarding -Ttext-segment. Also see
+ # http://code.google.com/p/nativeclient/issues/detail?id=2691.
+ ['target_arch!="arm"',
+ {
+ 'link_flags': [
+ '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)',
+ '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)',
+ ]
+ }, { # target_arch == "arm"
+ 'sources': ['<@(irt_sources)',
+ 'aeabi_read_tp.S'],
+ 'cflags': ['--pnacl-allow-translate',
+ '-arch', 'arm'],
+ 'asflags': ['-arch', 'arm'],
+ 'link_flags': [
+ '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)',
+ '-Wl,-Ttext=<(NACL_IRT_TEXT_START)',
+ '--pnacl-allow-native',
+ '-arch', 'arm',
+ '-Wt,-mtls-use-call',
+ # TODO(olonho): rethink
+ '-L<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm',
+ ],
+ },
+ ],
+ ],
+ },
+ 'dependencies': [
+ '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
+ '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib',
],
- }],
+ },
+ {
+ 'target_name': 'irt_browser_lib',
+ 'type': 'none',
+ 'variables': {
+ 'nlib_target': 'libirt_browser.a',
+ 'build_glibc': 0,
+ 'build_newlib': 1,
+ 'sources': ['<@(irt_sources)', '<@(irt_browser)'],
+ 'link_flags': [
+ '-r',
+ '-nostartfiles',
+ ],
+ },
+ 'dependencies': [
+ '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
+ '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib',
+ ],
+ },
],
}
« no previous file with comments | « src/shared/srpc/srpc.gyp ('k') | src/untrusted/irt_stub/irt_stub.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698