-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'edge-preview' of https://github.com/synthetos/g2 into e…
…dge-preview
- Loading branch information
Showing
15 changed files
with
867 additions
and
244 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
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,44 @@ | ||
# Use a Debian-based image as a parent image | ||
FROM debian:buster-slim | ||
|
||
# Install build-essential, git, and uucp | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential git wget xz-utils uucp bossa-cli | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# Clone the g2 GitHub repo | ||
RUN git clone https://github.com/synthetos/g2.git && \ | ||
cd g2 && \ | ||
git submodule init && \ | ||
git submodule update | ||
|
||
RUN mkdir -p /app/g2/Motate/Tools/linux && \ | ||
wget -P /app/g2/Motate/Tools/linux https://github.com/synthetos/gcc-arm-none-eabi-archive/releases/download/12.2.Rel1/arm-gnu-toolchain-12.2.rel1-linux-x86_64-arm-none-eabi.tar.xz | ||
|
||
|
||
|
||
#Extract the toolchain archive to the directory | ||
|
||
RUN cd /app/g2/Motate/Tools/linux && \ | ||
tar xf arm-gnu-toolchain-12.2.rel1-linux-x86_64-arm-none-eabi.tar.xz && \ | ||
rm -f "arm-gnu-toolchain-12.2.rel1-linux-x86_64-arm-none-eabi.tar.xz" | ||
|
||
RUN apt-get install dos2unix | ||
|
||
# Set the TERM environment variable | ||
ENV TERM=xterm | ||
|
||
# Set the working directory to the cloned repo directory | ||
WORKDIR /app/g2/g2core | ||
|
||
# Create a volume for storing build output | ||
VOLUME /app/g2/g2core/bin | ||
|
||
COPY entrypoint.sh /app/entrypoint.sh | ||
RUN dos2unix /app/entrypoint.sh | ||
ENTRYPOINT ["/app/entrypoint.sh"] | ||
|
||
|
||
# Define the default command to run the build | ||
#CMD ["BOARD=gShield", "SETTINGS=default_settings.h"] |
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,28 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
|
||
if [ "$1" == "--build" ]; then | ||
BOARD="$2" | ||
SETTINGS="$3" | ||
if [ -z "$2" ] || [ -z "$3" ]; then | ||
echo "Usage: $0 --build BOARD SETTING" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -f "/app/g2/g2core/settings/$SETTINGS" ]; then | ||
echo "Error: Settings file not found: /g2/g2core/settings/$SETTINGS" | ||
exit 1 | ||
fi | ||
|
||
|
||
|
||
|
||
echo "Building g2core for board $BOARD with setting $SETTINGS" | ||
echo "Build started in 5 seconds..." | ||
sleep 5 | ||
cd /app/g2/g2core | ||
make BOARD="$BOARD" SETTINGS_FILE="$SETTINGS" | ||
fi | ||
|
Submodule Motate
updated
6 files
+0 −1,534 | Motate.cppproj | |
+ − | Tools/7za/7-zip.chm | |
+ − | Tools/7za/7za.exe | |
+0 −29 | Tools/7za/license.txt | |
+0 −41 | Tools/7za/readme.txt | |
+12 −11 | Tools/Makefile |
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
Oops, something went wrong.