-
Notifications
You must be signed in to change notification settings - Fork 91
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
Feature/bootstrap #48
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
fbcc1da
echo gcc version
jamesadevine 9171e30
Update comments in merge_hex.py
jamesadevine 6d66102
Update uf2conv.py to python3 version
mmoskal 13110e9
Allow for additional "libraries": [] in codal.json
mmoskal 7cf09a3
Merge pull request #39 from lancaster-university/codal_json_libraries2
jamesadevine e9e2035
add codal-microbit-v2 to targets.json
jamesadevine 18aa65b
echo version to fix CI
jamesadevine 595b27a
add makeable target
jamesadevine a18ad20
update codal-makeable branch name
jamesadevine 4186802
Account for main being used instead of master in lock code
jamesadevine 0b2a37c
Merge pull request #43 from lancaster-university/lock-code-fixup
jamesadevine c5326cb
Add pre-process task
jamesadevine 17017b5
remove debug
jamesadevine aa9ba2a
cleanup more debug
jamesadevine c389db2
Move to new cmake and update call_cmake
jamesadevine e1bb097
Merge pull request #44 from lancaster-university/rp2040-build
finneyj f52b597
Updated targets.json path to be correct for bootstrapping mode
JohnVidler eea9c76
Added a CORE_PATH variable to track/set the library path for boostrap…
JohnVidler b75a1c6
Added -b flag to --status calls, to get the branch as well as the fil…
JohnVidler 8854606
Removed bogus os.environ call, which did nothing
JohnVidler be95816
Added the M1 fix to the upstream codal toolchains
JohnVidler ce7b501
Removed old build files, moved to bootstrap toolchain
JohnVidler db75902
Pulling sources forward to match with master
JohnVidler 90812ba
Moved to a codal.py based build, merging bootstrap directly into codal
JohnVidler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# The MIT License (MIT) | ||
|
||
# Copyright (c) 2022 Lancaster University. | ||
|
||
# Permission is hereby granted, free of charge, to any person obtaining a | ||
# copy of this software and associated documentation files (the "Software"), | ||
# to deal in the Software without restriction, including without limitation | ||
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
# and/or sell copies of the Software, and to permit persons to whom the | ||
# Software is furnished to do so, subject to the following conditions: | ||
|
||
# The above copyright notice and this permission notice shall be included in | ||
# all copies or substantial portions of the Software. | ||
|
||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
# DEALINGS IN THE SOFTWARE. | ||
|
||
import os | ||
import sys | ||
|
||
from importlib import import_module | ||
from genericpath import exists | ||
|
||
BOOTSTRAP_TAG = "feature/bootstrap-refactor" | ||
TARGET_LIST = [ | ||
"https://raw.githubusercontent.com/lancaster-university/codal/master/utils/targets.json" | ||
] | ||
BASE_ROOT = os.getcwd() | ||
CODAL_ROOT = os.path.join( BASE_ROOT, 'libraries', 'codal' ) | ||
|
||
# Minimum folder structure: | ||
if not exists( os.path.join( BASE_ROOT, 'libraries' ) ): | ||
os.mkdir( os.path.join( BASE_ROOT, 'libraries' ) ); | ||
|
||
# Grab the latest library | ||
if not exists( os.path.join( BASE_ROOT, 'libraries', 'codal' ) ): | ||
print( "Downloading codal-bootstrap..." ) | ||
if not exists( os.path.join( CODAL_ROOT, '.git' ) ): | ||
os.system( f'git clone --recurse-submodules --branch "{BOOTSTRAP_TAG}" "https://github.com/lancaster-university/codal.git" "{CODAL_ROOT}"' ) | ||
|
||
# Jump into the current upstream code | ||
sys.path.append( CODAL_ROOT ) | ||
import_module( f'libraries.codal.codal' ) |
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is undoing PR #10