1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/genconfigheader
Marian Buschsieweke 29e963bd95
build system: deprecate RIOT_MCU predefined macro
This re-adds `RIOT_MCU` as alias for `RIOT_CPU` and marks it as
deprecated. That should make life easier for downstream apps that may
still use `RIOT_CPU`.
2024-09-28 18:32:49 +02:00
..
genconfigheader.sh build system: document riotbuid.h 2024-09-28 18:32:49 +02:00
README.md make: Place most configuration macros in a separate file instead of on the command line 2016-07-05 11:22:58 +02:00
riotbuild-prefix.h.in build system: deprecate RIOT_MCU predefined macro 2024-09-28 18:32:49 +02:00

genconfigheader.sh

Usage: genconfigheader.sh <output_header_file> [CFLAGS]

Generate a build configuration header from CFLAGS arguments

  • Arguments on the form -Dmacro_name=macro_value will be converted to the form #define macro_name macro_value
  • Arguments given on the form -Dmacro_name will be converted to the form #define macro_name 1
  • The output file will be overwritten if it already exists and the new output file's contents differs from the old file.

By not replacing the output file on every run, make can still use the file modification times for dependency calculations.