[arch-commits] Commit in avr-binutils/trunk (PKGBUILD avr-size.patch)

2020-02-07 Thread Anatol Pomozov via arch-commits
Date: Friday, February 7, 2020 @ 23:24:37
  Author: anatolik
Revision: 563777

upgpkg: avr-binutils 2.34-1

Modified:
  avr-binutils/trunk/PKGBUILD
  avr-binutils/trunk/avr-size.patch

+
 PKGBUILD   |6 +++---
 avr-size.patch |   21 +
 2 files changed, 12 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-02-07 23:01:44 UTC (rev 563776)
+++ PKGBUILD2020-02-07 23:24:37 UTC (rev 563777)
@@ -6,7 +6,7 @@
 # Build order: avr-binutils -> avr-gcc -> avr-libc
 
 pkgname=avr-binutils
-pkgver=2.33.1
+pkgver=2.34
 pkgrel=1
 pkgdesc="A set of programs to assemble and manipulate binary and object files 
for the AVR architecture"
 arch=('x86_64')
@@ -16,9 +16,9 @@
 options=('!distcc' '!ccache')
 source=(https://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig}
 avr-size.patch)
-sha1sums=('332c7df7e1830c1e756cf4a5542a7952200210c1'
+sha1sums=('361566c9ab5e90bd847d06f46fb9f18ec6c3ecf0'
   'SKIP'
-  '7ec726441f086bf13142884901a6eb8d571f53ae')
+  'bb820f761fbbe7379ddf8e75235866c44591c899')
 validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93'  # Tristan Gingold 

   '3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton 
(Chief Binutils Maintainer) 
 

Modified: avr-size.patch
===
--- avr-size.patch  2020-02-07 23:01:44 UTC (rev 563776)
+++ avr-size.patch  2020-02-07 23:24:37 UTC (rev 563777)
@@ -1,5 +1,5 @@
 diff --git a/binutils/size.c b/binutils/size.c
-index 479a464887..f0b38e66a6 100644
+index 3697087714..f99d45a6bf 100644
 --- a/binutils/size.c
 +++ b/binutils/size.c
 @@ -51,7 +51,8 @@ enum output_format
@@ -325,11 +325,10 @@
case 'v':
case 'V':
show_version = 1;
-@@ -648,6 +903,101 @@ print_sysv_format (bfd *file)
+@@ -656,6 +911,98 @@ print_sysv_format (bfd *file)
printf ("\n\n");
  }
  
-+
 +static avr_device_t *
 +avr_find_device (void)
 +{
@@ -348,8 +347,6 @@
 +  return (NULL);
 +}
 +
-+
-+
 +static void
 +print_avr_format (bfd *file)
 +{
@@ -375,17 +372,17 @@
 +  }
 +
 +  if ((section = bfd_get_section_by_name (file, ".data")) != NULL)
-+my_datasize = bfd_section_size (file, section);
++my_datasize = bfd_section_size (section);
 +  if ((section = bfd_get_section_by_name (file, ".text")) != NULL)
-+my_textsize = bfd_section_size (file, section);
++my_textsize = bfd_section_size (section);
 +  if ((section = bfd_get_section_by_name (file, ".bss")) != NULL)
-+my_bsssize = bfd_section_size (file, section);
++my_bsssize = bfd_section_size (section);
 +  if ((section = bfd_get_section_by_name (file, ".bootloader")) != NULL)
-+bootloadersize = bfd_section_size (file, section);
++bootloadersize = bfd_section_size (section);
 +  if ((section = bfd_get_section_by_name (file, ".noinit")) != NULL)
-+noinitsize = bfd_section_size (file, section);
++noinitsize = bfd_section_size (section);
 +  if ((section = bfd_get_section_by_name (file, ".eeprom")) != NULL)
-+eepromsize = bfd_section_size (file, section);
++eepromsize = bfd_section_size (section);
 +
 +  bfd_size_type text = my_textsize + my_datasize + bootloadersize;
 +  bfd_size_type data = my_datasize + my_bsssize + noinitsize;
