* [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
* [Buildroot] [PATCH v2 2/2] package/avrdude: bump to f8893ccf0aceeff67c45f95ae4e86bc7fbe342aa
2017-05-18 15:08 [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option Matt Weber
@ 2017-05-18 15:08 ` Matt Weber
2017-05-19 13:14 ` [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option Peter Korsgaard
1 sibling, 0 replies; 8+ messages in thread
From: Matt Weber @ 2017-05-18 15:08 UTC (permalink / raw)
To: buildroot
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
---
Change log
v1 -> v2
- Bump for upstream accepting fix
---
package/avrdude/avrdude.hash | 2 +-
package/avrdude/avrdude.mk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/avrdude/avrdude.hash b/package/avrdude/avrdude.hash
index b2c6125..b203d4d 100644
--- a/package/avrdude/avrdude.hash
+++ b/package/avrdude/avrdude.hash
@@ -1,2 +1,2 @@
# Locally computed
-sha256 b32128f4812d5e852cfba2e863d950ec30e0f72f09bc14fb41c02528bbc5dd18 avrdude-ad04c429a90f4c34f000ea4ae11db2705915a31f.tar.gz
+sha256 cfa97af7badc713c62306ab85d0e7a288b064bf72e698494f73cb16c5b2c659e avrdude-f8893ccf0aceeff67c45f95ae4e86bc7fbe342aa.tar.gz
diff --git a/package/avrdude/avrdude.mk b/package/avrdude/avrdude.mk
index 19ffdfa..5d5debb 100644
--- a/package/avrdude/avrdude.mk
+++ b/package/avrdude/avrdude.mk
@@ -4,7 +4,7 @@
#
################################################################################
-AVRDUDE_VERSION = ad04c429a90f4c34f000ea4ae11db2705915a31f
+AVRDUDE_VERSION = f8893ccf0aceeff67c45f95ae4e86bc7fbe342aa
AVRDUDE_SITE = $(call github,kcuzner,avrdude,$(AVRDUDE_VERSION))
AVRDUDE_LICENSE = GPL-2.0+
AVRDUDE_LICENSE_FILES = avrdude/COPYING
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option
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 ` Peter Korsgaard
2017-05-19 13:58 ` Matthew Weber
1 sibling, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2017-05-19 13:14 UTC (permalink / raw)
To: buildroot
>>>>> "Matt" == Matt Weber <matthew.weber@rockwellcollins.com> writes:
> 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
Didn't you just agree with Baruch that we could just enable it
unconditially and not have a Config.in option for it?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option
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
0 siblings, 2 replies; 8+ messages in thread
From: Matthew Weber @ 2017-05-19 13:58 UTC (permalink / raw)
To: buildroot
Peter / Baruch,
On Fri, May 19, 2017 at 8:14 AM, Peter Korsgaard <peter@korsgaard.com> wrote:
>
> >>>>> "Matt" == Matt Weber <matthew.weber@rockwellcollins.com> writes:
>
> > 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
>
> Didn't you just agree with Baruch that we could just enable it
> unconditially and not have a Config.in option for it?
>
Not sure we reached a conclusion. I guess the question would be,
right now in buildroot it doesn't enable this option. So if we by
default go linux-gpio it disables the legacy options which were the
previous default (kernel's older then sysfs gpio support). I'm good
either way, but the fundamental package behavior changes.
Matt
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option
2017-05-19 13:58 ` Matthew Weber
@ 2017-05-19 14:39 ` Thomas Petazzoni
2017-05-19 14:48 ` Peter Korsgaard
1 sibling, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2017-05-19 14:39 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 19 May 2017 08:58:25 -0500, Matthew Weber wrote:
> Not sure we reached a conclusion. I guess the question would be,
> right now in buildroot it doesn't enable this option. So if we by
> default go linux-gpio it disables the legacy options which were the
> previous default (kernel's older then sysfs gpio support). I'm good
> either way, but the fundamental package behavior changes.
Package behavior also changes every time we bump a package. So Baruch's
question was whether the size impact was significant or not. If it's
not, then no need to make an option for it.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option
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
1 sibling, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2017-05-19 14:48 UTC (permalink / raw)
To: buildroot
>>>>> "Matthew" == Matthew Weber <matthew.weber@rockwellcollins.com> writes:
Hi,
>> Didn't you just agree with Baruch that we could just enable it
>> unconditially and not have a Config.in option for it?
>>
> Not sure we reached a conclusion. I guess the question would be,
> right now in buildroot it doesn't enable this option. So if we by
> default go linux-gpio it disables the legacy options which were the
> previous default (kernel's older then sysfs gpio support)
Do you mean that enabling this driver disables anything else? I don't
see that. The kernel's gpio sysfs interface is close to 10 years old by
now, so I doubt that is an issue.
From the looks of it, the linuxgpio driver seems to be very small
compared to the total size of avrdude, so unconditionally enabling it
sounds sensible to me.
I notice that we are using a fork of avrdude which hasn't really been
updated significantly since 2013 instead of the official one which had a
release in 2016. Any reason we shouldn't be using the official one
instead?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option
2017-05-19 14:48 ` Peter Korsgaard
@ 2017-05-19 15:01 ` Matthew Weber
2017-05-19 15:40 ` Sam Voss
0 siblings, 1 reply; 8+ messages in thread
From: Matthew Weber @ 2017-05-19 15:01 UTC (permalink / raw)
To: buildroot
Peter
On Fri, May 19, 2017 at 9:48 AM, Peter Korsgaard <peter@korsgaard.com> wrote:
>>>>>> "Matthew" == Matthew Weber <matthew.weber@rockwellcollins.com> writes:
>
> Hi,
>
> >> Didn't you just agree with Baruch that we could just enable it
> >> unconditially and not have a Config.in option for it?
> >>
>
> > Not sure we reached a conclusion. I guess the question would be,
> > right now in buildroot it doesn't enable this option. So if we by
> > default go linux-gpio it disables the legacy options which were the
> > previous default (kernel's older then sysfs gpio support)
>
> Do you mean that enabling this driver disables anything else? I don't
> see that. The kernel's gpio sysfs interface is close to 10 years old by
> now, so I doubt that is an issue.
>
> From the looks of it, the linuxgpio driver seems to be very small
> compared to the total size of avrdude, so unconditionally enabling it
> sounds sensible to me.
Ok, I'm good with unconditionally enabling.
>
> I notice that we are using a fork of avrdude which hasn't really been
> updated significantly since 2013 instead of the official one which had a
> release in 2016. Any reason we shouldn't be using the official one
> instead?
Very good question, we are unsure. I've added a few people that have
modified that package to this email to ask.
Wojciech / Samuel / Gregory, any reason to stay on this fork of avrdude?
Matt
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option
2017-05-19 15:01 ` Matthew Weber
@ 2017-05-19 15:40 ` Sam Voss
0 siblings, 0 replies; 8+ messages in thread
From: Sam Voss @ 2017-05-19 15:40 UTC (permalink / raw)
To: buildroot
>> I notice that we are using a fork of avrdude which hasn't really been
>> updated significantly since 2013 instead of the official one which had a
>> release in 2016. Any reason we shouldn't be using the official one
>> instead?
>
> Very good question, we are unsure. I've added a few people that have
> modified that package to this email to ask.
>
> Wojciech / Samuel / Gregory, any reason to stay on this fork of avrdude?
The biggest reason is due to the fact that the spi functionality has
not been merged back into mainline, and requests to do it have fallen
onto deaf ears. I sent an email recently to the mainline avrdude
asking about getting this functionality merged in and have yet to hear
anything from them.
--
Sam Voss
^ permalink raw reply [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