simulavr_patch1.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. >From 85ce9cf2aa059c8ce22e0f7a82552a8a248f1ef3 Mon Sep 17 00:00:00 2001
  2. From: panic <address@hidden>
  3. Date: Mon, 19 Jun 2017 14:14:11 +0200
  4. Subject: [PATCH 2/2] delete duplicate architecture definition
  5. Previously, gcc threw errors similar to
  6. Fatal error: redefinition of mcu type `avr2' to `attiny25'
  7. The mcu type is already defined via command line parameter -mmcu=.
  8. Removing .arch from the source, avoids the redefinition and the
  9. error.
  10. ---
  11. examples/verilog/Makefile.am | 2 +-
  12. examples/verilog/right-unit.s | 2 +-
  13. examples/verilog/singlepincomm.s | 2 +-
  14. 3 files changed, 3 insertions(+), 3 deletions(-)
  15. diff --git a/examples/verilog/Makefile.am b/examples/verilog/Makefile.am
  16. index a70941f..6a1aff1 100644
  17. --- a/examples/verilog/Makefile.am
  18. +++ b/examples/verilog/Makefile.am
  19. @@ -54,7 +54,7 @@ vst.elf: vst.cpp
  20. .s.o:
  21. - $(AVR_GCC) -c -Wa,-gstabs -x assembler-with-cpp -o $@ $<
  22. + $(AVR_GCC) -mmcu=attiny25 -c -Wa,-gstabs -x assembler-with-cpp -o $@ $<
  23. left-unit.elf: left-unit.o csinglepincomm.o
  24. diff --git a/examples/verilog/right-unit.s b/examples/verilog/right-unit.s
  25. index f45d2b4..885b4ff 100644
  26. --- a/examples/verilog/right-unit.s
  27. +++ b/examples/verilog/right-unit.s
  28. @@ -14,7 +14,7 @@
  29. // with this program; if not, write to the Free Software Foundation, Inc.,
  30. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA..
  31. //
  32. -.arch ATTiny25
  33. +
  34. #define __SFR_OFFSET 0
  35. #define __AVR_ATtiny25__ 1
  36. diff --git a/examples/verilog/singlepincomm.s b/examples/verilog/singlepincomm.s
  37. index 088a359..2bd758c 100644
  38. --- a/examples/verilog/singlepincomm.s
  39. +++ b/examples/verilog/singlepincomm.s
  40. @@ -23,7 +23,7 @@
  41. // warranty!
  42. //
  43. //-----------------------------------------------------------------------------
  44. -.arch ATTiny25
  45. +
  46. #define __AVR_ATtiny25__ 1
  47. #define __SFR_OFFSET 0
  48. #include <avr/io.h>
  49. --
  50. 2.11.0