@@ -427,7 +424,7 @@
  static void
  print_sizes (bfd *file)
  {
-@@ -655,6 +1005,8 @@ print_sizes (bfd *file)
+@@ -663,6 +1010,8 @@ print_sizes (bfd *file)
  calculate_common_size (file);
if (selected_output_format == FORMAT_SYSV)
  print_sysv_format (file);


[arch-commits] Commit in avr-binutils/trunk (PKGBUILD avr-size.patch)

2019-10-13 Thread Anatol Pomozov via arch-commits
Date: Sunday, October 13, 2019 @ 20:12:24
  Author: anatolik
Revision: 515328

upgpkg: avr-binutils 2.33.1-1

Modified:
  avr-binutils/trunk/PKGBUILD
  avr-binutils/trunk/avr-size.patch

+
 PKGBUILD   |4 -
 avr-size.patch |  205 ---
 2 files changed, 62 insertions(+), 147 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-13 19:45:43 UTC (rev 515327)
+++ PKGBUILD2019-10-13 20:12:24 UTC (rev 515328)
@@ -18,7 +18,7 @@
 avr-size.patch)
 sha1sums=('332c7df7e1830c1e756cf4a5542a7952200210c1'
   'SKIP'
-  'b6d1ff7084b1f0a3fd2dee5383019ffb202e6c9a')
+  '7ec726441f086bf13142884901a6eb8d571f53ae')
 validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93'  # Tristan Gingold 

   '3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F') # Nick Clifton 
(Chief Binutils Maintainer) 
 
@@ -29,7 +29,7 @@
 
 # See https://bugs.archlinux.org/task/32504
 # And https://bugs.archlinux.org/task/40986
-patch -Np0 < ${srcdir}/avr-size.patch
+patch -p1 < ${srcdir}/avr-size.patch
 
 # https://bugs.archlinux.org/task/34629
 sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure

Modified: avr-size.patch
===
--- avr-size.patch  2019-10-13 19:45:43 UTC (rev 515327)
+++ avr-size.patch  2019-10-13 20:12:24 UTC (rev 515328)
@@ -1,55 +1,18 @@
-AVR only; support -C for AVR memory usage
-
-Source: 
http://git.makehackvoid.com/cgi-bin/gitweb.cgi?p=mhvavrtools.git;a=blob_plain;f=mhvavrtools/patches/binutils-001-avr-size.patch;h=e80d28eae46217551d996a2253256c97d10aa4b5;hb=refs/heads/master
-===
 binutils/size.c2007-08-06 13:56:14.0 -0600
-+++ binutils/size.c2007-09-13 09:13:10.28125 -0600
-@@ -36,10 +36,31 @@
- #include "getopt.h"
- #include "bucomm.h"
- 
--#ifndef BSD_DEFAULT
--#define BSD_DEFAULT 1
-+typedef enum
-+{
-+format_sysv = 0,
-+format_bsd = 1,
-+format_avr = 2,
-+} format_type_t;
-+
-+
-+/* Set the default format. */
-+#define FORMAT_DEFAULT_SYSV 0
-+#define FORMAT_DEFAULT_BSD 1
-+#define FORMAT_DEFAULT_AVR 0
-+
-+#if FORMAT_DEFAULT_SYSV
-+#define FORMAT_DEFAULT format_sysv
-+#define FORMAT_NAME "sysv"
-+#elif FORMAT_DEFAULT_BSD
-+#define FORMAT_DEFAULT format_bsd
-+#define FORMAT_NAME "berkeley"
-+#elif FORMAT_DEFAULT_AVR
-+#define FORMAT_DEFAULT format_avr
-+#define FORMAT_NAME "avr"
- #endif
- 
-+
- /* Program options.  */
- 
- static enum
-@@ -48,9 +69,8 @@ static enum
-   }
- radix = decimal;
- 
--/* 0 means use AT output.  */
--static int berkeley_format = BSD_DEFAULT;
- 
-+format_type_t format = FORMAT_DEFAULT;
- static int show_version = 0;
- static int show_help = 0;
- static int show_totals = 0;
-@@ -64,6 +84,246 @@ static bfd_size_type total_textsize;
+diff --git a/binutils/size.c b/binutils/size.c
+index 479a464887..f0b38e66a6 100644
+--- a/binutils/size.c
 b/binutils/size.c
+@@ -51,7 +51,8 @@ enum output_format
+   {
+FORMAT_BERKLEY,
+FORMAT_SYSV,
+-   FORMAT_GNU
++   FORMAT_GNU,
++   FORMAT_AVR
+   };
+ static enum output_format selected_output_format =
+ #if BSD_DEFAULT
+@@ -74,6 +75,246 @@ static bfd_size_type total_textsize;
  /* Program exit status.  */
  static int return_code = 0;
  
@@ -144,7 +107,7 @@
 +  {"atmega64c1",AVR64K,  AVR4K,  AVR2K},
 +  {"atmega64hve",   AVR64K,  AVR4K,  AVR1K},
 +  {"atmega64m1",AVR64K,  AVR4K,  AVR2K},
