Skip to content

Commit

Permalink
make: export DEVELHELP
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
Enoch247 committed Oct 3, 2024
1 parent 8a933a5 commit dda83bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makefiles/vars.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dda83bc

Please sign in to comment.