Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tc-build: Python rewrite #2

Merged
merged 85 commits into from
Apr 27, 2019

Commits on Apr 15, 2019

  1. Initial skeleton

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    9a4ffa9 View commit details
    Browse the repository at this point in the history
  2. build.py: Rename to build-llvm.py and make executable

    We are eventually going to have a build-binutils.py as well.
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    9a1ee12 View commit details
    Browse the repository at this point in the history
  3. build-llvm.py: Use a more generic python3 shebang

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    fa0208d View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2019

  1. build-llvm.py: Set defaults, fix '-i' type, and remove debug prints

    Incremental is supposed to be a boolean.
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    16e3ea1 View commit details
    Browse the repository at this point in the history
  2. build-llvm.py: Add check_dependencies function

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    4af4a46 View commit details
    Browse the repository at this point in the history
  3. utils.py: Create and use

    These will be common functions we'll use across build-llvm.py and build-binutils.py.
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    e1502a3 View commit details
    Browse the repository at this point in the history
  4. build-llvm.py: Implement most of check_cc_ld_variables

    TODOs:
    
    * Clang version checks
    * Actually making the final variables accessible outside of the function
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    8a60208 View commit details
    Browse the repository at this point in the history
  5. tc-build: Implement fetch_llvm_binutils

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    d715e7a View commit details
    Browse the repository at this point in the history
  6. build-llvm.py: Implement cleanup

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    3d3b58f View commit details
    Browse the repository at this point in the history
  7. build-llvm.py: Implement invoke_cmake

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    b405c5c View commit details
    Browse the repository at this point in the history
  8. build-llvm.py: Implement invoke_ninja

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    26a3a28 View commit details
    Browse the repository at this point in the history
  9. build-llvm.py: Remove pass statement

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    e008cae View commit details
    Browse the repository at this point in the history
  10. build-binutils.py: Add skeleton

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    fd31fcc View commit details
    Browse the repository at this point in the history
  11. build-binutils.py: Implement parse_parameters

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    72c09d1 View commit details
    Browse the repository at this point in the history
  12. build-binutils.py: Implement create_tuples

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    c13fdb8 View commit details
    Browse the repository at this point in the history
  13. tc-build: Ditch os / os.path for pathlib wherever possible

    We want to avoid converting between PosixPath and str implicity because
    prior to Python 3.6, many of the os methods wouldn't accept it,
    resulting in a nice stacktrace (this one is from Debian's Python 3.5.3):
    
    Traceback (most recent call last):
      File "./build-llvm.py", line 252, in <module>
        main()
      File "./build-llvm.py", line 245, in main
        fetch_llvm_binutils(root, not args.no_pull, args.branch)
      File "./build-llvm.py", line 156, in fetch_llvm_binutils
        subprocess.run(["git", "clone", "-b", branch,
    "git://github.com/llvm/llvm-project", p], check=True)
      File "/usr/lib/python3.5/subprocess.py", line 383, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
        restore_signals, start_new_session)
      File "/usr/lib/python3.5/subprocess.py", line 1221, in _execute_child
        restore_signals, start_new_session, preexec_fn)
    TypeError: Can't convert 'PosixPath' object to str implicitly
    
    Pathlib has most of what we need and we can use the as_posix method to
    get a stirng version of the path whenever we have to have it.
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    ea718e9 View commit details
    Browse the repository at this point in the history
  14. utils.py: Don't use colorama, just print the raw escape codes

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    3984ecb View commit details
    Browse the repository at this point in the history
  15. build-llvm.py: Implement clang_version check

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    bc86c90 View commit details
    Browse the repository at this point in the history
  16. build-llvm.py: Fix help text formatting

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    33dd379 View commit details
    Browse the repository at this point in the history
  17. build-llvm.py: Properly handle '-I' relative paths

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    370f6b2 View commit details
    Browse the repository at this point in the history
  18. build-llvm.py: Don't print out header if '-n' was supplied

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    5c7f08a View commit details
    Browse the repository at this point in the history
  19. build-binutils.py: Improve path handling

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    38a1880 View commit details
    Browse the repository at this point in the history
  20. build-binutils.py: Finish implementing the rest of the script

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    445a931 View commit details
    Browse the repository at this point in the history
  21. build-binutils.py: Fix shebang

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    d54a7e0 View commit details
    Browse the repository at this point in the history
  22. tc-build: Add header comments and LICENSE file

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    75385f3 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2019

  1. build-binutils.py: Fix powerpc64le tuple

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    b6a1476 View commit details
    Browse the repository at this point in the history
  2. README.md: Update

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    1cc5af0 View commit details
    Browse the repository at this point in the history
  3. build-llvm.py: Add comments

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    6c70a32 View commit details
    Browse the repository at this point in the history
  4. build-llvm.py: Add final installation information

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    40228bf View commit details
    Browse the repository at this point in the history
  5. utils.py: Remove blank print lines

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    e37d635 View commit details
    Browse the repository at this point in the history
  6. utils.py: Add comments

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    4be375a View commit details
    Browse the repository at this point in the history
  7. tc-build: Format using yapf using Google's style

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    02f5492 View commit details
    Browse the repository at this point in the history
  8. utils.py: Remove unused exports

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    5bc5437 View commit details
    Browse the repository at this point in the history
  9. build-llvm.py: Remove unused import

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    ce779fb View commit details
    Browse the repository at this point in the history
  10. build-llvm.py: Wrap long comment

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    881946f View commit details
    Browse the repository at this point in the history
  11. utils.py: Fix weird linting with a variable

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    8ba8685 View commit details
    Browse the repository at this point in the history
  12. build-binutils.py: Improve host target handling

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    57e44fc View commit details
    Browse the repository at this point in the history
  13. build-binutils.py: Improve help text slightly

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    c0bf810 View commit details
    Browse the repository at this point in the history
  14. tc-build: Dynamically hide binutils folder

    As we upgrade versions, we won't have to update the root .gitignore file.
    
    Abstract gitignore create function accordingly.
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    f7466ad View commit details
    Browse the repository at this point in the history
  15. build-binutils.py: Remove hyphens from target checks in invoke_configure

    Also, use the full x86_64 target.
    
    Suggested-by: Harsh Shandilya <msfjarvis@gmail.com>
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    434d9d6 View commit details
    Browse the repository at this point in the history
  16. README.md: Fix spelling

    Suggested-by: Harsh Shandilya <msfjarvis@gmail.com>
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    71b3f36 View commit details
    Browse the repository at this point in the history
  17. github: Add bug report issue template

    Suggested-by: Harsh Shandilya <msfjarvis@gmail.com>
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    0f3395f View commit details
    Browse the repository at this point in the history
  18. Rename functions based on review comments

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    687574f View commit details
    Browse the repository at this point in the history
  19. Reformat with yapf

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    6cdc0d1 View commit details
    Browse the repository at this point in the history
  20. build-binutils: Break down if-else ladder

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    19016b4 View commit details
    Browse the repository at this point in the history
  21. Remove license from individual files

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    6100a73 View commit details
    Browse the repository at this point in the history
  22. build-llvm: Properly initialize defines dict

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    18cca8b View commit details
    Browse the repository at this point in the history
  23. build-llvm: Additional style fixes

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    8d0b0da View commit details
    Browse the repository at this point in the history
  24. build-llvm: Suppress referenced-before-assignment errors

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    38f1c4b View commit details
    Browse the repository at this point in the history
  25. build-llvm: Use upstream Linux clang-version script

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    cc3f7ff View commit details
    Browse the repository at this point in the history
  26. build-binutils: Cleanup target_list population

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    636d2f6 View commit details
    Browse the repository at this point in the history
  27. build-llvm: Convert function comments to docstrings

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    846e0e8 View commit details
    Browse the repository at this point in the history
  28. build-binutils: Convert function comments to docstrings

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    facb853 View commit details
    Browse the repository at this point in the history
  29. utils: Convert function comments to docstrings

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 17, 2019
    Configuration menu
    Copy the full SHA
    2a7fe17 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2019

  1. build-binutils: Reformat dictionary init

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya authored and nathanchance committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    cc8f489 View commit details
    Browse the repository at this point in the history
  2. build-llvm.py: Add some comments with links for options

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    0358cf1 View commit details
    Browse the repository at this point in the history
  3. build-llvm.py: Add missing LLVM_INCLUDE_TESTS value

    Fixes: b405c5c ("build-llvm.py: Implement invoke_cmake")
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    6bfdb84 View commit details
    Browse the repository at this point in the history
  4. utils: Split out checksum verification into separate function

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya authored and nathanchance committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    3c86b65 View commit details
    Browse the repository at this point in the history
  5. build-llvm: Change default install folder to 'build'

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya authored and nathanchance committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    e019b68 View commit details
    Browse the repository at this point in the history
  6. build-binutils: Properly handle --targets

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya authored and nathanchance committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    0bb8560 View commit details
    Browse the repository at this point in the history
  7. build-llvm.py: Add a new line between build duration and installation…

    … location
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    a9db8b0 View commit details
    Browse the repository at this point in the history
  8. .gitignore: Remove leading slashes

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    fbf2d31 View commit details
    Browse the repository at this point in the history
  9. build-llvm.py: Add classes to slim down arguments in invoke_cmake

    Also, rename all the folder variables to be clear they are folders
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    60a1367 View commit details
    Browse the repository at this point in the history
  10. build-llvm.py: Tell YAPF not to try and format the cmake defines

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    dbbece4 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2019

  1. build-llvm.py: Move dirs assignment closer to use

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    7ab0e7f View commit details
    Browse the repository at this point in the history
  2. build-llvm.py: Eliminate unnecessary assignment for cc, cxx, and ld

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    367aad7 View commit details
    Browse the repository at this point in the history
  3. tc-build: Remove unnecessary copyright comments

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    df716ae View commit details
    Browse the repository at this point in the history
  4. utils.py: Further document why create_gitignore exists

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    7e4f9ca View commit details
    Browse the repository at this point in the history
  5. build-llvm.py: Remove explicit 'utf-8' parameter to decode()

    This is the default value and it stops YAPF from trying horribly format this line.
    
    https://docs.python.org/3/library/stdtypes.html#bytes.decode
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    9ca5833 View commit details
    Browse the repository at this point in the history
  6. build-llvm.py: Run YAPF

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 19, 2019
    Configuration menu
    Copy the full SHA
    574e851 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2019

  1. build-llvm.py: Use strip() instead of rstrip()

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 20, 2019
    Configuration menu
    Copy the full SHA
    990af6d View commit details
    Browse the repository at this point in the history
  2. build-llvm.py: Use subprocess.run and return returncode directly

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 20, 2019
    Configuration menu
    Copy the full SHA
    b58bab0 View commit details
    Browse the repository at this point in the history
  3. build-llvm.py: Don't use negated branches in check_cc_ld_variables

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 20, 2019
    Configuration menu
    Copy the full SHA
    3fc3254 View commit details
    Browse the repository at this point in the history
  4. utils.py: Use double quotes and add comments explaining escape codes

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 20, 2019
    Configuration menu
    Copy the full SHA
    ebc14d2 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2019

  1. utils.py: Use format specifier in print_header

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 21, 2019
    Configuration menu
    Copy the full SHA
    c18e269 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2019

  1. build-binutils.py: Simplify create_targets a bit

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 22, 2019
    Configuration menu
    Copy the full SHA
    6c49b7a View commit details
    Browse the repository at this point in the history
  2. build-binutils.py: Make targets list a set initially in create_targets

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 22, 2019
    Configuration menu
    Copy the full SHA
    aff3e18 View commit details
    Browse the repository at this point in the history
  3. build-binutils.py: Avoid crash when 'all' is not specified first

    $ ./build-binutils.py -t x86_64 all
    Traceback (most recent call last):
      File "./build-binutils.py", line 222, in <module>
        main()
      File "./build-binutils.py", line 215, in main
        print(create_targets(targets))
      File "./build-binutils.py", line 102, in create_targets
        targets_set.add(targets_dict[key])
    KeyError: 'all'
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 22, 2019
    Configuration menu
    Copy the full SHA
    51670aa View commit details
    Browse the repository at this point in the history
  4. build-binutils.py: Remove duplicate '--target' and '--program-prefix'…

    … flags
    
    This is handled a few rows down.
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 22, 2019
    Configuration menu
    Copy the full SHA
    c912e50 View commit details
    Browse the repository at this point in the history
  5. build-binutils.py: Use '%' operator in invoke_configure

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 22, 2019
    Configuration menu
    Copy the full SHA
    3d3b6c2 View commit details
    Browse the repository at this point in the history
  6. build-binutils.py: Make architecture configure flags a dictionary

    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 22, 2019
    Configuration menu
    Copy the full SHA
    82a437e View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2019

  1. build-llvm.py: Fix running the script outside of the repo

    Traceback (most recent call last):
      File "../build-llvm.py", line 435, in <module>
        main()
      File "../build-llvm.py", line 418, in main
        env_vars = EnvVars(*check_cc_ld_variables())
      File "../build-llvm.py", line 209, in check_cc_ld_variables
        if clang_version(cc) < 30900:
      File "../build-llvm.py", line 35, in clang_version
        return int(subprocess.check_output(["./clang-version.sh", cc]).decode())
      File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
        **kwargs).stdout
      File "/usr/lib/python3.7/subprocess.py", line 472, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
        restore_signals, start_new_session)
      File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: './clang-version.sh': './clang-version.sh'
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 25, 2019
    Configuration menu
    Copy the full SHA
    5e69eb2 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2019

  1. build-binutils: Correct docstring grammar

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 26, 2019
    Configuration menu
    Copy the full SHA
    0bbcbfa View commit details
    Browse the repository at this point in the history
  2. build-binutils: Collapse host_arch_target return

    Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
    Harsh Shandilya committed Apr 26, 2019
    Configuration menu
    Copy the full SHA
    7037bc6 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2019

  1. build-llvm.py: Avoid crash in clang_version with Python 3.5

    Traceback (most recent call last):
      File "./build-llvm.py", line 436, in <module>
        main()
      File "./build-llvm.py", line 419, in main
        env_vars = EnvVars(*check_cc_ld_variables(root_folder))
      File "./build-llvm.py", line 210, in check_cc_ld_variables
        if clang_version(cc, root_folder) < 30900:
      File "./build-llvm.py", line 36, in clang_version
        return int(subprocess.check_output(command).decode())
      File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
        **kwargs).stdout
      File "/usr/lib/python3.5/subprocess.py", line 383, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
        restore_signals, start_new_session)
      File "/usr/lib/python3.5/subprocess.py", line 1205, in _execute_child
        executable = os.fsencode(executable)
      File "/usr/lib/python3.5/os.py", line 862, in fsencode
        raise TypeError("expect bytes or str, not %s" % type(filename).__name__)
    TypeError: expect bytes or str, not PosixPath
    
    Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
    nathanchance committed Apr 27, 2019
    Configuration menu
    Copy the full SHA
    08e1c72 View commit details
    Browse the repository at this point in the history