* [Buildroot] [PATCH] wireguard: needs 3.10+ kernel
@ 2017-10-03 8:04 Peter Korsgaard
2017-10-05 18:44 ` Arnout Vandecappelle
0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2017-10-03 8:04 UTC (permalink / raw)
To: buildroot
The dependency is actually only for the kernel module (and thus on the
runtime kernel version rather than kernel headers), but as we don't know the
runtime version in kconfig this will have to do.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/wireguard/Config.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/wireguard/Config.in b/package/wireguard/Config.in
index 0321755db3..acce6663ba 100644
--- a/package/wireguard/Config.in
+++ b/package/wireguard/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_WIREGUARD
bool "wireguard"
+ depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
select BR2_PACKAGE_LIBMNL
help
WireGuard is an extremely simple yet fast and modern VPN
@@ -16,3 +17,6 @@ config BR2_PACKAGE_WIREGUARD
VPN solution in the industry.
https://www.wireguard.com
+
+comment "wireguard needs a toolchain w/ headers > 3.10"
+ depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] wireguard: needs 3.10+ kernel
2017-10-03 8:04 [Buildroot] [PATCH] wireguard: needs 3.10+ kernel Peter Korsgaard
@ 2017-10-05 18:44 ` Arnout Vandecappelle
2017-10-05 19:46 ` Peter Korsgaard
0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2017-10-05 18:44 UTC (permalink / raw)
To: buildroot
Hi Peter,
Looks like I don't manage to apply any of your patches today :-)
On 03-10-17 10:04, Peter Korsgaard wrote:
> The dependency is actually only for the kernel module (and thus on the
> runtime kernel version rather than kernel headers), but as we don't know the
> runtime version in kconfig this will have to do.
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
> package/wireguard/Config.in | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/package/wireguard/Config.in b/package/wireguard/Config.in
> index 0321755db3..acce6663ba 100644
> --- a/package/wireguard/Config.in
> +++ b/package/wireguard/Config.in
> @@ -1,5 +1,6 @@
> config BR2_PACKAGE_WIREGUARD
> bool "wireguard"
> + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
The kernel module is only built if BR2_LINUX_KERNEL=y, so shouldn't this be
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 || !BR2_LINUX_KERNEL
? And of course in the comment as well.
In addition, I think you should add the (abbreviated) contents of the commit
message as a comment here, otherwise it's not at all clear.
Regards,
Arnout
> select BR2_PACKAGE_LIBMNL
> help
> WireGuard is an extremely simple yet fast and modern VPN
> @@ -16,3 +17,6 @@ config BR2_PACKAGE_WIREGUARD
> VPN solution in the industry.
>
> https://www.wireguard.com
> +
> +comment "wireguard needs a toolchain w/ headers > 3.10"
> + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] wireguard: needs 3.10+ kernel
2017-10-05 18:44 ` Arnout Vandecappelle
@ 2017-10-05 19:46 ` Peter Korsgaard
2017-10-05 19:51 ` Arnout Vandecappelle
0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2017-10-05 19:46 UTC (permalink / raw)
To: buildroot
>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:
> Hi Peter,
> Looks like I don't manage to apply any of your patches today :-)
> On 03-10-17 10:04, Peter Korsgaard wrote:
>> The dependency is actually only for the kernel module (and thus on the
>> runtime kernel version rather than kernel headers), but as we don't know the
>> runtime version in kconfig this will have to do.
>>
>> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
>> ---
>> package/wireguard/Config.in | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/package/wireguard/Config.in b/package/wireguard/Config.in
>> index 0321755db3..acce6663ba 100644
>> --- a/package/wireguard/Config.in
>> +++ b/package/wireguard/Config.in
>> @@ -1,5 +1,6 @@
>> config BR2_PACKAGE_WIREGUARD
>> bool "wireguard"
>> + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
> The kernel module is only built if BR2_LINUX_KERNEL=y, so shouldn't this be
> depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 || !BR2_LINUX_KERNEL
That was my first thought as well, but it doesn't make much sense to
build the user space part if the kernel is too old, and I couldn't come
up with a good and clear wording for the comment - So I opted to keep it
simple.
But we can change it if you feel strongly about it. What do you suggest
for the comment text?
> ? And of course in the comment as well.
> In addition, I think you should add the (abbreviated) contents of the commit
> message as a comment here, otherwise it's not at all clear.
Ok, I can do that when applying.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] wireguard: needs 3.10+ kernel
2017-10-05 19:46 ` Peter Korsgaard
@ 2017-10-05 19:51 ` Arnout Vandecappelle
2017-10-05 20:53 ` Peter Korsgaard
0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2017-10-05 19:51 UTC (permalink / raw)
To: buildroot
On 05-10-17 21:46, Peter Korsgaard wrote:
>>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:
>
> > Hi Peter,
> > Looks like I don't manage to apply any of your patches today :-)
>
> > On 03-10-17 10:04, Peter Korsgaard wrote:
> >> The dependency is actually only for the kernel module (and thus on the
> >> runtime kernel version rather than kernel headers), but as we don't know the
> >> runtime version in kconfig this will have to do.
> >>
> >> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> >> ---
> >> package/wireguard/Config.in | 4 ++++
> >> 1 file changed, 4 insertions(+)
> >>
> >> diff --git a/package/wireguard/Config.in b/package/wireguard/Config.in
> >> index 0321755db3..acce6663ba 100644
> >> --- a/package/wireguard/Config.in
> >> +++ b/package/wireguard/Config.in
> >> @@ -1,5 +1,6 @@
> >> config BR2_PACKAGE_WIREGUARD
> >> bool "wireguard"
> >> + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
>
> > The kernel module is only built if BR2_LINUX_KERNEL=y, so shouldn't this be
>
> > depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 || !BR2_LINUX_KERNEL
>
> That was my first thought as well, but it doesn't make much sense to
> build the user space part if the kernel is too old,
That's true indeed, could you add that reasoning to the commit message? Then
there's no need to complicate the dependency.
> and I couldn't come
> up with a good and clear wording for the comment - So I opted to keep it
> simple.
>
> But we can change it if you feel strongly about it. What do you suggest
> for the comment text?
# kernel module requires 3.10+, userspace makes no sense without it
Regards,
Arnout
>
> > ? And of course in the comment as well.
>
> > In addition, I think you should add the (abbreviated) contents of the commit
> > message as a comment here, otherwise it's not at all clear.
>
> Ok, I can do that when applying.
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] wireguard: needs 3.10+ kernel
2017-10-05 19:51 ` Arnout Vandecappelle
@ 2017-10-05 20:53 ` Peter Korsgaard
0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2017-10-05 20:53 UTC (permalink / raw)
To: buildroot
>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:
Hi,
>> That was my first thought as well, but it doesn't make much sense to
>> build the user space part if the kernel is too old,
> That's true indeed, could you add that reasoning to the commit message? Then
> there's no need to complicate the dependency.
>> and I couldn't come
>> up with a good and clear wording for the comment - So I opted to keep it
>> simple.
>>
>> But we can change it if you feel strongly about it. What do you suggest
>> for the comment text?
> # kernel module requires 3.10+, userspace makes no sense without it
Committed with these fixes, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-10-05 20:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-03 8:04 [Buildroot] [PATCH] wireguard: needs 3.10+ kernel Peter Korsgaard
2017-10-05 18:44 ` Arnout Vandecappelle
2017-10-05 19:46 ` Peter Korsgaard
2017-10-05 19:51 ` Arnout Vandecappelle
2017-10-05 20:53 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox