Skip to content

Commit

Permalink
scripts: Add Nordic build dependency
Browse files Browse the repository at this point in the history
Without nrf-regtool, CMake fails for new Nordic boards (nrf54h20dk,
nrf9280pdk) with errors like this:

```
CMake Error at <snip>/zephyr/modules/hal_nordic/CMakeLists.txt:15
(find_package):
  Could not find a configuration file for package "nrf-regtool" that is
  compatible with requested version "5.6.0".

  The following configuration files were considered but not accepted:

    <snip>/modules/hal_nordic/nrf-regtool/nrf-regtoolConfig.cmake,
    version: unknown
```

Signed-off-by: Reto Schneider <[email protected]>
  • Loading branch information
rettichschnidi committed Oct 3, 2024
1 parent 73a3438 commit 5d155d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/requirements-build-nordic.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2024 GARDENA GmbH
#
# SPDX-License-Identifier: Apache-2.0

# BUILD-NORDIC: required to do build for Nordic SoCs

# Required by the Noridic HAL
nrf-regtool>=6.0
1 change: 1 addition & 0 deletions scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-r requirements-base.txt
-r requirements-build-nordic.txt
-r requirements-build-test.txt
-r requirements-run-test.txt
-r requirements-extras.txt
Expand Down

0 comments on commit 5d155d9

Please sign in to comment.