diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cd3d52c..21ac3e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,8 +12,9 @@ on: jobs: build: runs-on: ubuntu-latest - container: - image: ghcr.io/zephyrproject-rtos/ci:latest + container: ghcr.io/zephyrproject-rtos/ci:v0.26.5 + env: + CMAKE_PREFIX_PATH: /opt/toolchains steps: - name: Checkout code @@ -27,8 +28,9 @@ jobs: test: runs-on: ubuntu-latest - container: - image: ghcr.io/zephyrproject-rtos/ci:latest + container: ghcr.io/zephyrproject-rtos/ci:v0.26.5 + env: + CMAKE_PREFIX_PATH: /opt/toolchains steps: - name: Checkout code diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ee8cb6..9fe1068 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,6 @@ # This CMake file is picked by the Zephyr build system because it is defined # as the module CMake entry point (see zephyr/module.yml). -zephyr_include_directories(include) +# zephyr_include_directories(include) -add_subdirectory(drivers) +# add_subdirectory(drivers) diff --git a/Kconfig b/Kconfig index f7188b1..1857488 100644 --- a/Kconfig +++ b/Kconfig @@ -5,4 +5,4 @@ # as the module Kconfig entry point (see zephyr/module.yml). You can browse # module options by going to Zephyr -> Modules in Kconfig. -rsource "drivers/Kconfig" \ No newline at end of file +# rsource "drivers/Kconfig" \ No newline at end of file diff --git a/boards/arm/my_custom_board/my_custom_board.dts b/boards/arm/my_custom_board/my_custom_board.dts index 1227c7a..bd5be2d 100644 --- a/boards/arm/my_custom_board/my_custom_board.dts +++ b/boards/arm/my_custom_board/my_custom_board.dts @@ -21,3 +21,28 @@ pinctrl-1 = <&uart0_sleep>; pinctrl-names = "default", "sleep"; }; + +&flash0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + boot_partition: partition@0 { + label = "mcuboot"; + reg = <0x00000000 0xc000>; + }; + slot0_partition: partition@c000 { + label = "image-0"; + reg = <0x0000C000 0x37000>; + }; + slot1_partition: partition@43000 { + label = "image-1"; + reg = <0x00043000 0x37000>; + }; + storage_partition: partition@7a000 { + label = "storage"; + reg = <0x0007a000 0x00006000>; + }; + }; +};