Re: [OpenWrt-Devel] [PATCH] update config.guess & config.sub

2015-11-02 Thread Alexey Brodkin
Hi Felix,

On Thu, 2015-07-30 at 11:43 +0300, Alexey Brodkin wrote:
> These are from today's master branch of:
> http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree
> 
> In particular it adds support for ARC architecture plus some more
> improvements and fixes.
> 
> This patch is built-tested against NetGear WNDR3800.
> 
> Signed-off-by: Alexey Brodkin 
> Cc: Florian Fainelli 
> Cc: Imre Kaloz 
> ---
>  scripts/config.guess | 378 
> +++
>  scripts/config.sub   | 150 
>  2 files changed, 238 insertions(+), 290 deletions(-)

I'm wondering if there're any comments on this one.
Otherwise please consider applying.

This patch is a prerequisite for ARC port submission I'm going to send out
shortly.

-Alexey
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] update config.guess & config.sub

2015-11-02 Thread Florian Fainelli
On 02/11/15 11:01, Kathy Giori wrote:
> On Mon, Nov 2, 2015 at 9:40 AM, Alexey Brodkin
>  wrote:
>> Hi Felix,
>>
>> On Thu, 2015-07-30 at 11:43 +0300, Alexey Brodkin wrote:
>>> These are from today's master branch of:
>>> http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree
>>>
>>> In particular it adds support for ARC architecture plus some more
>>> improvements and fixes.
>>>
>>> This patch is built-tested against NetGear WNDR3800.
>>>
>>> Signed-off-by: Alexey Brodkin 
>>> Cc: Florian Fainelli 
>>> Cc: Imre Kaloz 
>>> ---
>>>  scripts/config.guess | 378 
>>> +++
>>>  scripts/config.sub   | 150 
>>>  2 files changed, 238 insertions(+), 290 deletions(-)
>>
>> I'm wondering if there're any comments on this one.
>> Otherwise please consider applying.
>>
>> This patch is a prerequisite for ARC port submission I'm going to send out
>> shortly.
> 
> Alexey,
> 
> Is there a particular reason that this architecture must be submitted
> to OpenWrt under the terms GPL v3+? I would prefer that OpenWrt stick
> to GPL v2 in order to maintain better compatibility with the Linux
> kernel (kernel.org). The kernel is primarily GPL v2 licensed (or
> something FreeBSD-like which is more, not less, permissive). The
> OpenWrt distro has only a few GPL v3 package exceptions, such as
> samba.