-+   {"m3000", AVR64K,  AVR4K,  0UL},
++  {"m3000", AVR64K,  AVR4K,  0UL},
 +
 +  {"atmega406", AVR40K,  AVR2K,  AVR512},
 +
@@ -175,7 +138,7 @@
 +  {"atmega3290p",   AVR32K,  AVR2K,  AVR1K},
 +  {"atmega32hvb",   AVR32K,  AVR2K,  AVR1K},
 +  {"atmega32c1",AVR32K,  AVR2K,  AVR1K},
-+   {"atmega32hvb",   AVR32K,  AVR2K,  AVR1K},
++  {"atmega32hvb",   AVR32K,  AVR2K,  AVR1K},
 +  {"atmega32m1",AVR32K,  AVR2K,  AVR1K},
 +  {"atmega32u2",AVR32K,  AVR1K,  AVR1K},
 +  {"atmega32u4",AVR32K,  2560UL, AVR1K},
@@ -210,7 +173,7 @@
 +  {"atmega169pa",   AVR16K,  AVR1K,  AVR512},
 +  {"atmega16hva",   AVR16K,  768UL,  AVR256},
 +  {"atmega16hva2",  AVR16K,  AVR1K,  AVR256},
-+   {"atmega16hvb",   AVR16K,  AVR1K,  AVR512},
++  {"atmega16hvb",   AVR16K,  AVR1K,  AVR512},
 +  {"atmega16m1",AVR16K,  AVR1K,  AVR512},
 +  {"atmega16u2",AVR16K,  AVR512, AVR512},
 +  {"atmega16u4",AVR16K,  1280UL, AVR512},
@@ -264,7 +227,7 @@
 +  {"at90s2323", AVR2K,   AVR128, AVR128},
 +  {"at90s2333", AVR2K,   224UL,  AVR128},
 +  {"at90s2343", AVR2K,   AVR128, AVR128},
-+   {"attiny20",  AVR2K,   AVR128, 0UL},
++  {"attiny20",  AVR2K,   AVR128, 0UL},
 +  {"attiny22",  AVR2K,   224UL,  AVR128},
 +  {"attiny2313",AVR2K,   

[arch-commits] Commit in avr-binutils/trunk (PKGBUILD avr-size.patch)

2014-07-02 Thread Jakob Gruber
Date: Wednesday, July 2, 2014 @ 08:54:01
  Author: schuay
Revision: 114586

avr-binutils-2.24-2

Modified:
  avr-binutils/trunk/PKGBUILD
  avr-binutils/trunk/avr-size.patch

+
 PKGBUILD   |5 
 avr-size.patch |  365 ++-
 2 files changed, 231 insertions(+), 139 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-07-02 06:32:13 UTC (rev 114585)
+++ PKGBUILD2014-07-02 06:54:01 UTC (rev 114586)
@@ -8,7 +8,7 @@
 
 pkgname=avr-binutils
 pkgver=2.24
-pkgrel=1
+pkgrel=2
 pkgdesc=A set of programs to assemble and manipulate binary and object files 
for the AVR architecture
 arch=('i686' 'x86_64')
 url=http://www.gnu.org/software/binutils/;
@@ -25,6 +25,7 @@
 cd ${srcdir}/binutils-${pkgver}
 
 # See https://bugs.archlinux.org/task/32504
+# And https://bugs.archlinux.org/task/40986
 patch -Np0  ${srcdir}/avr-size.patch
 
 # https://bugs.archlinux.org/task/34629
@@ -76,4 +77,4 @@
 
 md5sums=('e0f71a7b2ddab0f8612336ac81d9636b'
  'SKIP'
- '573769ec1107d1bfed78680edd7ae63f')
+ '7f62e260650ceb0ff2f7cb44c3ee899c')

Modified: avr-size.patch
===
--- avr-size.patch  2014-07-02 06:32:13 UTC (rev 114585)
+++ avr-size.patch  2014-07-02 06:54:01 UTC (rev 114586)
@@ -1,8 +1,10 @@
-AVR specific only
-
+AVR only; support -C for AVR memory usage
+
+Source: 
http://git.makehackvoid.com/cgi-bin/gitweb.cgi?p=mhvavrtools.git;a=blob_plain;f=mhvavrtools/patches/binutils-001-avr-size.patch;h=e80d28eae46217551d996a2253256c97d10aa4b5;hb=refs/heads/master
+===
 --- binutils/size.c2007-08-06 13:56:14.0 -0600
 +++ binutils/size.c2007-09-13 09:13:10.28125 -0600
-@@ -35,10 +35,31 @@
+@@ -36,10 +36,31 @@
  #include getopt.h
  #include bucomm.h
  
