Compiling firmware for the Moonlander keyboard with QMK


Dheepak Krishnamurthy


March 20, 2022


moonlander, qmk, keyboard, compile, firmware

First, clone the qmk_firmware GitHub repo, and make a fork to maintain your custom keyboard firmware. This is what my remotes look like:

cd qmk_firmware
git remote -v
origin (fetch)
origin (push)
qmk (fetch)
qmk (push)

Then, compile the firmware using the following from the root of the repository:

make moonlander:kdheepak:flash

The keymaps are located here:

ls keyboards/moonlander/keymaps/kdheepak
Permissions Size Date Modified Git Name
.rw-r--r--   250 21 Mar 03:54   -- config.h
.rw-r--r--  5.7k 21 Mar 03:54   -- keymap.c
.rw-r--r--   292 21 Mar 03:54   --

Modify keymap.c based on your preferences.



BibTeX citation:
  author = {Krishnamurthy, Dheepak},
  title = {Compiling Firmware for the {Moonlander} Keyboard with {QMK}},
  date = {2022-03-20},
  url = {},
  langid = {en}
For attribution, please cite this work as:
D. Krishnamurthy, “Compiling firmware for the Moonlander keyboard with QMK,” Mar. 20, 2022.