forked from aminya/project_options
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make enable_cross_compiler more open-closed (aminya#180)
- Loading branch information
Showing
20 changed files
with
403 additions
and
103 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
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,27 @@ | ||
FROM ubuntu:22.04 AS base | ||
|
||
# add setup-cpp https://github.com/aminya/setup-cpp | ||
RUN apt-get update && apt-get install -y \ | ||
npm \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN npm install -g setup-cpp | ||
|
||
|
||
FROM base AS setup | ||
|
||
# install cmake, ninja, and ccache | ||
RUN setup-cpp --clangtidy true --clangformat true --cmake true --ninja true --ccache true --cppcheck true --vcpkg true --conan true --task true | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY ./docker/entrypoint.sh /docker-entrypoint.sh | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
|
||
|
||
FROM setup AS build | ||
COPY . /home/project_options | ||
WORKDIR /home/project_options | ||
RUN git submodule update --init | ||
CMD ["/bin/bash", "-c", "task rpi3:build.cross.bare-metal"] |
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.