@@ -36,7 +38,7 @@
  /* Program options.  */
  
  static enum
-@@ -47,9 +68,8 @@ static enum
+@@ -48,9 +69,8 @@ static enum
}
  radix = decimal;
  
@@ -47,7 +49,7 @@
  static int show_version = 0;
  static int show_help = 0;
  static int show_totals = 0;
-@@ -63,6 +83,157 @@ static bfd_size_type total_textsize;
+@@ -64,6 +84,246 @@ static bfd_size_type total_textsize;
  /* Program exit status.  */
  static int return_code = 0;
  
@@ -63,12 +65,18 @@
 +#define AVR4K 4096UL
 +#define AVR8K 8192UL
 +#define AVR16K 16384UL
++#define AVR20K 20480UL
 +#define AVR24K 24576UL
 +#define AVR32K 32768UL
++#define AVR36K 36864UL
 +#define AVR40K 40960UL
 +#define AVR64K 65536UL
++#define AVR68K 69632UL
 +#define AVR128K 131072UL
++#define AVR136K 139264UL
++#define AVR200K 204800UL
 +#define AVR256K 262144UL
++#define AVR264K 270336UL
 +
 +typedef struct
 +{
@@ -80,123 +88,206 @@
 +
 +avr_device_t avr[] =
 +{
-+  {atmega2560,  AVR256K, AVR8K,  AVR4K},
-+  {atmega2561,  AVR256K, AVR8K,  AVR4K},
++  {atxmega256a3,  AVR264K, AVR16K, AVR4K},
++  {atxmega256a3b, AVR264K, AVR16K, AVR4K},
++  {atxmega256d3,  AVR264K, AVR16K, AVR4K},
 +
-+  {at43usb320,  AVR128K, 608UL,0},
-+  {at90can128,  AVR128K, AVR4K,  AVR4K},
-+  {at90usb1286, AVR128K, AVR8K,  AVR4K},
-+  {at90usb1287, AVR128K, AVR8K,  AVR4K},
-+  {atmega128,   AVR128K, AVR4K,  AVR4K},
-+  {atmega1280,  AVR128K, AVR8K,  AVR4K},
-+  {atmega1281,  AVR128K, AVR8K,  AVR4K},
-+  {atmega1284P, AVR128K, AVR16K, AVR4K},
-+  {atmega103,   AVR128K, 4000UL,   AVR4K},
-+  {atxmega128a1,AVR128K, AVR8K,  AVR2K},
++  {atmega2560,AVR256K, AVR8K,  AVR4K},
++  {atmega2561,AVR256K, AVR8K,  AVR4K},
 +
-+  {at90can64,   AVR64K,  AVR4K,  AVR2K},
-+  {at90usb646,  AVR64K,  AVR4K,  AVR2K},
-+  {at90usb647,  AVR64K,  AVR4K,  AVR2K},
-+  {atmega64,AVR64K,  AVR4K,  AVR2K},
-+  {atmega640,   AVR64K,  AVR8K,  AVR4K},
-+  {atmega644,   AVR64K,  AVR4K,  AVR2K},
-+  {atmega644p,  AVR64K,  AVR4K,  AVR2K},
-+  {atmega645,   AVR64K,  AVR4K,  AVR2K},
-+  {atmega6450,  AVR64K,  AVR4K,  AVR2K},
-+  {atmega649,   AVR64K,  AVR4K,  AVR2K},
-+  {atmega6490,  AVR64K,  AVR4K,  AVR2K},
-+  {atxmega64a1, AVR64K,  AVR4K,  AVR2K},
++  {atxmega192a3,  AVR200K, AVR16K, AVR2K},
++  {atxmega192d3,  AVR200K, AVR16K, AVR2K},
 +
-+  {atmega406,   AVR40K,  AVR512, AVR2K},
++  {atxmega128a1,  AVR136K, AVR8K,  AVR2K},
++  {atxmega128a1u, AVR136K, AVR8K,  AVR2K},
++  {atxmega128a3,  AVR136K, AVR8K,  AVR2K},
++  {atxmega128d3,  AVR136K, AVR8K,  AVR2K},
 +
-+  {at90can32,   AVR32K,  AVR2K,  AVR1K},
-+  {at94k,   AVR32K,  AVR4K,  0},
-+  {atmega32,AVR32K,  AVR2K,  AVR1K},
-+  {atmega323,   AVR32K,  AVR2K,  AVR1K},
-+  {atmega324p,  AVR32K,  AVR2K,  AVR1K},
-+  {atmega325,   AVR32K,  AVR2K,  AVR1K},
-+  {atmega325p,