diff options
| author | Simon John <817564+sej7278@users.noreply.github.com> | 2020-10-20 09:13:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-20 09:13:50 +0100 |
| commit | e39a026014e1bd77cd82dd9d9e01d7807c59c9b9 (patch) | |
| tree | aa2a0a8d2ae36b14f547625c50e6cd96965f67d8 /arduino-mk-vars.md | |
| parent | c7eb909b849e354fdb7630d11405ea6de706f1ba (diff) | |
| parent | 01493f4e23a55e3117ee3e71b12cad35ecfa681d (diff) | |
Merge pull request #643 from soburi/define_board_macro
Add -DARDUINO_{build.board} and -DARDUINO_VARIANT for compile options
Diffstat (limited to 'arduino-mk-vars.md')
| -rw-r--r-- | arduino-mk-vars.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arduino-mk-vars.md b/arduino-mk-vars.md index 7c42416..0907eb2 100644 --- a/arduino-mk-vars.md +++ b/arduino-mk-vars.md @@ -583,6 +583,26 @@ CORE = tiny ---- +### BOARD + +**Description:** + +Board identifier that passes to a compile option as -DARDUINO_$(BOARD). + +Usually can be auto-detected as `build.board` from `boards.txt`. + +If not found build.board entry, use upper-case converted "$(ARCHITECTURE)_$(BOARD_TAG)". + +**Example:** + +```Makefile +BOARD = AVR_LEONARD +``` + +**Requirement:** *Optional* + +---- + ### VARIANT **Description:** |
