Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
rule ASM_COMPILER__LightTAM_RFID_Reader_unscanned_Debug
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = ${LAUNCHER}${CODE_CHECK}/opt/st/stm32cubeclt_1.17.0/GNU-tools-for-STM32/bin/arm-none-eabi-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
command = ${LAUNCHER}${CODE_CHECK}/opt/st/stm32cubeclt_1.17.0_2/GNU-tools-for-STM32/bin/arm-none-eabi-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building ASM object $out
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ rule ASM_COMPILER__LightTAM_RFID_Reader_unscanned_Debug
|
||||
rule C_COMPILER__LightTAM_RFID_Reader_unscanned_Debug
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = ${LAUNCHER}${CODE_CHECK}/opt/st/stm32cubeclt_1.17.0/GNU-tools-for-STM32/bin/arm-none-eabi-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
command = ${LAUNCHER}${CODE_CHECK}/opt/st/stm32cubeclt_1.17.0_2/GNU-tools-for-STM32/bin/arm-none-eabi-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ rule C_COMPILER__LightTAM_RFID_Reader_unscanned_Debug
|
||||
# Rule for linking C executable.
|
||||
|
||||
rule C_EXECUTABLE_LINKER__LightTAM_RFID_Reader_Debug
|
||||
command = $PRE_LINK && /opt/st/stm32cubeclt_1.17.0/GNU-tools-for-STM32/bin/arm-none-eabi-gcc $FLAGS -mcpu=cortex-m3 -T "/home/eduard/repos/LightTAM_RFID_Reader/stm32f103c8tx_flash.ld" --specs=nano.specs -Wl,-Map=LightTAM_RFID_Reader.map -Wl,--gc-sections -Wl,--start-group -lc -lm -Wl,--end-group -Wl,--print-memory-usage $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
command = $PRE_LINK && /opt/st/stm32cubeclt_1.17.0_2/GNU-tools-for-STM32/bin/arm-none-eabi-gcc $FLAGS -mcpu=cortex-m3 -T "/home/eduard/Repos/LightTAM_RFID_Reader/stm32f103c8tx_flash.ld" --specs=nano.specs -Wl,-Map=LightTAM_RFID_Reader.map -Wl,--gc-sections -Wl,--start-group -lc -lm -Wl,--end-group -Wl,--print-memory-usage $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
|
||||
description = Linking C executable $TARGET_FILE
|
||||
restat = $RESTAT
|
||||
|
||||
@@ -48,20 +48,38 @@ rule CUSTOM_COMMAND
|
||||
description = $DESC
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for compiling C files.
|
||||
|
||||
rule C_COMPILER__STM32_Drivers_unscanned_Debug
|
||||
depfile = $DEP_FILE
|
||||
deps = gcc
|
||||
command = ${LAUNCHER}${CODE_CHECK}/opt/st/stm32cubeclt_1.17.0_2/GNU-tools-for-STM32/bin/arm-none-eabi-gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
|
||||
description = Building C object $out
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for re-running cmake.
|
||||
|
||||
rule RERUN_CMAKE
|
||||
command = /opt/st/stm32cubeclt_1.17.0/CMake/bin/cmake --regenerate-during-build -S/home/eduard/repos/LightTAM_RFID_Reader -B/home/eduard/repos/LightTAM_RFID_Reader/build/Debug
|
||||
command = /opt/st/stm32cubeclt_1.17.0_2/CMake/bin/cmake --regenerate-during-build -S/home/eduard/Repos/LightTAM_RFID_Reader -B/home/eduard/Repos/LightTAM_RFID_Reader/build/Debug
|
||||
description = Re-running CMake...
|
||||
generator = 1
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for cleaning additional files.
|
||||
|
||||
rule CLEAN_ADDITIONAL
|
||||
command = /opt/st/stm32cubeclt_1.17.0_2/CMake/bin/cmake -DCONFIG=$CONFIG -P CMakeFiles/clean_additional.cmake
|
||||
description = Cleaning additional files...
|
||||
|
||||
|
||||
#############################################
|
||||
# Rule for cleaning all built files.
|
||||
|
||||
rule CLEAN
|
||||
command = /opt/st/stm32cubeclt_1.17.0/Ninja/bin/ninja $FILE_ARG -t clean $TARGETS
|
||||
command = /opt/st/stm32cubeclt_1.17.0_2/Ninja/bin/ninja $FILE_ARG -t clean $TARGETS
|
||||
description = Cleaning all built files...
|
||||
|
||||
|
||||
@@ -69,6 +87,6 @@ rule CLEAN
|
||||
# Rule for printing all primary targets available.
|
||||
|
||||
rule HELP
|
||||
command = /opt/st/stm32cubeclt_1.17.0/Ninja/bin/ninja -t targets
|
||||
command = /opt/st/stm32cubeclt_1.17.0_2/Ninja/bin/ninja -t targets
|
||||
description = All primary targets available:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user