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

Side by Side Diff: tools/Makefile

Issue 245733002: Added arguments to NaCl scons to allow custom toolchain directories. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Use abspath of environment instead of cwd since cwd can change per test Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/gdb/nacl.scons ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 ############################################################################## 5 ##############################################################################
6 # Helper script for NaCl toolchain development workflow. 6 # Helper script for NaCl toolchain development workflow.
7 # 7 #
8 # Buildbots: 8 # Buildbots:
9 # - Sync needed sources at pinned revision and build newlib-based toolchain: 9 # - Sync needed sources at pinned revision and build newlib-based toolchain:
10 # make buildbot-build-with-newlib TOOLCHAINLOC=<where-to-install-the-toolcha in> 10 # make buildbot-build-with-newlib TOOLCHAINLOC=<where-to-install-the-toolcha in>
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 .PHONY: gdb 860 .PHONY: gdb
861 gdb: BUILD/stamp-$(CROSSARCH)-gdb 861 gdb: BUILD/stamp-$(CROSSARCH)-gdb
862 862
863 863
864 ################################################################## 864 ##################################################################
865 # Install headers from the NaCl tree locally for the gcc build to see. 865 # Install headers from the NaCl tree locally for the gcc build to see.
866 ################################################################## 866 ##################################################################
867 .PHONY: headers_for_build 867 .PHONY: headers_for_build
868 headers_for_build: 868 headers_for_build:
869 cd .. && \ 869 cd .. && \
870 » ./$(SCONS) naclsdk_mode=custom:$(PREFIX_NATIVE) \ 870 » ./$(SCONS) nacl_newlib_dir=$(PREFIX_NATIVE) \
871 --verbose platform=x86-$(BITSPLATFORM) \ 871 --verbose platform=x86-$(BITSPLATFORM) \
872 install_headers includedir=$(HEADERS_FOR_BUILD_NATIVE) 872 install_headers includedir=$(HEADERS_FOR_BUILD_NATIVE)
873 873
874 HEADERS_FOR_BUILD = \ 874 HEADERS_FOR_BUILD = \
875 $(abspath $(dir $(THISMAKEFILE)))/BUILD/headers_for_build 875 $(abspath $(dir $(THISMAKEFILE)))/BUILD/headers_for_build
876 876
877 ifeq ($(PLATFORM), win) 877 ifeq ($(PLATFORM), win)
878 HEADERS_FOR_BUILD_NATIVE = `cygpath -m $(HEADERS_FOR_BUILD)` 878 HEADERS_FOR_BUILD_NATIVE = `cygpath -m $(HEADERS_FOR_BUILD)`
879 else 879 else
880 HEADERS_FOR_BUILD_NATIVE = $(HEADERS_FOR_BUILD) 880 HEADERS_FOR_BUILD_NATIVE = $(HEADERS_FOR_BUILD)
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 ################################################################## 1046 ##################################################################
1047 # Run DejaGnu tests. 1047 # Run DejaGnu tests.
1048 ################################################################## 1048 ##################################################################
1049 1049
1050 SEL_LDR = $(abspath ../scons-out/opt-$(PLATFORM)-x86-$(BITSPLATFORM)/staging/sel _ldr) 1050 SEL_LDR = $(abspath ../scons-out/opt-$(PLATFORM)-x86-$(BITSPLATFORM)/staging/sel _ldr)
1051 DEJAGNU_TIMESTAMP := $(shell date +%y%m%d%H%M%S) 1051 DEJAGNU_TIMESTAMP := $(shell date +%y%m%d%H%M%S)
1052 1052
1053 .PHONY: $(SEL_LDR) 1053 .PHONY: $(SEL_LDR)
1054 $(SEL_LDR): 1054 $(SEL_LDR):
1055 (cd .. && \ 1055 (cd .. && \
1056 » ./$(SCONS) naclsdk_mode=custom:$(DESTDIR)$(PREFIX) \ 1056 » ./$(SCONS) nacl_glibc_dir=$(DESTDIR)$(PREFIX) \
1057 --mode=opt-host,nacl platform=x86-$(BITSPLATFORM) \ 1057 --mode=opt-host,nacl platform=x86-$(BITSPLATFORM) \
1058 --verbose sel_ldr) 1058 --verbose sel_ldr)
1059 1059
1060 .PHONY: check 1060 .PHONY: check
1061 check: $(SEL_LDR) 1061 check: $(SEL_LDR)
1062 (cd .. && \ 1062 (cd .. && \
1063 » ./$(SCONS) naclsdk_mode=custom:$(DESTDIR)$(PREFIX) \ 1063 » ./$(SCONS) nacl_glibc_dir=$(DESTDIR)$(PREFIX) \
1064 --mode=opt-host,nacl platform=x86-$(BITSPLATFORM) \ 1064 --mode=opt-host,nacl platform=x86-$(BITSPLATFORM) \
1065 --verbose run_hello_world_test) 1065 --verbose run_hello_world_test)
1066 mkdir BUILD/build-gcc-$(CROSSARCH)/results.$(DEJAGNU_TIMESTAMP) 1066 mkdir BUILD/build-gcc-$(CROSSARCH)/results.$(DEJAGNU_TIMESTAMP)
1067 $(MAKE) \ 1067 $(MAKE) \
1068 -C BUILD/build-gcc-$(CROSSARCH) \ 1068 -C BUILD/build-gcc-$(CROSSARCH) \
1069 DEJAGNU=$(abspath dejagnu/site.exp) \ 1069 DEJAGNU=$(abspath dejagnu/site.exp) \
1070 RUNTESTFLAGS=" \ 1070 RUNTESTFLAGS=" \
1071 --target_board=nacl \ 1071 --target_board=nacl \
1072 --outdir=$(abspath BUILD/build-gcc-$(CROSSARCH)/results.$(DEJAGN U_TIMESTAMP)) \ 1072 --outdir=$(abspath BUILD/build-gcc-$(CROSSARCH)/results.$(DEJAGN U_TIMESTAMP)) \
1073 SIM=$(SEL_LDR)" \ 1073 SIM=$(SEL_LDR)" \
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 1109
1110 1110
1111 ################################################################## 1111 ##################################################################
1112 # Remove the BUILD directory. 1112 # Remove the BUILD directory.
1113 # Library builds are maintained by scons. 1113 # Library builds are maintained by scons.
1114 ################################################################## 1114 ##################################################################
1115 1115
1116 .PHONY: clean 1116 .PHONY: clean
1117 clean: 1117 clean:
1118 rm -rf BUILD/* 1118 rm -rf BUILD/*
OLDNEW
« no previous file with comments | « tests/gdb/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698