From 62e995948d33d51cbf6e5c40b707b0017cba11d3 Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 2 Aug 2023 12:31:24 +0900 Subject: [PATCH] usb_usb: Change Makefile for TaranVH keymap support --- converter/usb_usb/Makefile | 6 ++++++ .../usb_usb/{unimap_TaranVH_F24.c => unimap_TaranVH.c} | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) rename converter/usb_usb/{unimap_TaranVH_F24.c => unimap_TaranVH.c} (93%) diff --git a/converter/usb_usb/Makefile b/converter/usb_usb/Makefile index 1d7caf0b..03854426 100644 --- a/converter/usb_usb/Makefile +++ b/converter/usb_usb/Makefile @@ -126,6 +126,12 @@ else SRC := $(KEYMAP_FILE).c $(SRC) endif +# Prefix key for unimap_TaranVH.c +ifdef PREFIX_KEY + OPT_DEFS += -DPREFIX_KEY=KC_$(PREFIX_KEY) + TARGET := $(TARGET)_$(PREFIX_KEY) +endif + CONFIG_H ?= config.h diff --git a/converter/usb_usb/unimap_TaranVH_F24.c b/converter/usb_usb/unimap_TaranVH.c similarity index 93% rename from converter/usb_usb/unimap_TaranVH_F24.c rename to converter/usb_usb/unimap_TaranVH.c index 7fc5ac6b..08eccc22 100644 --- a/converter/usb_usb/unimap_TaranVH_F24.c +++ b/converter/usb_usb/unimap_TaranVH.c @@ -2,8 +2,8 @@ // https://geekhack.org/index.php?topic=69169.msg2781175#msg2781175 // // how to build: -// $ make -f Makefile.unimap KEYMAP=TaranVH_F24 clean -// $ make -f Makefile.unimap KEYMAP=TaranVH_F24 +// $ make -f Makefile.unimap KEYMAP=TaranVH PREFIX_KEY=F24 clean +// $ make -f Makefile.unimap KEYMAP=TaranVH PREFIX_KEY=F24 #include "unimap_trans.h" @@ -19,7 +19,7 @@ const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (" const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = { #endif UNIMAP( - F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, NO, + F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24, ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PCMM, VOLD,VOLU,MUTE, GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, INT6,PSLS,PAST,PMNS, TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS,