From dda83bc67e45963f961ec7c49de38bbce57db56e Mon Sep 17 00:00:00 2001 From: Joshua DeWeese Date: Thu, 3 Oct 2024 14:05:19 -0400 Subject: [PATCH] make: export DEVELHELP This patch exports the make macro `DEVELHELP`. Without this patch, use of the macro in the following files does not work when the macro is set in a makefile (such as in Makefile.local or an application's makefile as demonstrated in dist/Makefile). Inside these files `DEVELHELP` is not defined under these conditions. - pkg/littlefs/Makefile - pkg/littlefs2/Makefile - sys/stdio_null/Makefile Note that use of the macro does work in these files when the macro is set from the command line, without the patch. For example: ``` sh $make DEVELHELP=1 all ``` --- makefiles/vars.inc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/vars.inc.mk b/makefiles/vars.inc.mk index ce6c4e15b2fc..a8ce40c3b444 100644 --- a/makefiles/vars.inc.mk +++ b/makefiles/vars.inc.mk @@ -116,7 +116,7 @@ export HEXFILE # The 'intel hex' stripped result of the compilatio # DEBUGSERVER_FLAGS # The parameters to supply to DEBUGSERVER. # DEBUGCLIENT # The command to call on "make debug-client", usually a script starting the GDB client. # DEBUGCLIENT_FLAGS # The parameters to supply to DEBUGCLIENT. -# DEVELHELP # Set to 1 to spend ROM, RAM and CPU time for help during development (e.g. enable asserts()) +export DEVELHELP # Set to 1 to spend ROM, RAM and CPU time for help during development (e.g. enable asserts()) # RESET # The command to call on "make reset", this command resets/reboots the target. # RESET_FLAGS # The parameters to supply to RESET. # PROGRAMMER # The programmer to use when flashing, resetting or debugging