This is a quick jump to invalid conclusions, the changes that Alexey is
submitting are to files under scripts/* which are only used during the
build process in this case, and there are no GPLv3 components being
included in the firmware image per-se.

These specific files are used by autotools and friends to detect the
architecture/machine we cross-compile for, and as such as a prerequisite
for supporting an ARC toolchain.

As such, the changes are completely fine, and have no bearing to the
resulting firmware image.

> 
> The OpenWrt core team are doing a good job building a better
> industry-community relationship for OpenWrt, which I think can be a
> win-win for overall project improvement (brings in more developer
> resources, much like kernel development depends on industry
> developers). Introducing more GPL v3 packages makes it problematic for
> certain industry partners to be able to fully collaborate.

Although I do share the same feeling, I think the justification is way
off, GPLv3 does not prevent anybody from contributing, it may just hurt
your distribution model, which is something entirely different.
--
Florian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] update config.guess & config.sub

2015-11-02 Thread Kathy Giori
On Mon, Nov 2, 2015 at 9:40 AM, Alexey Brodkin
 wrote:
> Hi Felix,
>
> On Thu, 2015-07-30 at 11:43 +0300, Alexey Brodkin wrote:
>> These are from today's master branch of:
>> http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree
>>
>> In particular it adds support for ARC architecture plus some more
>> improvements and fixes.
>>
>> This patch is built-tested against NetGear WNDR3800.
>>
>> Signed-off-by: Alexey Brodkin 
>> Cc: Florian Fainelli 
>> Cc: Imre Kaloz 
>> ---
>>  scripts/config.guess | 378 
>> +++
>>  scripts/config.sub   | 150 
>>  2 files changed, 238 insertions(+), 290 deletions(-)
>
> I'm wondering if there're any comments on this one.
> Otherwise please consider applying.
>
> This patch is a prerequisite for ARC port submission I'm going to send out
> shortly.

Alexey,

Is there a particular reason that this architecture must be submitted
to OpenWrt under the terms GPL v3+? I would prefer that OpenWrt stick
to GPL v2 in order to maintain better compatibility with the Linux
kernel (kernel.org). The kernel is primarily GPL v2 licensed (or
something FreeBSD-like which is more, not less, permissive). The
OpenWrt distro has only a few GPL v3 package exceptions, such as
samba.

The OpenWrt core team are doing a good job building a better
industry-community relationship for OpenWrt, which I think can be a
win-win for overall project improvement (brings in more developer
resources, much like kernel development depends on industry
developers). Introducing more GPL v3 packages makes it problematic for
certain industry partners to be able to fully collaborate.

kathy
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] update config.guess config.sub

2015-07-30 Thread Alexey Brodkin
These are from today's master branch of:
http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree

In particular it adds support for ARC architecture plus some more
improvements and fixes.

This patch is built-tested against NetGear WNDR3800.

Signed-off-by: Alexey Brodkin abrod...@synopsys.com
Cc: Florian Fainelli flor...@openwrt.org
Cc: Imre Kaloz ka...@openwrt.org
---
 scripts/config.guess | 378 +++
 scripts/config.sub   | 150 
 2 files changed, 238 insertions(+), 290 deletions(-)

diff --git a/scripts/config.guess b/scripts/config.guess
index d622a44..fddac42 100755
--- a/scripts/config.guess
+++ b/scripts/config.guess
@@ -1,14 +1,12 @@
 #! /bin/sh
 # Attempt to guess a canonical system name.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
-#   2011, 2012 Free Software Foundation, Inc.
+#   Copyright 1992-2015 Free Software Foundation, Inc.
 
-timestamp='2012-02-10'
+timestamp='2015-07-03'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful, but
@@ -22,19 +20,17 @@ timestamp='2012-02-10'
 # As a special exception to the GNU General Public License, if you
 # distribute this file as part of a program that contains a
 # configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner.  Please send patches (context
-# diff format) to config-patc...@gnu.org and include a ChangeLog
-# entry.
+# the same distribution terms that you use for the rest of that
+# program.  This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 (GPLv3).
 #
-# This script attempts to guess a canonical system name similar to
-# config.sub.  If it succeeds, it prints the system name on stdout, and
-# exits with 0.  Otherwise, it exits with 1.
+# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
 #
 # You can get the latest version of this script from:
 # 
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+#
+# Please send patches to config-patc...@gnu.org.
+
 
 me=`echo $0 | sed -e 's,.*/,,'`
 
@@ -54,9 +50,7 @@ version=\
 GNU config.guess ($timestamp)
 
 Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
-Free Software Foundation, Inc.
+Copyright 1992-2015 Free Software Foundation, Inc.
 
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@@ -138,6 +132,27 @@ UNAME_RELEASE=`(uname -r) 2/dev/null` || 
UNAME_RELEASE=unknown
 UNAME_SYSTEM=`(uname -s) 2/dev/null`  || UNAME_SYSTEM=unknown
 UNAME_VERSION=`(uname -v) 2/dev/null` || UNAME_VERSION=unknown
 
+case ${UNAME_SYSTEM} in
+Linux|GNU|GNU/*)
+   # If the system lacks a compiler, then just pick glibc.
+   # We could probably try harder.
+   LIBC=gnu
+
+   eval $set_cc_for_build
+   cat -EOF  $dummy.c
+   #include features.h
+   #if defined(__UCLIBC__)
+   LIBC=uclibc
+   #elif defined(__dietlibc__)
+   LIBC=dietlibc
+   #else
+   LIBC=gnu
+   #endif
+   EOF
+   eval `$CC_FOR_BUILD -E $dummy.c 2/dev/null | grep '^LIBC' | sed 's, 
,,g'`
+   ;;
+esac
+
 # Note: order is significant - the case branches are not exclusive.
 
 case ${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION} in
@@ -153,20 +168,27 @@ case 
${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION} in
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name.  We always set it to unknown.
sysctl=sysctl -n hw.machine_arch
-   UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2/dev/null || \
-   /usr/sbin/$sysctl 2/dev/null || echo unknown)`
+   UNAME_MACHINE_ARCH=`(uname -p 2/dev/null || \
+   /sbin/$sysctl 2/dev/null || \
+   /usr/sbin/$sysctl 2/dev/null || \
+   echo unknown)`
case ${UNAME_MACHINE_ARCH} in
armeb) machine=armeb-unknown ;;
arm*) machine=arm-unknown ;;
sh3el) machine=shl-unknown ;;
sh3eb) machine=sh-unknown ;;
sh5el) machine=sh5le-unknown ;;
+   earmv*)
+   arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 
's,^e\(armv[0-9]\).*$,\1,'`
+   endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 
's,^.*\(eb\)$,\1,p'`
+