Skip to content

Commit

Permalink
added devices
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicpoeschko committed Dec 1, 2023
1 parent eb3d20f commit 15a3698
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ jobs:

env:
ROOT_DIR: ${{ github.workspace }}
EXTRA_PACKAGES:
TRIZEN_EXTRA_PACKAGES:

name: docker
steps:
Expand All @@ -16,7 +18,10 @@ jobs:
submodules: 'recursive'

- name: Build the Docker image
run: docker build ./ --file ./kvasir/Dockerfile --tag kvasir_fw_build
run: docker build ./ \
--build-arg="PACKMANEXTRAPACKAGES=$EXTRA_PACKAGES" \
--build_arg="TRIZENEXTRAPACKAGES=$TRIZEN_EXTRA_PACKAGES" \
--file ./kvasir/Dockerfile --tag kvasir_fw_build

- name: Run Docker
run: docker run -v ./:/project kvasir_fw_build
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "chip"]
path = chip
url = https://github.com/kvasir-io/chip_rp2040.git
[submodule "kvasir_devices"]
path = kvasir_devices
url = https://github.com/kvasir-io/kvasir_devices.git
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ include(kvasir/cmake/kvasir.cmake)
project("rp2040_example" VERSION 0.1.0)

include(kvasir/cmake/util.cmake)
add_subdirectory(kvasir_devices)

add_executable(debug src/main.cpp)
target_configure_kvasir(debug OPTIMIZATION_STRATEGY size USE_LOG)
target_link_libraries(debug kvasir::devices)

add_executable(release src/main.cpp)
target_configure_kvasir(release OPTIMIZATION_STRATEGY size)
target_link_libraries(release kvasir::devices)

2 changes: 1 addition & 1 deletion kvasir
Submodule kvasir updated 1 files
+7 −1 Dockerfile
1 change: 1 addition & 0 deletions kvasir_devices
Submodule kvasir_devices added at 61d561

0 comments on commit 15a3698

Please sign in to comment.