Skip to content

Commit

Permalink
move the physical layout dtsi to the correct shield directory
Browse files Browse the repository at this point in the history
  • Loading branch information
280Zo committed Nov 6, 2024
1 parent f897b55 commit 8fd453a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/user_config_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ jobs:
sed -i 's/device = <&vtrackball>;/device = <\&trackball>;/g' "$base_config_path/charybdis.keymap"
grep "device = <" "$base_config_path/charybdis.keymap"
;;
esac fi
esac
fi
# Copy physical layout file to shield directory
mv -v "$base_config_path/charybdis-layouts.dtsi" \
"${GITHUB_WORKSPACE}/boards/shields/charybdis-${{ env.format }}/"
fi
# Remove untargeted shields so they don't get auto picked up by the west build command
Expand Down
1 change: 1 addition & 0 deletions boards/shields/charybdis-bt/charybdis.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <dt-bindings/zmk/matrix_transform.h>
#include "charybdis-layouts.dtsi"

/ {
// chosen {
// zmk,kscan = &kscan0;
Expand Down
7 changes: 6 additions & 1 deletion boards/shields/charybdis-dongle/charybdis.dtsi
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#include <dt-bindings/zmk/matrix_transform.h>
#include "charybdis-layouts.dtsi"

/ {
// chosen {
// zmk,kscan = &kscan0;
// zmk,matrix_transform = &default_transform;
// };
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,physical-layout = &charybdis-layouts;
};

vbatt: vbatt {
Expand Down

0 comments on commit 8fd453a

Please sign in to comment.