~ / blog / Compiling Firmware for the Moonlander Keyboard with QMK

       

  1 minute(s)

       

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  git@github.com:kdheepak/qmk_firmware.git (fetch)
origin  git@github.com:kdheepak/qmk_firmware.git (push)
qmk git@github.com:qmk/qmk_firmware.git (fetch)
qmk git@github.com:qmk/qmk_firmware.git (push)
$ cd qmk_firmware
$ git remote -v
origin  git@github.com:kdheepak/qmk_firmware.git (fetch)
origin  git@github.com:kdheepak/qmk_firmware.git (push)
qmk git@github.com:qmk/qmk_firmware.git (fetch)
qmk git@github.com:qmk/qmk_firmware.git (push)

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

$ make moonlander:kdheepak:flash
$ make moonlander:kdheepak:flash

The keymaps are located here:

$ ls keyboards/moonlander/keymaps/kdheepak
Permissions Size Date Modified Git Name
.rw-r--r--   250 19 Mar 20:24   -- config.h
.rw-r--r--  5.7k 19 Mar 20:24   -- keymap.c
.rw-r--r--   292 19 Mar 20:24   -- rules.mk
$ ls keyboards/moonlander/keymaps/kdheepak
Permissions Size Date Modified Git Name
.rw-r--r--   250 19 Mar 20:24   -- config.h
.rw-r--r--  5.7k 19 Mar 20:24   -- keymap.c
.rw-r--r--   292 19 Mar 20:24   -- rules.mk

Modify keymap.c based on your preferences.