Skip to content

Commit

Permalink
feat(Build): Add Helper String to Build Output (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter authored and EricB-ADI committed Oct 26, 2023
1 parent 1718d92 commit 3c326d9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Libraries/CMSIS/Device/Maxim/GCC/gcc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -621,3 +621,20 @@ project_defines: $(BUILD_DIR)/project_defines.h
$(BUILD_DIR)/project_defines.h: $(BUILD_DIR)/_empty_tmp_file.c | $(BUILD_DIR)
@echo "// This is a generated file that's used to detect definitions that have been set by the compiler and build system." > $@
@$(CC) -E -P -dD $(BUILD_DIR)/_empty_tmp_file.c $(filter-out -MD,$(CFLAGS)) >> $@

#################################################################################
SUPPRESS_HELP ?= 0
ifeq "$(SUPPRESS_HELP)" "0"
ifneq "$(HELP_COMPLETE)" "1"
$(info ****************************************************************************)
$(info * Analog Devices MSDK)
$(info * - User Guide: https://analog-devices-msdk.github.io/msdk/USERGUIDE/)
$(info * - Get Support: https://www.analog.com/support/technical-support.html)
$(info * - Report Issues: https://github.com/Analog-Devices-MSDK/msdk/issues)
$(info * - Contributing: https://analog-devices-msdk.github.io/msdk/CONTRIBUTING/)
$(info ****************************************************************************)
# export HELP_COMPLETE so that it's only printed once.
HELP_COMPLETE = 1
export HELP_COMPLETE
endif
endif
17 changes: 17 additions & 0 deletions Libraries/CMSIS/Device/Maxim/GCC/gcc_riscv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -618,3 +618,20 @@ project_defines: $(BUILD_DIR)/project_defines.h
$(BUILD_DIR)/project_defines.h: $(BUILD_DIR)/_empty_tmp_file.c | $(BUILD_DIR)
@echo "// This is a generated file that's used to detect definitions that have been set by the compiler and build system." > $@
@$(CC) -E -P -dD $(BUILD_DIR)/_empty_tmp_file.c $(filter-out -MD,$(CFLAGS)) >> $@

#################################################################################
SUPPRESS_HELP ?= 0
ifeq "$(SUPPRESS_HELP)" "0"
ifneq "$(HELP_COMPLETE)" "1"
$(info ****************************************************************************)
$(info * Analog Devices MSDK)
$(info * - User Guide: https://analog-devices-msdk.github.io/msdk/USERGUIDE/)
$(info * - Get Support: https://www.analog.com/support/technical-support.html)
$(info * - Report Issues: https://github.com/Analog-Devices-MSDK/msdk/issues)
$(info * - Contributing: https://analog-devices-msdk.github.io/msdk/CONTRIBUTING/)
$(info ****************************************************************************)
# export HELP_COMPLETE so that it's only printed once.
HELP_COMPLETE = 1
export HELP_COMPLETE
endif
endif

0 comments on commit 3c326d9

Please sign in to comment.