[gem5-dev] Change in gem5/gem5[develop]: util: Delete the build_cross_gcc utility.

2021-02-17 Thread Gabe Black (Gerrit) via gem5-dev
Gabe Black has submitted this change. (  
https://gem5-review.googlesource.com/c/public/gem5/+/41454 )


Change subject: util: Delete the build_cross_gcc utility.
..

util: Delete the build_cross_gcc utility.

Now that crosstool-ng can be used for any of the supported ISAs, the
build_cross_gcc tool is no longer needed.

Change-Id: Ie72d84197662eb0bea03ec27830b3ad4dbaa3084
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41454
Reviewed-by: Ciro Santilli 
Reviewed-by: Bobby R. Bruce 
Maintainer: Gabe Black 
Maintainer: Bobby R. Bruce 
Tested-by: kokoro 
---
D util/build_cross_gcc/build_cross_gcc.py
D util/build_cross_gcc/settings.aarch64
D util/build_cross_gcc/settings.arm
D util/build_cross_gcc/settings.mips
D util/build_cross_gcc/settings.power
D util/build_cross_gcc/settings.riscv
D util/build_cross_gcc/settings.sparc
7 files changed, 0 insertions(+), 843 deletions(-)

Approvals:
  Ciro Santilli: Looks good to me, but someone else must approve
  Bobby R. Bruce: Looks good to me, approved; Looks good to me, approved
  Gabe Black: Looks good to me, approved
  kokoro: Regressions pass



diff --git a/util/build_cross_gcc/build_cross_gcc.py  
b/util/build_cross_gcc/build_cross_gcc.py

deleted file mode 100755
index 3afd4bf..000
--- a/util/build_cross_gcc/build_cross_gcc.py
+++ /dev/null
@@ -1,831 +0,0 @@
-#! /usr/bin/env python
-# Copyright 2020 Google, Inc.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met: redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer;
-# redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution;
-# neither the name of the copyright holders nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-import abc
-import argparse
-import glob
-import multiprocessing
-import os
-import os.path
-import pickle
-import shutil
-import subprocess
-import textwrap
-
-SETTINGS_FILE = '.build_cross_gcc.settings'
-LOG_FILE = 'build_cross_gcc.log'
-
-all_settings = {}
-all_steps = {}
-
-description_paragraphs = [
-'''
-This script helps automate building a gcc based cross compiler.
-The process is broken down into a series of steps which can be
-executed one at a time or in arbtitrary sequences. It's assumed  
that

-you've already downloaded the following sources into the current
-directory:''',
-'',
-'''1. binutils''',
-'''2. gcc''',
-'''3. glibc''',
-'''4. linux kernel''',
-'''5. gdb''',
-'',
-'''
-The entire process can be configured with a series of settings
-which are stored in a config file called {settings_file}. These
-settings can generally also be set from the command line, and at  
run

-time using step 0 of the process. Many will set themselves to
-reasonable defaults if no value was loaded from a previous
-configuration or a saved settings file.''',
-'',
-'''
-Prebaked config options can be loaded in from an external file to
-make it easier to build particular cross compilers without having  
to

-mess with a lot of options.'''
-'',
-'''
-When settings are listed, any setting which has a value which has
-failed validation or which hasn't been set and doesn't have a
-reasonable default will be marked with a X in the far left hand
-column. Settings will generally refuse to be set to invalid values,
-unless they were like that by default and the user refused to  
correct

-them.''',
-'',
-'''This script is based on the excellent how-to here:''',
-'''https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/''',
-   

[gem5-dev] Change in gem5/gem5[develop]: util: Delete the build_cross_gcc utility.

2021-02-16 Thread Gabe Black (Gerrit) via gem5-dev
Gabe Black has uploaded this change for review. (  
https://gem5-review.googlesource.com/c/public/gem5/+/41454 )



Change subject: util: Delete the build_cross_gcc utility.
..

util: Delete the build_cross_gcc utility.

Now that crosstool-ng can be used for any of the supported ISAs, the
build_cross_gcc tool is no longer needed.

Change-Id: Ie72d84197662eb0bea03ec27830b3ad4dbaa3084
---
D util/build_cross_gcc/build_cross_gcc.py
D util/build_cross_gcc/settings.aarch64
D util/build_cross_gcc/settings.arm
D util/build_cross_gcc/settings.mips
D util/build_cross_gcc/settings.power
D util/build_cross_gcc/settings.riscv
D util/build_cross_gcc/settings.sparc
7 files changed, 0 insertions(+), 843 deletions(-)



diff --git a/util/build_cross_gcc/build_cross_gcc.py  
b/util/build_cross_gcc/build_cross_gcc.py

deleted file mode 100755
index 3afd4bf..000
--- a/util/build_cross_gcc/build_cross_gcc.py
+++ /dev/null
@@ -1,831 +0,0 @@
-#! /usr/bin/env python
-# Copyright 2020 Google, Inc.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met: redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer;
-# redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution;
-# neither the name of the copyright holders nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-import abc
-import argparse
-import glob
-import multiprocessing
-import os
-import os.path
-import pickle
-import shutil
-import subprocess
-import textwrap
-
-SETTINGS_FILE = '.build_cross_gcc.settings'
-LOG_FILE = 'build_cross_gcc.log'
-
-all_settings = {}
-all_steps = {}
-
-description_paragraphs = [
-'''
-This script helps automate building a gcc based cross compiler.
-The process is broken down into a series of steps which can be
-executed one at a time or in arbtitrary sequences. It's assumed  
that

-you've already downloaded the following sources into the current
-directory:''',
-'',
-'''1. binutils''',
-'''2. gcc''',
-'''3. glibc''',
-'''4. linux kernel''',
-'''5. gdb''',
-'',
-'''
-The entire process can be configured with a series of settings
-which are stored in a config file called {settings_file}. These
-settings can generally also be set from the command line, and at  
run

-time using step 0 of the process. Many will set themselves to
-reasonable defaults if no value was loaded from a previous
-configuration or a saved settings file.''',
-'',
-'''
-Prebaked config options can be loaded in from an external file to
-make it easier to build particular cross compilers without having  
to

-mess with a lot of options.'''
-'',
-'''
-When settings are listed, any setting which has a value which has
-failed validation or which hasn't been set and doesn't have a
-reasonable default will be marked with a X in the far left hand
-column. Settings will generally refuse to be set to invalid values,
-unless they were like that by default and the user refused to  
correct

-them.''',
-'',
-'''This script is based on the excellent how-to here:''',
-'''https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/''',
-'',
-'''
-Please view that webpage for a detailed explanation of what this
-script does.'''
-]
-
-def help_text_wrapper(text):
-width = shutil.get_terminal_size().columns
-text = textwrap.dedent(text)
-text = text.strip()
-return textwrap.fill(text, width=width)
-
-description = '\n'.join(list(map(help_text_wrapper,  
description_paragraphs)))

-