OLD | NEW |
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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 touch $@ | 550 touch $@ |
551 | 551 |
552 | 552 |
553 ################################################################## | 553 ################################################################## |
554 # newlib: | 554 # newlib: |
555 # Builds the bare-bones library used by NativeClient applications. | 555 # Builds the bare-bones library used by NativeClient applications. |
556 # NOTE: removes the default pthread.h to enable correct install | 556 # NOTE: removes the default pthread.h to enable correct install |
557 # by the Native Client threads package build. | 557 # by the Native Client threads package build. |
558 ################################################################## | 558 ################################################################## |
559 | 559 |
560 NEWLIB_CFLAGS = -O2 -D_I386MACH_ALLOW_HW_INTERRUPTS -mtls-use-call | 560 NEWLIB_CFLAGS = -O2 -mtls-use-call |
561 | 561 |
562 BUILD/stamp-$(CROSSARCH)-newlib: | SRC/newlib BUILD newlib-libc-script | 562 BUILD/stamp-$(CROSSARCH)-newlib: | SRC/newlib BUILD newlib-libc-script |
563 rm -rf BUILD/build-newlib-$(CROSSARCH) | 563 rm -rf BUILD/build-newlib-$(CROSSARCH) |
564 mkdir BUILD/build-newlib-$(CROSSARCH) | 564 mkdir BUILD/build-newlib-$(CROSSARCH) |
565 PATH=$(BUILDPATH) && export PATH && \ | 565 PATH=$(BUILDPATH) && export PATH && \ |
566 cd BUILD/build-newlib-$(CROSSARCH) && \ | 566 cd BUILD/build-newlib-$(CROSSARCH) && \ |
567 ../../SRC/newlib/configure \ | 567 ../../SRC/newlib/configure \ |
568 --disable-libgloss \ | 568 --disable-libgloss \ |
569 --enable-newlib-iconv \ | 569 --enable-newlib-iconv \ |
570 --enable-newlib-iconv-from-encodings=UTF-8,UTF-16LE,UCS-4L
E,UTF-16,UCS-4 \ | 570 --enable-newlib-iconv-from-encodings=UTF-8,UTF-16LE,UCS-4L
E,UTF-16,UCS-4 \ |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1116 | 1116 |
1117 | 1117 |
1118 ################################################################## | 1118 ################################################################## |
1119 # Remove the BUILD directory. | 1119 # Remove the BUILD directory. |
1120 # Library builds are maintained by scons. | 1120 # Library builds are maintained by scons. |
1121 ################################################################## | 1121 ################################################################## |
1122 | 1122 |
1123 .PHONY: clean | 1123 .PHONY: clean |
1124 clean: | 1124 clean: |
1125 rm -rf BUILD/* | 1125 rm -rf BUILD/* |
OLD | NEW |