add --gc-sections/-ffunction-sections/-fdata-sections so linker will remove unused functions.
as is, all functions are included in executable even if not called, adding these and defining an ENTRY() in the linker script will make ld remove unused functions producing smaller results.
add -MMD for proper deps of included files
build spi only, sd/mmc only, and combo images seperately into their own build directories
Build improvements:
add --gc-sections/-ffunction-sections/-fdata-sections so linker will remove unused functions. as is, all functions are included in executable even if not called, adding these and defining an ENTRY() in the linker script will make ld remove unused functions producing smaller results.
add -MMD for proper deps of included files
build spi only, sd/mmc only, and combo images seperately into their own build directories