From 3c326d95b163f6cbb51cbad4a588bb4aa8e3dd9e Mon Sep 17 00:00:00 2001 From: Jake Carter Date: Tue, 26 Sep 2023 14:54:28 -0500 Subject: [PATCH] feat(Build): Add Helper String to Build Output (#742) --- Libraries/CMSIS/Device/Maxim/GCC/gcc.mk | 17 +++++++++++++++++ Libraries/CMSIS/Device/Maxim/GCC/gcc_riscv.mk | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk b/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk index 2d95a2ad0b4..ad953419706 100644 --- a/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk +++ b/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk @@ -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 \ No newline at end of file diff --git a/Libraries/CMSIS/Device/Maxim/GCC/gcc_riscv.mk b/Libraries/CMSIS/Device/Maxim/GCC/gcc_riscv.mk index c66d9519603..c5c37314605 100644 --- a/Libraries/CMSIS/Device/Maxim/GCC/gcc_riscv.mk +++ b/Libraries/CMSIS/Device/Maxim/GCC/gcc_riscv.mk @@ -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 \ No newline at end of file