Skip to content

Commit

Permalink
cmake: use -D EXTRA_CONF_FILE instead of CONF_FILE
Browse files Browse the repository at this point in the history
ZMK now has a project level kconfig, that -DCONF_FILE would override.
  • Loading branch information
chrisandreae committed Feb 10, 2024
1 parent b0121d7 commit 262ce00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nix/zmk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ stdenvNoCC.mkDerivation {
] ++
(lib.optional (shield != null) "-DSHIELD=${shield}") ++
(lib.optional (keymap != null) "-DKEYMAP_FILE=${keymap}") ++
(lib.optional (kconfig != null) "-DCONF_FILE=${kconfig}");
(lib.optional (kconfig != null) "-DEXTRA_CONF_FILE=${kconfig}");

nativeBuildInputs = [ cmake ninja python dtc gcc-arm-embedded ];
buildInputs = [ zephyr ];
Expand Down
2 changes: 1 addition & 1 deletion release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ let
if [ -n "$DEBUG" ]; then ccache -z; fi
cmake -G Ninja -S ${zmk'.src}/app ${lib.escapeShellArgs zmk'.cmakeFlags} "-DUSER_CACHE_DIR=/tmp/.cache" "-DKEYMAP_FILE=$keymap" "-DCONF_FILE=$kconfig" "-DBOARD=$board" "-DBUILD_VERSION=${revision}"
cmake -G Ninja -S ${zmk'.src}/app ${lib.escapeShellArgs zmk'.cmakeFlags} "-DUSER_CACHE_DIR=/tmp/.cache" "-DKEYMAP_FILE=$keymap" "-DBOARD=$board" "-DEXTRA_CONF_FILE=$kconfig" "-DBUILD_VERSION=${revision}"
ninja
Expand Down

0 comments on commit 262ce00

Please sign in to comment.