-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add renesas RA6M5 (#390) * Add renesas RA6M5 * Fix * Avoid toolchain (cherry picked from commit d27b83e) # Conflicts: # README.md * Fix Co-authored-by: Pablo Garrido <[email protected]>
- Loading branch information
1 parent
b2a741d
commit 9c5f0ba
Showing
11 changed files
with
91 additions
and
18 deletions.
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 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,2 @@ | ||
keep: | ||
None |
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 @@ | ||
repositories: |
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,24 @@ | ||
function print_available_apps { | ||
echo "Available apps for Renesas RA and $PLATFORM:" | ||
|
||
UROS_APPS=$FW_TARGETDIR/micro_ros_renesas_demos | ||
|
||
pushd $UROS_APPS >/dev/null | ||
for app in $(ls -d */ | cut -f1 -d'/'); do | ||
echo "+-- $app" | ||
done | ||
popd >/dev/null | ||
} | ||
|
||
function check_available_app { | ||
|
||
UROS_APPS=$FW_TARGETDIR/micro_ros_renesas_demos | ||
|
||
pushd $UROS_APPS >/dev/null | ||
if [ ! -d $1 ]; then | ||
echo "App $1 for Renesas RA not available" | ||
print_available_apps | ||
exit 1 | ||
fi | ||
popd >/dev/null | ||
} |
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,5 @@ | ||
repositories: | ||
micro_ros_renesas_demos: | ||
type: git | ||
url: https://github.com/micro-ROS/micro_ros_renesas_demos | ||
version: foxy |
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,18 @@ | ||
export UROS_APP=$(head -n1 $FW_TARGETDIR/APP | tail -n1) | ||
export UROS_APP_FOLDER="$FW_TARGETDIR/micro_ros_renesas_demos/$UROS_APP" | ||
|
||
if [ -d "$UROS_APP_FOLDER" ]; then | ||
echo "Selected app: $UROS_APP" | ||
else | ||
echo "App not found: $UROS_APP" | ||
print_available_apps | ||
exit 1 | ||
fi | ||
|
||
pushd $UROS_APP_FOLDER | ||
git submodule init | ||
git submodule update | ||
|
||
print "Use Renesas e2studio to build and flash the project in $UROS_APP_FOLDER" | ||
|
||
popd |
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 @@ | ||
repositories: |
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 @@ | ||
echo $CONFIG_NAME > $FW_TARGETDIR/APP |
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,14 @@ | ||
pushd $FW_TARGETDIR >/dev/null | ||
# # Install toolchain | ||
# mkdir toolchain | ||
|
||
# # Install toolchain | ||
# echo "Downloading ARM compiler, this may take a while" | ||
# curl -fsSLOk https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 | ||
# tar --strip-components=1 -xvjf gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 -C toolchain > /dev/null | ||
# rm gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 | ||
|
||
# Import repos | ||
vcs import --input $PREFIX/config/$RTOS/$PLATFORM/board.repos | ||
|
||
popd >/dev/null |
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,6 @@ | ||
export UROS_APP=$(head -n1 $FW_TARGETDIR/APP | tail -n1) | ||
export UROS_APP_FOLDER="$FW_TARGETDIR/micro_ros_renesas_demos/$UROS_APP" | ||
|
||
pushd $UROS_APP_FOLDER | ||
print "Use Renesas e2studio to build and flash the project in $UROS_APP_FOLDER" | ||
popd |
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