[riot-commits] [RIOT-OS/RIOT] 957043: boards/common/atmega: Refactor flash & serial conf

benpicco noreply at github.com
Mon Feb 10 23:18:45 CET 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 95704348ae9f0962b543df1995bafa8c6623dcb7
      https://github.com/RIOT-OS/RIOT/commit/95704348ae9f0962b543df1995bafa8c6623dcb7
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/common/atmega/Makefile.include

  Log Message:
  -----------
  boards/common/atmega: Refactor flash & serial conf

- Include `tools/avrdude.mk` and `tools/serial.mk` at the common place instead
  for each ATmega based board individually
- Introduce the makefile variable BOOTLOADER to de-duplicate flash configs:
    - Two boards using the same bootloader now just use `BOOTLOADER ?= foo`
      and share the individual config
    - These settings are not applied when `PROGRAMMER` is set to still allow
      users to manually specify how to program their board


  Commit: 750d3078e4e875835704e132aaafc5917ef26fcd
      https://github.com/RIOT-OS/RIOT/commit/750d3078e4e875835704e132aaafc5917ef26fcd
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/common/arduino-atmega/Makefile.include

  Log Message:
  -----------
  boards/common/arduino-atmega: Refactoring

- including `avrdude.mk` and `serial.mk` is no longer needed
- the avrdude flag -F is dropped
    - This allows flashing a board having an MCU different to the one
      RIOT was compiled for
    - It is better to let the user provide this flag manually if she/he really
      wants to turn safety off, knows what she/he is doing, and accepts the
      risk associated with this
- the avrdude flag -D is dropped
    - This disables issuing an erase command during flashing, however this
      erase cycle is strictly required to be able to program the flash
    - This is only needed in case of the stk500v2 bootloader, which implicitly
      does the erase cycle and fails if explicitly asked to do so
    - Only for the stk500v2 bootloader this flag is now added


  Commit: 23531b3a73f8c22f55f9cb1aab6191f579c741fe
      https://github.com/RIOT-OS/RIOT/commit/23531b3a73f8c22f55f9cb1aab6191f579c741fe
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/arduino-mega2560/Makefile.include

  Log Message:
  -----------
  boards/arduino-mega2560: Refactor avrdude conf


  Commit: 88b90ee4afdca1088635c77f30729f943f18c192
      https://github.com/RIOT-OS/RIOT/commit/88b90ee4afdca1088635c77f30729f943f18c192
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/arduino-uno/Makefile.include

  Log Message:
  -----------
  boards/arduino-uno: Refactor avrdude conf


  Commit: c1c25b0644dca26d7dd741d3132cca37986c574d
      https://github.com/RIOT-OS/RIOT/commit/c1c25b0644dca26d7dd741d3132cca37986c574d
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/arduino-nano/Makefile.include
    M boards/arduino-nano/doc.txt

  Log Message:
  -----------
  boards/arduino-nano: Refactor avrdude conf

- Use the common logic to translate from a bootloader to concrete flasher flags
- Extended documentation on how to use optiboot as alternative bootloader, as
  the stock bootloader is affected by a bug preventing the use of RIOT's
  pm_reboot() implementation


  Commit: 7f4782e3e6d9314dd28a03d1ad793db36019c9f8
      https://github.com/RIOT-OS/RIOT/commit/7f4782e3e6d9314dd28a03d1ad793db36019c9f8
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/arduino-duemilanove/Makefile.include

  Log Message:
  -----------
  boards/arduino-duemilanove: Refactor avrdude conf


  Commit: f5d9f29b5708e1bf0a149f341ff71bd2182a836e
      https://github.com/RIOT-OS/RIOT/commit/f5d9f29b5708e1bf0a149f341ff71bd2182a836e
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/arduino-leonardo/Makefile.include

  Log Message:
  -----------
  boards/arduino-leonardo: Refactor avrdude conf


  Commit: e042bb43e1097a83a40bb8565c063e96edb3506b
      https://github.com/RIOT-OS/RIOT/commit/e042bb43e1097a83a40bb8565c063e96edb3506b
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/derfmega128/Makefile.include
    M boards/derfmega256/Makefile.include

  Log Message:
  -----------
  boards/derfmega*: Refactor avrdude conf


  Commit: 26b4da2db26496b74ed49f60fef21ac3c919aa1d
      https://github.com/RIOT-OS/RIOT/commit/26b4da2db26496b74ed49f60fef21ac3c919aa1d
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/avr-rss2/Makefile.include

  Log Message:
  -----------
  boards/avr-rss2: Refactor avrdude conf


  Commit: ff53159f0e312baab01f75240cdcf109c5d409c6
      https://github.com/RIOT-OS/RIOT/commit/ff53159f0e312baab01f75240cdcf109c5d409c6
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/atmega256rfr2-xpro/Makefile.include

  Log Message:
  -----------
  boards/atmega256rfr2-xpro: Refactor avrdude conf

- No longer include `tools/serial.mk` and `tools/avrdude.mk`, as this is
  no done by `boards/common/atmega`
- No longer provide `RESET ?=`, as this is now done in `tools/avrdude.mk` for
  all ATmega boards unless they are using a bootloader


  Commit: 21b37a3f5e0062fcc6f0bfdd00e13be5ecb8d896
      https://github.com/RIOT-OS/RIOT/commit/21b37a3f5e0062fcc6f0bfdd00e13be5ecb8d896
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/mega-xplained/Makefile.include

  Log Message:
  -----------
  boards/mega-xplained: Refactor avrdude conf


  Commit: fec0f8dd4822dc8361e1f31c1d991e9c119e627b
      https://github.com/RIOT-OS/RIOT/commit/fec0f8dd4822dc8361e1f31c1d991e9c119e627b
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/waspmote-pro/Makefile.include

  Log Message:
  -----------
  boards/waspmote-pro: Refactor avrdude conf


  Commit: d8c050943c11c8a425265b39d1da1372d8bfd1c1
      https://github.com/RIOT-OS/RIOT/commit/d8c050943c11c8a425265b39d1da1372d8bfd1c1
  Author: benpicco <benpicco at googlemail.com>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M boards/arduino-duemilanove/Makefile.include
    M boards/arduino-leonardo/Makefile.include
    M boards/arduino-mega2560/Makefile.include
    M boards/arduino-nano/Makefile.include
    M boards/arduino-nano/doc.txt
    M boards/arduino-uno/Makefile.include
    M boards/atmega256rfr2-xpro/Makefile.include
    M boards/avr-rss2/Makefile.include
    M boards/common/arduino-atmega/Makefile.include
    M boards/common/atmega/Makefile.include
    M boards/derfmega128/Makefile.include
    M boards/derfmega256/Makefile.include
    M boards/mega-xplained/Makefile.include
    M boards/waspmote-pro/Makefile.include

  Log Message:
  -----------
  Merge pull request #13327 from maribu/atmega-bootloader

boards: Cleaned up bootloader selection for ATmega


Compare: https://github.com/RIOT-OS/RIOT/compare/82134ad77ae6...d8c050943c11


More information about the commits mailing list