test out compile_flags.txt

This commit is contained in:
Jack Humbert 2023-04-04 20:55:10 -04:00
parent fe59b4e5d6
commit c34f0e4998
4 changed files with 66 additions and 1 deletions

0
cmake/Findchibios.cmake Normal file
View File

View File

@ -167,4 +167,8 @@ macro(add_qmk_executable target_name)
set_target_properties(${target_name}
PROPERTIES OUTPUT_NAME ${elf_file}
)
# list(JOIN COMPILE_OPTIONS "\n" COMPILE_FLAGS_TXT)
# file(WRITE ${CMAKE_SOURCE_DIR}/compile_flags.txt ${COMPILE_FLAGS_TXT})
endmacro(add_qmk_executable)

61
compile_flags.txt Normal file
View File

@ -0,0 +1,61 @@
-std=c11
-Iquantum
-Itoolchains\avr-gcc-12.1.0-x64-windows\avr\include
-DARCH=ARCH_AVR8
-DBACKLIGHT_ENABLE
-DBACKLIGHT_PIN=B7
-DBOARD=BOARD_NONE
-DDEVICE_VER=0x3
-DFIXED_CONTROL_ENDPOINT_SIZE=8
-DFIXED_NUM_CONFIGURATIONS=1
-DF_CPU=16000000
-DF_USB=16000000UL
-DKEYMAP_C=\\\"keyboards/mntre/keymaps/default/keymap.c\\\"
-DLTO_ENABLE
-DMANUFACTURER=\\\"OLKB\\\"
-DMATRIX_COLS=15
-DMATRIX_ROWS=6
-DOLED_ENABLE
-DPRODUCT=\\\"MNTRE\\\"
-DPRODUCT_ID=0xAE01
-DPROTOCOL_LUFA
-DQMK_KEYBOARD_H="mntre.h"
-DUSB_DEVICE_ONLY
-DUSE_FLASH_DESCRIPTORS
-DUSE_STATIC_OPTIONS=\"(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)\"
-DVENDOR_ID=0x03A8
-D__AVR_ATmega32U4__
-Ikeyboards/mntre
-Iquantum
-Iquantum/logging
-Iquantum/keymap_extras
-Iquantum/process_keycode
-Iquantum/sequencer
-Iquantum/bootmagic
-Iplatforms
-Iplatforms/avr
-Itmk_core/protocol
-Ilib/lufa
-Itmk_core/protocol/lufa
-Idrivers
-Idrivers/oled
-Iplatforms/avr/drivers
-Iquantum/backlight
-std=gnu11
-flto
-Os
-Wall
-Wstrict-prototypes
-fcommon
--param=min-pagesize=0
-funsigned-char
-funsigned-bitfields
-ffunction-sections
-fdata-sections
-fpack-struct
-fshort-enums
-fno-builtin-printf
-fno-inline-small-functions
-fno-strict-aliasing
-include keyboards/mntre/config.h
-mmcu=atmega32u4

View File

@ -23,7 +23,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_FN] = LAYOUT(
_______, BL_DOWN, BL_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, QK_BOOT, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, QK_BOOT, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______