Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option
@ 2017-05-18 15:08 Matt Weber
  2017-05-18 15:08 ` [Buildroot] [PATCH v2 2/2] package/avrdude: bump to f8893ccf0aceeff67c45f95ae4e86bc7fbe342aa Matt Weber
  2017-05-19 13:14 ` [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option Peter Korsgaard
  0 siblings, 2 replies; 8+ messages in thread
From: Matt Weber @ 2017-05-18 15:08 UTC (permalink / raw)
  To: buildroot

From: Sam Voss <samuel.voss@rockwellcollins.com>

Add the option to enable linux sysfs gpio framework
configure option in menuconfig.

Signed-off-by: Sam Voss <samuel.voss@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>

---

Change Log

v1 -> v2
 - upstream accepted linux gpio fix, removed patch
---
 package/avrdude/Config.in  | 10 ++++++++++
 package/avrdude/avrdude.mk |  6 ++++++
 2 files changed, 16 insertions(+)

diff --git a/package/avrdude/Config.in b/package/avrdude/Config.in
index 3757f17..ac982e1 100644
--- a/package/avrdude/Config.in
+++ b/package/avrdude/Config.in
@@ -15,6 +15,16 @@ config BR2_PACKAGE_AVRDUDE
 
 	  https://github.com/kcuzner/avrdude
 
+if BR2_PACKAGE_AVRDUDE
+
+config BR2_PACKAGE_AVRDUDE_LINUXGPIO
+	bool "linux gpio"
+	depends on BR2_PACKAGE_AVRDUDE
+	help
+	  Enables the tool to use the Linux Sysfs based GPIO framework for GPIO
+	  access by configuring AVRDude with '--enable-linuxgpio'.
+endif
+
 comment "avrdude needs a uClibc or glibc toolchain w/ threads, wchar, dynamic library"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || BR2_STATIC_LIBS \
 		|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
diff --git a/package/avrdude/avrdude.mk b/package/avrdude/avrdude.mk
index f914ed7..19ffdfa 100644
--- a/package/avrdude/avrdude.mk
+++ b/package/avrdude/avrdude.mk
@@ -23,6 +23,12 @@ else ifeq ($(BR2_PACKAGE_LIBFTDI),y)
 AVRDUDE_DEPENDENCIES += libftdi
 endif
 
+ifeq ($(BR2_PACKAGE_AVRDUDE_LINUXGPIO),y)
+AVRDUDE_CONF_OPTS = --enable-linuxgpio
+else
+AVRDUDE_CONF_OPTS = --disable-linuxgpio
+endif
+
 # if /etc/avrdude.conf exists, the installation process creates a
 # backup file, which we do not want in the context of Buildroot.
 define AVRDUDE_REMOVE_BACKUP_FILE
-- 
1.9.1

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

end of thread, other threads:[~2017-05-19 15:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-18 15:08 [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option Matt Weber
2017-05-18 15:08 ` [Buildroot] [PATCH v2 2/2] package/avrdude: bump to f8893ccf0aceeff67c45f95ae4e86bc7fbe342aa Matt Weber
2017-05-19 13:14 ` [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option Peter Korsgaard
2017-05-19 13:58   ` Matthew Weber
2017-05-19 14:39     ` Thomas Petazzoni
2017-05-19 14:48     ` Peter Korsgaard
2017-05-19 15:01       ` Matthew Weber
2017-05-19 15:40         ` Sam Voss

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