Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] avrdude: new package
@ 2013-12-24 22:38 Wojciech M. Zabolotny
  2013-12-28 16:09 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Wojciech M. Zabolotny @ 2013-12-24 22:38 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Wojciech M. Zabolotny <wzab01@gmail.com>
---
 package/Config.in          |  1 +
 package/avrdude/Config.in  | 16 ++++++++++++++++
 package/avrdude/avrdude.mk | 18 ++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 package/avrdude/Config.in
 create mode 100644 package/avrdude/avrdude.mk

diff --git a/package/Config.in b/package/Config.in
index 3685807..2abffb8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -258,6 +258,7 @@ source "package/zd1211-firmware/Config.in"
 endmenu
 source "package/a10disp/Config.in"
 source "package/acpid/Config.in"
+source "package/avrdude/Config.in"
 source "package/cdrkit/Config.in"
 source "package/cryptsetup/Config.in"
 source "package/dbus/Config.in"
diff --git a/package/avrdude/Config.in b/package/avrdude/Config.in
new file mode 100644
index 0000000..f3b075a
--- /dev/null
+++ b/package/avrdude/Config.in
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_AVRDUDE
+	bool "avrdude"
+	select BR2_PACKAGE_LIBELF
+	select BR2_PACKAGE_LIBUSB
+	select BR2_PACKAGE_LIBUSB_COMPAT
+	select BR2_PACKAGE_NCURSES
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	help
+	  avrdude is a programmer for Atmel AVR microcontrollers
+	  this package provides a version with new linuxspi driver
+
+	  https://github.com/kcuzner/avrdude
+
+comment "avrdude needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
diff --git a/package/avrdude/avrdude.mk b/package/avrdude/avrdude.mk
new file mode 100644
index 0000000..b04e2e0
--- /dev/null
+++ b/package/avrdude/avrdude.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# AVRDUDE
+#
+################################################################################
+
+AVRDUDE_VERSION = eabe067c4527bc2eedc5db9288ef5cf1818ec720
+AVRDUDE_SITE = $(call github,kcuzner,avrdude,$(AVRDUDE_VERSION))
+AVRDUDE_LICENSE = GPLv2+
+AVRDUDR_LICENSE_FILES = avrdude/COPYING
+AVRDUDE_SUBDIR = avrdude
+# Sources are distributed with ./bootstrap file
+# it is necessary to perform autoreconfiguration 
+AVRDUDE_AUTORECONF = YES
+AVRDUDE_DEPENDENCIES = libelf libusb libusb-compat ncurses
+
+$(eval $(autotools-package))
+
-- 
1.8.5.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH v2 1/1] avrdude: new package
  2013-12-24 22:38 [Buildroot] [PATCH v2 1/1] avrdude: new package Wojciech M. Zabolotny
@ 2013-12-28 16:09 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2013-12-28 16:09 UTC (permalink / raw)
  To: buildroot

Dear Wojciech M. Zabolotny,

On Tue, 24 Dec 2013 23:38:00 +0100, Wojciech M. Zabolotny wrote:
> Signed-off-by: Wojciech M. Zabolotny <wzab01@gmail.com>
> ---
>  package/Config.in          |  1 +
>  package/avrdude/Config.in  | 16 ++++++++++++++++
>  package/avrdude/avrdude.mk | 18 ++++++++++++++++++
>  3 files changed, 35 insertions(+)
>  create mode 100644 package/avrdude/Config.in
>  create mode 100644 package/avrdude/avrdude.mk

Thanks, applied. FYI, I've made the following small modifications:

     - remove empty newline at the end of Config.in
     - use lowercase for the package name in the comment header
     - reword the comment explaining why autoreconf is needed
     - add optional dependency on libftdi, which avrdude can use
     - remove avrdude.conf.bak file from /etc

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-28 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-24 22:38 [Buildroot] [PATCH v2 1/1] avrdude: new package Wojciech M. Zabolotny
2013-12-28 16:09 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox