Saturday 24 July 2021

To reduce the firmware of sofle rgb

 This is for testing purpose 

by referring to the following link: https://thomasbaart.nl/2018/12/01/reducing-firmware-size-in-qmk/ 

Step 1: Add these flags to your rules.mk

 EXTRAFLAGS += -flto

 Add these to config.h

#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION

 //Does not work in reducing original rgb version 

 

Step 2:  Add the following codes for config.h

 #ifndef NO_DEBUG

#define NO_DEBUG
#endif // !NO_DEBUG
#if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE)
#define NO_PRINT
#endif // !NO_PRINT