Skip to content

Commit 8e85fb9

Browse files
author
ARC GNU Verification
committed
Merge branch 'arc-dev' into arc-staging
2 parents 02d1b35 + bee67ae commit 8e85fb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+358
-230
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ To build PDF documentation for toolchain TeX must be installed:
104104
If PDF documentation is not needed, pass option `--no-pdf` to build-all.sh to
105105
disable its build, then mactex is not required.
106106

107+
> NB! Linux/uClibc toolchain built on macOS has different uClibc configuration
108+
> then the one built on Linux hosts - **local support is disabled**. The reason
109+
> is that when locale support is enabled, uClibc makefiles will build an
110+
> application called `genlocale` that will run on host system, but on macOS
111+
> this application fails to build, therefore support for locales is disabled
112+
> when Linux/uClibc toolchain is built on macOS.
113+
107114

108115
Getting sources
109116
---------------

arc-external.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh -e
22

3-
# Copyright (C) 2013-2016 Synopsys Inc.
3+
# Copyright (C) 2013-2017 Synopsys Inc.
44

55
# Contributor Anton Kolesov <[email protected]>
66

arc-init.sh

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Copyright (C) 2007-2016 Synopsys Inc.
3+
# Copyright (C) 2007-2017 Synopsys Inc.
44

55
# This file is a common initialization script for ARC tool chains.
66

@@ -540,6 +540,52 @@ build_expat() {
540540
make_target installing install
541541
}
542542

543+
# $1 - a configuration file or a directory with .config
544+
# $2 - option to enable
545+
kconfig_enable_option() {
546+
local config=$1
547+
if [ -d "$1" ]; then
548+
config=$1/.config
549+
fi
550+
551+
# Delete occurrences of option $2 from $config and append
552+
# "$2=y" to enable this option.
553+
if ! grep -q "$2=y" $config ; then
554+
# Config file must not be empty because sed does not work
555+
# correctly with empty files.
556+
echo >> $config
557+
558+
$SED -i \
559+
-e "/# $2 is not set/d" \
560+
-e "/$2=n/d" \
561+
-e "\$a$2=y" \
562+
$config
563+
fi
564+
}
565+
566+
# $1 - a configuration file or a directory with .config
567+
# $2 - option to disable
568+
kconfig_disable_option() {
569+
local config=$1
570+
if [ -d "$1" ]; then
571+
config=$1/.config
572+
fi
573+
574+
# Delete option $2 from $config and append "$2=n" to disable this
575+
# option by force.
576+
if ! grep -q "$2=n" $config ; then
577+
# Config file must not be empty because sed does not work
578+
# correctly with empty files.
579+
echo >> $config
580+
581+
$SED -i \
582+
-e "/# $2 is not set/d" \
583+
-e "/$2=y/d" \
584+
-e "\$a$2=n" \
585+
$config
586+
fi
587+
}
588+
543589
# Create a common log directory for all logs in this and sub-scripts
544590
LOGDIR="$ARC_GNU/logs"
545591
mkdir -p "$LOGDIR"

arc-versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Script to specify versions of tools to use.
44

5-
# Copyright (C) 2012-2016 Synopsys Inc.
5+
# Copyright (C) 2012-2017 Synopsys Inc.
66

77
# Contributor Jeremy Bennett <[email protected]>
88
# Contributor Anton Kolesov <[email protected]>

build-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Copyright (C) 2012-2016 Synopsys Inc.
3+
# Copyright (C) 2012-2017 Synopsys Inc.
44

55
# Contributor Jeremy Bennett <[email protected]>
66
# Contributor Anton Kolesov <[email protected]>

build-cleanup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# Copyright (C) 2012-2016 Synopsys Inc.
3+
# Copyright (C) 2012-2017 Synopsys Inc.
44

55
# Contributor Jeremy Bennett <[email protected]>
66

build-elf32.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Copyright (C) 2009, 2011, 2012, 2013 Embecosm Limited
4-
# Copyright (C) 2012-2016 Synopsys Inc.
4+
# Copyright (C) 2012-2017 Synopsys Inc.
55

66
# Contributor Joern Rennecke <[email protected]>
77
# Contributor Jeremy Bennett <[email protected]>

build-uclibc.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Copyright (C) 2010-2016 Synopsys Inc.
3+
# Copyright (C) 2010-2017 Synopsys Inc.
44

55
# Contributor Brendan Kehoe <[email protected]>
66
# Contributor Jeremy Bennett <[email protected]>
@@ -450,6 +450,13 @@ else
450450
-i $uc_dot_config
451451
fi
452452

453+
# Remove locale support on macOS. uClibc runs an application on a host to
454+
# generate local files, but that application fails to build on macOS, therefore
455+
# locale support has to be disabled on macOS hosts.
456+
if [ "$IS_MAC_OS" = yes ]; then
457+
kconfig_disable_option $uc_dot_config UCLIBC_HAS_LOCALE
458+
fi
459+
453460
# Disable HARDWIRED_ABSPATH to avoid absolute path references to allow
454461
# relocatable toolchains.
455462
echo "HARDWIRED_ABSPATH=n" >> $uc_dot_config

dejagnu/arc-common.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2016 Synopsys Inc.
1+
# Copyright (C) 2016-2017 Synopsys Inc.
22

33
# This program is free software; you can redistribute it and/or modify it
44
# under the terms of the GNU General Public License as published by the Free

dejagnu/baseboards/arc-ashling-gdbserver.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2013-2016 Synopsys, Inc.
1+
# Copyright (C) 2013-2017 Synopsys, Inc.
22
#
33
# This program is free software; you can redistribute it and/or modify it
44
# under the terms of the GNU General Public License as published by the Free

0 commit comments

Comments
 (0)