-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SUKU ui library compatibility fixed, AB swich middle position defined…
… using pullup
- Loading branch information
Showing
5 changed files
with
78 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Use the base image | ||
FROM docker.io/espressif/idf:v5.1.2 | ||
|
||
# Install pico sdk required dependencies | ||
RUN apt update && \ | ||
apt install -y git python3 cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential xxd && \ | ||
mkdir -p pico && \ | ||
cd pico && \ | ||
git clone https://github.com/raspberrypi/pico-sdk.git --branch master && \ | ||
cd pico-sdk/ && \ | ||
git submodule update --init && \ | ||
cd ../.. && \ | ||
\ | ||
git clone https://github.com/emscripten-core/emsdk.git && \ | ||
cd emsdk && \ | ||
git pull && \ | ||
./emsdk install latest && \ | ||
./emsdk activate latest && \ | ||
. ./emsdk_env.sh && \ | ||
cd .. | ||
|
||
# Set working directory | ||
|
||
WORKDIR / | ||
|
||
ENV PICO_SDK_PATH=/pico/pico-sdk | ||
|
||
ENV EMSDK=/emsdk EM_CONFIG=/emsdk/.emscripten EMSDK_NODE=/emsdk/node/14.18.2_64bit/bin/node PATH=/emsdk:/emsdk/upstream/emscripten:/emsdk/upstream/bin:/emsdk/node/14.18.2_64bit/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
# Set up environment variables | ||
ENV CODEQL_HOME=/opt/codeql | ||
ENV PATH="${CODEQL_HOME}/codeql:${PATH}" | ||
|
||
# Install CodeQL CLI tools | ||
RUN mkdir -p ${CODEQL_HOME} && \ | ||
curl -L https://github.com/github/codeql-cli-binaries/releases/latest/download/codeql-linux64.zip -o ${CODEQL_HOME}/codeql.zip && \ | ||
unzip ${CODEQL_HOME}/codeql.zip -d ${CODEQL_HOME} && \ | ||
rm ${CODEQL_HOME}/codeql.zip && \ | ||
codeql --version | ||
|
||
RUN cd ${CODEQL_HOME} && git clone --recursive https://github.com/github/codeql.git codeql-repo | ||
|
||
RUN apt update && \ | ||
apt install -y socat | ||
|
||
# Define default command | ||
CMD ["bash"] |
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 @@ | ||
#!/bin/bash | ||
|
||
# Check if Docker is installed | ||
if command -v docker &> /dev/null; then | ||
CONTAINER_TOOL="docker" | ||
# Check if Podman is installed | ||
elif command -v podman &> /dev/null; then | ||
CONTAINER_TOOL="podman" | ||
else | ||
echo "Neither Docker nor Podman found. Please install one of them to proceed." | ||
exit 1 | ||
fi | ||
|
||
$CONTAINER_TOOL build -t idf-pico-merged . |
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 @@ | ||
#!/bin/bash | ||
|
||
# Check if Docker is installed | ||
if command -v docker &> /dev/null; then | ||
CONTAINER_TOOL="docker" | ||
# Check if Podman is installed | ||
elif command -v podman &> /dev/null; then | ||
CONTAINER_TOOL="podman" | ||
else | ||
echo "Neither Docker nor Podman found. Please install one of them to proceed." | ||
exit 1 | ||
fi | ||
|
||
$CONTAINER_TOOL run --privileged --network=host -it -v /dev:/dev -v $PWD:/project -w /project/ idf-pico-merged |
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