Re: [OpenWrt-Devel] SDK vs. Toolchain+

2016-01-04 Thread Felix Fietkau
On 2016-01-04 00:32, Daniel Dickinson wrote:
> On 03/01/16 01:01 PM, Felix Fietkau wrote:
>> On 2016-01-03 18:53, Daniel Dickinson wrote:
>>> Hi Felix,
>>>
>>> I think part of the confusion stems from the fact that the current SDK
>>> is not really an SDK but a 'Toolchain+'.  Perhaps the current SDK should
>>> be renamed to clarify that point, and a 'real' SDK created.
>> What's a 'real' SDK as opposed to a 'Toolchain+'?
> 
> Perhaps it's just the way I think of it, but a Toolchain/Toolchain(+) 
> provides everything need to do build on a particular platform, with only 
> minor exceptions of things included with OS in a standard install.  It's 
> binary or equivalent (i.e. no special tools required) pretty much by 
> definition because it's supposed to take care of providing what you need 
> to do a build.  You can talk about the source of a toolchain, but I 
> don't think it's coherent to talk about the source as the toolchain.   A 
> toolchain of some sort is typically required to build an SDK, or to 
> develop new versions of the toolchain (assuming you have the source of 
> the toolchain).
> 
> A 'real' SDK on the other hand allows you to build toolchains and 
> systems from scratch, but has more dependencies (unless it's combination 
> SDK + Toolchain) because the operating system has to provide enough 
> build machinery to build from source (or in the proprietary version, 
> source + binary bits that theoretically can be legitimately packaged 
> that way and/or 'protect' 'special' IP).
> 
> It's kind of a greyish area for definitions because I'm not sure there 
> is a consistent usage of the SDK term in industry.  I think in some 
> cases SDK is used to mean what I think of as Toolchain+ that is used 
> build add-ons for a system, but is platform-specific (and not 
> necessarily with source to port either), whereas in the the open source 
> world I think SDK tends to imply something that lets you build from 
> scratch (with source).
> 
> In any event, regardless of what you call it, the current OpenWrt SDK is 
> of the variety of (mostly) standalone binaries that you use to build 
> packages for openwrt, rather than of a set of sources that can be used 
> to build what you need to build packages and/or the packages themselves 
> (which is what I would consider a 'real' SDK vs the current Toolchain+).
> 
> The two types of things have different goals. the 'real' SDK is meant to 
> provide the ability to develop the system; the toolchain/toolchain+ is 
> meant to bootstrap the process or at least make building stand on it's 
> own for a given platform.
That definition of the term SDK explains your source of confusion.

I'd like to suggest a simpler one, which is in line with the current
naming in OpenWrt:
The SDK is what builds software for an already running system.

It doesn't have to build images, it doesn't have to be used to build
full systems, it's just what you use to compile packages for a
particular existing build of OpenWrt.

This is consistent with many examples listed here:
https://en.wikipedia.org/wiki/Software_development_kit
It also matches existing examples using embedded devices, e.g. Android
SDK, iOS SDK.

>>> The current SDK is useless without ImageBuilder and/or package repositories.
>> Not really. It allows you to build packages that you can put on a
>> running system built from the same release (including out-of-tree kernel
>> modules).
> 
> Ok, I mean useless for building firmware; it certainly isn't useless by 
> any means (I fin it rather useful as a Toolchain+; for SDK there is 
> buildroot + feeds + downloaded packages).
> 
> Does that clarify my thinking a little for you, and do you see, perhaps, 
> the value of the current toolchain+ type of SDK in addition to the kind 
> of SDK I think you're thinking of (That I call a 'real' SDK)?
It clarifies your thinking for me, however I don't see much value in
adopting your terminology, as it still seems to be somewhat convoluted
and non-standard to me.

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


[OpenWrt-Devel] [PATCH] ramips: set mips16 support

2016-01-04 Thread Cristian Morales Vega
Signed-off-by: Cristian Morales Vega 
---
 target/linux/ramips/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/Makefile b/target/linux/ramips/Makefile
index 9d7bb5b..378e2f5 100644
--- a/target/linux/ramips/Makefile
+++ b/target/linux/ramips/Makefile
@@ -10,7 +10,7 @@ ARCH:=mipsel
 BOARD:=ramips
 BOARDNAME:=Ralink RT288x/RT3xxx
 SUBTARGETS:=rt305x mt7620 mt7621 mt7628 mt7688 rt3883 rt288x
-FEATURES:=squashfs gpio
+FEATURES:=squashfs gpio mips16
 MAINTAINER:=John Crispin 
 
 KERNEL_PATCHVER:=4.3
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH RESEND] dnsmasq: add config option for ra_names

2016-01-04 Thread Felix Fietkau
On 2016-01-04 11:21, Dominique Martinet wrote:
> Dominique Martinet wrote on Mon, Jan 04, 2016:
>> I actually hadn't upgraded yet when I sent this, it looks like there has
>> been alot of work towards integrating IPv6 more generally since I had
>> written this patch. I agree we can do better nowadays, I'll take a look
>> at it... Except that I noticed dnsmasq is compiled with no-dhcpv6?
>> 
>> What is the reasoning for it?
> 
> Answering myself as I noticed the dnsmasq variants packaged, not sure
> how to make a change to the init script if and only if said variant is
> in though. Happy to take suggestions.
Actually, the main reason is the fact that odhcpd handles dhcpv6 and
router advertisement. Do you really need dnsmasq to do dhcpv6 for this
to work?

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


Re: [OpenWrt-Devel] [PATCH RESEND] dnsmasq: add config option for ra_names

2016-01-04 Thread Dominique Martinet
Felix Fietkau wrote on Mon, Jan 04, 2016:
> On 2016-01-04 11:21, Dominique Martinet wrote:
> > Dominique Martinet wrote on Mon, Jan 04, 2016:
> >> I actually hadn't upgraded yet when I sent this, it looks like there has
> >> been alot of work towards integrating IPv6 more generally since I had
> >> written this patch. I agree we can do better nowadays, I'll take a look
> >> at it... Except that I noticed dnsmasq is compiled with no-dhcpv6?
> >> 
> >> What is the reasoning for it?
> > 
> > Answering myself as I noticed the dnsmasq variants packaged, not sure
> > how to make a change to the init script if and only if said variant is
> > in though. Happy to take suggestions.
>
> Actually, the main reason is the fact that odhcpd handles dhcpv6 and
> router advertisement. Do you really need dnsmasq to do dhcpv6 for this
> to work?

Oh, hadn't noticed odhcpd running.

The full option for ra-names is as follow:
dhcp-range=lan,2001:910:1115::,ra-names,12h

(where the prefix is mine and 12h is the dhcpv4 lease time)

So yes, it will need dnsmasq to be compiled in with dhcpv6 and I cannot
think of any way to make it not try to handle it at the same time.


Not sure how to make it work at all with this setup though, from a
theorical point of view dnsmasq gets the mac/hostname relation from the
dhcp (v4) lease but only adds the ipv6 to the DNS when a RA is processed
(in dnsmasq logs SLAAC-CONFIRM); I assume if odhcpd handles the ipv6
then dnsmasq will not get/parse these anyway and will not be able to add
the dns automatically...

I'm seeing odhcpd has a "leasetrigger" option and the default script
makes dnsmasq reload the lease file, but ipv6 does not have a 'lease'
concept for RA so that file is empty...

I'm afraid this is going to end in me being selfish and using a 'fuller'
dnsmasq unfortunately, unless you have any idea there :/
Having the dns autoconfiguration for dynamic VMs/hosts/guests through
their dhcp hostname is kind of important to me.

-- 
Dominique Martinet | Asmadeus
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH RESEND] dnsmasq: add config option for ra_names

2016-01-04 Thread Dominique Martinet
Felix Fietkau wrote on Sun, Jan 03, 2016:
> It seems to me that configuring this manually limits its use. Wouldn't
> it be better to integrate it with OpenWrt's prefix delegation support?
> this would make it work with dynamically assigned prefixes.
>
> When the init script runs, it could query netifd for assigned prefixes
> belonging to that particular interface, and use those for ra_names.

I actually hadn't upgraded yet when I sent this, it looks like there has
been alot of work towards integrating IPv6 more generally since I had
written this patch. I agree we can do better nowadays, I'll take a look
at it... Except that I noticed dnsmasq is compiled with no-dhcpv6?

What is the reasoning for it?

This breaks both the patch I've just resubmit (sorry for not checking
beforehand) and these two lines that my config used to have (which are
also used for RDNSS and DNSSL router advertisements, but require dhcpv6
to be parsed I guess):

dhcp-option=lan,option6:dns-server,[::]
dhcp-option=lan,option6:domain-search,lan

Without these, an ipv6-only device can not pickup a dns server and
search domain.


I also have backported the qos ipv6 patch Ilkka Ollakka made a couple of
years ago that hadn't been picked, I'll resend this as soon as I've
confirmed I'm happy with it myself (there's been a change with locking
in iptables and -w doesn't seem to cut it, I'll need to take some time
to debug a bit)

Thanks,
-- 
Dominique Martinet | Asmadeus
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH RESEND] dnsmasq: add config option for ra_names

2016-01-04 Thread Dominique Martinet
Dominique Martinet wrote on Mon, Jan 04, 2016:
> I actually hadn't upgraded yet when I sent this, it looks like there has
> been alot of work towards integrating IPv6 more generally since I had
> written this patch. I agree we can do better nowadays, I'll take a look
> at it... Except that I noticed dnsmasq is compiled with no-dhcpv6?
> 
> What is the reasoning for it?

Answering myself as I noticed the dnsmasq variants packaged, not sure
how to make a change to the init script if and only if said variant is
in though. Happy to take suggestions.

-- 
Dominique Martinet | Asmadeus
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v5] export KERNEL_INITRAMFS_IMAGE

2016-01-04 Thread YounJae Rho
`Build/ubnt-erx-factory-kernel` in `target\linux\ramips\image\Makefile`
references `$(KERNEL_INITRAMFS_IMAGE)`
which is not exported

Signed-off-by: YounJae Rho 

---
 tested with git am in trunk commit 57693a7c8
 include/image.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/image.mk b/include/image.mk
index 5ef8002..62ea0e7 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -454,7 +454,7 @@ define Device/ExportVar
 
 endef
 define Device/Export
-  $(foreach var,$(DEVICE_VARS) DEVICE_NAME KERNEL KERNEL_INITRAMFS,$(call 
Device/ExportVar,$(1),$(var)))
+  $(foreach var,$(DEVICE_VARS) DEVICE_NAME KERNEL KERNEL_INITRAMFS 
KERNEL_INITRAMFS_IMAGE,$(call Device/ExportVar,$(1),$(var)))
   $(1) : FILESYSTEM:=$(2)
 endef
 
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-04 Thread Andy Wong
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#


include $(TOPDIR)/rules.mk


PKG_NAME:=openwrt-dist-luci
PKG_VERSION:=1.3.8
PKG_RELEASE:=1


PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE


PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)


include $(INCLUDE_DIR)/package.mk


define Package/openwrt-dist-luci/Default
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=$(1) LuCI interface
PKGARCH:=all
endef


Package/luci-app-chinadns = $(call Package/openwrt-dist-luci/Default,ChinaDNS)
Package/luci-app-redsocks2 = $(call Package/openwrt-dist-luci/Default,RedSocks2)
Package/luci-app-pdnsd = $(call Package/openwrt-dist-luci/Default,pdnsd)
Package/luci-app-adbyby = $(call Package/openwrt-dist-luci/Default,adbyby)


define Package/openwrt-dist-luci/description
LuCI Support for $(1).
endef


Package/luci-app-chinadns/description = $(call 
Package/openwrt-dist-luci/description,ChinaDNS)
Package/luci-app-redsocks2/description = $(call 
Package/openwrt-dist-luci/description,RedSocks2)
Package/luci-app-pdnsd/description = $(call 
Package/openwrt-dist-luci/description,pdnsd)
Package/luci-app-adbyby/description = $(call 
Package/openwrt-dist-luci/description,adbyby)


define Build/Prepare
endef


define Build/Configure
endef


define Build/Compile
endef


define Package/openwrt-dist-luci/postinst
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
( . /etc/uci-defaults/luci-$(1) ) && rm -f /etc/uci-defaults/luci-$(1)
chmod 755 /etc/init.d/$(1) >/dev/null 2>&1
/etc/init.d/$(1) enable >/dev/null 2>&1
fi
exit 0
endef


Package/luci-app-chinadns/postinst = $(call 
Package/openwrt-dist-luci/postinst,chinadns)
Package/luci-app-redsocks2/postinst = $(call 
Package/openwrt-dist-luci/postinst,redsocks2)
Package/luci-app-pdnsd/postinst = $(call 
Package/openwrt-dist-luci/postinst,pdnsd)
Package/luci-app-adbyby/postinst = $(call 
Package/openwrt-dist-luci/postinst,adbyby)


define Package/openwrt-dist-luci/install
#!/bin/sh
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
$(INSTALL_DATA) ./files/luci/controller/$(2).lua 
$(1)/usr/lib/lua/luci/controller/$(2).lua
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi
$(INSTALL_DATA) ./files/luci/model/cbi/$(2).lua 
$(1)/usr/lib/lua/luci/model/cbi/$(2).lua
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/root/etc/uci-defaults/luci-$(2) 
$(1)/etc/uci-defaults/luci-$(2)
if [ -f "./files/luci/i18n/$(2).zh-cn.lmo" ]; then
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
$(INSTALL_DATA) ./files/luci/i18n/$(2).zh-cn.lmo 
$(1)/usr/lib/lua/luci/i18n
fi
exit 0
endef


Package/luci-app-chinadns/install = $(call 
Package/openwrt-dist-luci/install,$(1),chinadns)
Package/luci-app-redsocks2/install = $(call 
Package/openwrt-dist-luci/install,$(1),redsocks2)
Package/luci-app-pdnsd/install = $(call 
Package/openwrt-dist-luci/install,$(1),pdnsd)
Package/luci-app-adbyby/install = $(call 
Package/openwrt-dist-luci/install,$(1),adbyby)


$(eval $(call BuildPackage,luci-app-chinadns))
$(eval $(call BuildPackage,luci-app-redsocks2))
$(eval $(call BuildPackage,luci-app-pdnsd))
$(eval $(call BuildPackage,luci-app-adbyby))




With the highlighted "if,then" course.This error appear:
Makefile:97: *** missing separator.  Stop.


Line 97 is pointing to
Package/luci-app-chinadns/install = $(call 
Package/openwrt-dist-luci/install,$(1),chinadns)
 
I've looked up the forum.Jow said this error almost always indicates that you 
used leading spaces in a place where a tab was expected.But mine did not use 
spaces.I can't find other reason causing this error.So I came here for faster 
answer than the forum.___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/6] iw: update to version 4.3

2016-01-04 Thread Sven Eckelmann
On Tuesday 22 December 2015 22:27:07 valent.turko...@gmail.com wrote:
> Hi Sven,
> have you managed to enable and use 802.11u (aka Hotspot 2.0) with OpenWrt?

Why are you asking me that (this seems to be completely unrelated to this 
patchset)? I never have done anything with 802.11u and thus cannot provide any 
reliable information.

Kind regards,
Sven

signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/1 v3] package/libs/libtool: rename to libltdl

2016-01-04 Thread Rafał Miłecki
On 4 January 2016 at 19:25, Heinrich Schuchardt  wrote:
> version 3
> In Makefile change PKG_BUILD_DIR only, thx Felix.
> version 2
> Renaming must occur inside Makefile too.

This doesn't have real meaning for repo history.


> CC: Felix Fietkau 
> Signed-off-by: Heinrich Schuchardt 
> ---

There is a nice section for any comments

>  package/libs/libltdl/Makefile  | 53 
> ++
>  .../libs/libltdl/patches/160-passthrough-ssp.patch | 11 +
>  package/libs/libtool/Makefile  | 52 -
>  .../libs/libtool/patches/160-passthrough-ssp.patch | 11 -
>  4 files changed, 64 insertions(+), 63 deletions(-)
>  create mode 100644 package/libs/libltdl/Makefile
>  create mode 100644 package/libs/libltdl/patches/160-passthrough-ssp.patch
>  delete mode 100644 package/libs/libtool/Makefile
>  delete mode 100644 package/libs/libtool/patches/160-passthrough-ssp.patch
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-04 Thread Jo-Philipp Wich
Hi.

Lines in the isntall section must be indented with at least one tab
since they're shell instructions.

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


Re: [OpenWrt-Devel] [PATCH RESEND] dnsmasq: add config option for ra_names

2016-01-04 Thread Kevin Darbyshire-Bryant


On 04/01/16 11:02, Dominique Martinet wrote:
> Felix Fietkau wrote on Mon, Jan 04, 2016:
>> On 2016-01-04 11:21, Dominique Martinet wrote:
>> I'm afraid this is going to end in me being selfish and using a
>> 'fuller' dnsmasq unfortunately, unless you have any idea there :/
>> Having the dns autoconfiguration for dynamic VMs/hosts/guests through
>> their dhcp hostname is kind of important to me. 

Hi Dominique,

I run my openwrt router using dnsmasq for ipv6 (the full dnsmasq
package) purposes, I also disable 'odhcpd' from the build.  Bear in mind
that you can update '/etc/dnsmasq.conf' for your own purposes as I do,
maybe this helps you a little?  e.g

quiet-dhcp   
quiet-dhcp6
quiet-ra 
   
dhcp-range=lan,::2, :::, constructor:br-lan,64, 12h
  
enable-ra
ra-param=br-lan,high,0.


Also, you may be interested in
https://patchwork.ozlabs.org/patch/513484/ which allows easier fixed
host MAC to IPv4 & IPv6 mapping.

Kind regards,

Kevin



smime.p7s
Description: S/MIME Cryptographic Signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-04 Thread Andy Wong
Thanks.I have indented like this:define 
Package/openwrt-dist-luci/install#!/bin/sh   $(INSTALL_DIR) 
$(1)/usr/lib/lua/luci/controller$(INSTALL_DATA) 
./files/luci/controller/$(2).lua $(1)/usr/lib/lua/luci/controller/$(2).lua 
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi $(INSTALL_DATA) 
./files/luci/model/cbi/$(2).lua $(1)/usr/lib/lua/luci/model/cbi/$(2).lua   
$(INSTALL_DIR) $(1)/etc/uci-defaults   $(INSTALL_BIN) 
./files/root/etc/uci-defaults/luci-$(2) $(1)/etc/uci-defaults/luci-$(2)
 if [ -f "./files/luci/i18n/$(2).zh-cn.lmo" ]; then $(INSTALL_DIR) 
$(1)/usr/lib/lua/luci/i18n  $(INSTALL_DATA) 
./files/luci/i18n/$(2).zh-cn.lmo $(1)/usr/lib/lua/luci/i18n
fiendefBut another error 
appears:enwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/openwrt-dist-luci/ipkg-all/luci-app-chinadns/etc/uci-defaults/luci-chinadnsif
 [ -f "./files/luci/i18n/chinadns.zh-cn.lmo" ]; thenbash: -c: line 1: 
syntax error: unexpected end of filemake[2]: *** 
[/home/Openwrt/witi-openwrt/bin/ramips/packages/base/luci-app-chinadns_1.3.8-1_all.ipk]
 Error 1make[2]: Leaving directory 
`/home/Openwrt/witi-openwrt/package/my_package/openwrt-dist-luci'make[1]: 
*** [package/my_package/openwrt-dist-luci/compile] Error 2make[1]: Leaving 
directory `/home/Openwrt/witi-openwrt'make: *** 
[package/openwrt-dist-luci/compile] 错误 2My if,then course is 
intending to find out if *.zh-cn.lmo exist,then install it.
At 2016-01-04 20:20:00, "Jo-Philipp Wich"  wrote:
>Hi.
>
>Lines in the isntall section must be indented with at least one tab
>since they're shell instructions.
>
>~ Jow
>___
>openwrt-devel mailing list
>openwrt-devel@lists.openwrt.org
>https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Board detection for Lamobo R1 fails again

2016-01-04 Thread Zoltan HERPAI

Vasco Steinmetz wrote:

Hi,

with the latest trunk the board.d detection script for the Lamobo Banana
Pi R1 fails again. This time the value is

cat /proc/device-tree/model
Lamobo R1

Sadliy this is the model name before my previous complaint at end of
November, when the dt reported

"Lamobo Banana Pi R1"

Apparently u-bloat had been updated to 2016.01-rc2 since then.
The former u-bloat version was 2015.07.


Maybe someone else with this particular board could verify it and revert
http://git.openwrt.org/?p=openwrt.git;a=commit;h=a56638a303a2fe931273cbff493b485dc0f5f409
then.
  

Hi Vasco,

I'll change this - thanks for bringing it up, I don't have this 
particular board. The "final" name looks to be "Lamobo R1".


Thanks,
Zoltan H
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-04 Thread Luiz Angelo Daros de Luca
Andy,

Make runs one line per time. Make the "if" inline or backslash each newline
(adding semicolon when needed)

Regards

Em seg, 4 de jan de 2016 11:56, Andy Wong  escreveu:

>
> For no misunderstanding.Here is the error now
> http://pastebin.com/t4Rb08kA
>
>
>
>
>
>
> 在 2016-01-04 21:18:14,"Andy Wong"  写道:
> >Thanks.I have indented like this:define 
> >Package/openwrt-dist-luci/install#!/bin/sh$(INSTALL_DIR) 
> >$(1)/usr/lib/lua/luci/controller$(INSTALL_DATA) 
> >./files/luci/controller/$(2).lua 
> >$(1)/usr/lib/lua/luci/controller/$(2).lua $(INSTALL_DIR) 
> >$(1)/usr/lib/lua/luci/model/cbi $(INSTALL_DATA) 
> >./files/luci/model/cbi/$(2).lua 
> >$(1)/usr/lib/lua/luci/model/cbi/$(2).lua   $(INSTALL_DIR) 
> >$(1)/etc/uci-defaults   $(INSTALL_BIN) 
> >./files/root/etc/uci-defaults/luci-$(2) $(1)/etc/uci-defaults/luci-$(2) 
> >if [ -f "./files/luci/i18n/$(2).zh-cn.lmo" ]; then $(INSTALL_DIR) 
> >$(1)/usr/lib/lua/luci/i18n  $(INSTALL_DATA) 
> >./files/luci/i18n/$(2).zh-cn.lmo $(1)/usr/lib/lua/luci/i18n
> >fiendefBut another error 
> >appears:enwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/openwrt-dist-luci/ipkg-all/luci-app-chinadns/etc/uci-defaults/luci-chinadnsif
> > [ -f "./files/luci/i18n/chinadns.zh-cn.lmo" ]; thenbash: -c: line 1: 
> >syntax error: unexpected end of filemake[2]: *** 
> >[/home/Openwrt/witi-openwrt/bin/ramips/packages/base/luci-app-chinadns_1.3.8-1_all.ipk]
> > Error 1make[2]: Leaving directory 
> >`/home/Openwrt/witi-openwrt/package/my_package/openwrt-dist-luci'make[1]:
> > *** [package/my_package/openwrt-dist-luci/compile] Error 2make[1]: 
> >Leaving directory `/home/Openwrt/witi-openwrt'make: *** 
> >[package/openwrt-dist-luci/compile] 错误 2My if,then course is 
> >intending to find out if *.zh-cn.lmo exist,then install it.
> >At 2016-01-04 20:20:00, "Jo-Philipp Wich"  wrote:
> >>Hi.
> >>
> >>Lines in the isntall section must be indented with at least one tab
> >>since they're shell instructions.
> >>
> >>~ Jow
> >>___
> >>openwrt-devel mailing list
> >>openwrt-devel@lists.openwrt.org
> >>https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >___
> >openwrt-devel mailing list
> >openwrt-devel@lists.openwrt.org
> >https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>
>
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
-- 

Luiz Angelo Daros de Luca
luizl...@gmail.com
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Need help with Makefile error *** missing separator

2016-01-04 Thread Andy Wong


For no misunderstanding.Here is the error now
http://pastebin.com/t4Rb08kA









在 2016-01-04 21:18:14,"Andy Wong"  写道:
>Thanks.I have indented like this:define 
>Package/openwrt-dist-luci/install#!/bin/sh  $(INSTALL_DIR) 
>$(1)/usr/lib/lua/luci/controller$(INSTALL_DATA) 
>./files/luci/controller/$(2).lua 
>$(1)/usr/lib/lua/luci/controller/$(2).lua $(INSTALL_DIR) 
>$(1)/usr/lib/lua/luci/model/cbi $(INSTALL_DATA) 
>./files/luci/model/cbi/$(2).lua $(1)/usr/lib/lua/luci/model/cbi/$(2).lua  
> $(INSTALL_DIR) $(1)/etc/uci-defaults   $(INSTALL_BIN) 
>./files/root/etc/uci-defaults/luci-$(2) $(1)/etc/uci-defaults/luci-$(2)   
>  if [ -f "./files/luci/i18n/$(2).zh-cn.lmo" ]; then $(INSTALL_DIR) 
>$(1)/usr/lib/lua/luci/i18n  $(INSTALL_DATA) 
>./files/luci/i18n/$(2).zh-cn.lmo $(1)/usr/lib/lua/luci/i18n
>fiendefBut another error 
>appears:enwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/openwrt-dist-luci/ipkg-all/luci-app-chinadns/etc/uci-defaults/luci-chinadnsif
> [ -f "./files/luci/i18n/chinadns.zh-cn.lmo" ]; thenbash: -c: line 1: 
>syntax error: unexpected end of filemake[2]: *** 
>[/home/Openwrt/witi-openwrt/bin/ramips/packages/base/luci-app-chinadns_1.3.8-1_all.ipk]
> Error 1make[2]: Leaving directory 
>`/home/Openwrt/witi-openwrt/package/my_package/openwrt-dist-luci'make[1]: 
>*** [package/my_package/openwrt-dist-luci/compile] Error 2make[1]: 
>Leaving directory `/home/Openwrt/witi-openwrt'make: *** 
>[package/openwrt-dist-luci/compile] 错误 2My if,then course is 
>intending to find out if *.zh-cn.lmo exist,then install it.
>At 2016-01-04 20:20:00, "Jo-Philipp Wich"  wrote:
>>Hi.
>>
>>Lines in the isntall section must be indented with at least one tab
>>since they're shell instructions.
>>
>>~ Jow
>>___
>>openwrt-devel mailing list
>>openwrt-devel@lists.openwrt.org
>>https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>___
>openwrt-devel mailing list
>openwrt-devel@lists.openwrt.org
>https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] git.nbd.name is down: ubox git not accessible

2016-01-04 Thread John Crispin


On 04/01/2016 14:33, Christian Mehlis wrote:
> Hi *,
> 
> can someone please bring back https://git.nbd.name/ ?
> 
> As the ubox project is hosted on this server only, it is difficult to
> work around this issue.
> 
> Is it possible to move all openwrt basis projects to the openwrt.org git
> server, to have a long standing solution?
> 
> Best
> Christian

worked for me just now. maybe just a small glitch in the matrix ?

John


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


[OpenWrt-Devel] git.nbd.name is down: ubox git not accessible

2016-01-04 Thread Christian Mehlis

Hi *,

can someone please bring back https://git.nbd.name/ ?

As the ubox project is hosted on this server only, it is difficult to 
work around this issue.


Is it possible to move all openwrt basis projects to the openwrt.org git 
server, to have a long standing solution?


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


[OpenWrt-Devel] [PATCH 1/1 v4] package/libs/libtool: rename to libltdl

2016-01-04 Thread Heinrich Schuchardt
Source package libtool is used to package libltdl.
Unfortunately binary libtoolize is missing.
Packaging libtoolize would depend on package file which is in the
packages feed.
Felix Fietkau suggested to rename source libtool to libltdl
and to create a new package libtool in packages.

This patch contains the renaming.

CC: Felix Fietkau 
Signed-off-by: Heinrich Schuchardt 
---
 package/libs/libltdl/Makefile  | 53 ++
 .../libs/libltdl/patches/160-passthrough-ssp.patch | 11 +
 package/libs/libtool/Makefile  | 52 -
 .../libs/libtool/patches/160-passthrough-ssp.patch | 11 -
 4 files changed, 64 insertions(+), 63 deletions(-)
 create mode 100644 package/libs/libltdl/Makefile
 create mode 100644 package/libs/libltdl/patches/160-passthrough-ssp.patch
 delete mode 100644 package/libs/libtool/Makefile
 delete mode 100644 package/libs/libtool/patches/160-passthrough-ssp.patch

diff --git a/package/libs/libltdl/Makefile b/package/libs/libltdl/Makefile
new file mode 100644
index 000..d515be8
--- /dev/null
+++ b/package/libs/libltdl/Makefile
@@ -0,0 +1,53 @@
+#
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libtool
+PKG_VERSION:=2.4
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/libltdl/$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@GNU/libtool
+PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
+
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
+PKG_BUILD_PARALLEL:=0
+
+include $(INCLUDE_DIR)/package.mk
+
+CONFIGURE_PREFIX=$(STAGING_DIR)/host
+export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
+
+define Package/libltdl
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=A generic dynamic object loading library
+  URL:=http://www.gnu.org/software/libtool/
+endef
+
+define Build/InstallDev
+   $(MAKE) -C $(PKG_BUILD_DIR) \
+   bindir="$(2)/bin" \
+   datadir="$(2)/share" \
+   prefix="$(2)" \
+   exec_prefix="$(2)" \
+   install
+   $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
+   mv $(2)/lib/* $(1)/usr/lib/
+   mv $(2)/include/* $(1)/usr/include/
+endef
+
+define Package/libltdl/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libltdl))
diff --git a/package/libs/libltdl/patches/160-passthrough-ssp.patch 
b/package/libs/libltdl/patches/160-passthrough-ssp.patch
new file mode 100644
index 000..6fcbe68
--- /dev/null
+++ b/package/libs/libltdl/patches/160-passthrough-ssp.patch
@@ -0,0 +1,11 @@
+--- a/libltdl/config/ltmain.m4sh
 b/libltdl/config/ltmain.m4sh
+@@ -5051,7 +5051,7 @@ func_mode_link ()
+   # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+   -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+   
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+-  -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
++  -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*)
+ func_quote_for_eval "$arg"
+   arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"
diff --git a/package/libs/libtool/Makefile b/package/libs/libtool/Makefile
deleted file mode 100644
index 8091081..000
--- a/package/libs/libtool/Makefile
+++ /dev/null
@@ -1,52 +0,0 @@
-#
-# Copyright (C) 2006 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=libtool
-PKG_VERSION:=2.4
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=@GNU/libtool
-PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
-
-PKG_LICENSE:=GPL-2.0+
-PKG_LICENSE_FILES:=COPYING
-
-PKG_BUILD_PARALLEL:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-CONFIGURE_PREFIX=$(STAGING_DIR)/host
-export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
-
-define Package/libltdl
-  SECTION:=libs
-  CATEGORY:=Libraries
-  TITLE:=A generic dynamic object loading library
-  URL:=http://www.gnu.org/software/libtool/
-endef
-
-define Build/InstallDev
-   $(MAKE) -C $(PKG_BUILD_DIR) \
-   bindir="$(2)/bin" \
-   datadir="$(2)/share" \
-   prefix="$(2)" \
-   exec_prefix="$(2)" \
-   install
-   $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
-   mv $(2)/lib/* $(1)/usr/lib/
-   mv $(2)/include/* $(1)/usr/include/
-endef
-
-define Package/libltdl/install
-   $(INSTALL_DIR) $(1)/usr/lib
-   $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
-endef
-
-$(eval $(call BuildPackage,libltdl))
diff --git a/package/libs/libtool/patches/160-passthrough-ssp.patch 

Re: [OpenWrt-Devel] git.nbd.name is down: ubox git not accessible

2016-01-04 Thread Felix Fietkau
On 2016-01-04 14:33, Christian Mehlis wrote:
> Hi *,
> 
> can someone please bring back https://git.nbd.name/ ?
fcgiwrap was acting up, I changed the config to deal with that.

> As the ubox project is hosted on this server only, it is difficult to 
> work around this issue.
> 
> Is it possible to move all openwrt basis projects to the openwrt.org git 
> server, to have a long standing solution?
I'm currently working on that.

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


[OpenWrt-Devel] Probably a delay in further updates

2016-01-04 Thread Daniel Dickinson

Hi all,

It'll probably be some time before I get further with the OpenWrt work 
for a few reasons:


1) Personal priorities.
2) Feeling rather discouraged about not having may game back as much as 
I had thought - the number of complaints (and phrasing thereof) about my 
patches combined with a personal complaint about my talking/writing too 
much aren't helping my motivation to make the effort.


Regards,

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


Re: [OpenWrt-Devel] Board detection for Lamobo R1 fails again

2016-01-04 Thread Vasco Steinmetz
Hi Zoltan,

see my other post for the explanation why the identification strings got
messed up (discrepancy between upstream & .diff).

I'll give it a try as soon as I see the commit reverted.


Kind regards,
Vasco
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] ipq806x: add support for TP-Link Archer C2600 to makefiles, configs, scripts and device tree

2016-01-04 Thread John Crispin
Hi,

comments inline

On 04/01/2016 02:16, Josh Bendavid wrote:
> Add initial support for Archer C2600 to Makefiles, profiles, led/network 
> config, and hotplug script.  Together with firmware-utils and mac80211 
> patches this is sufficient to build a working factory image flashable both 
> from stock web ui and bootloader tftp recovery.  Sysupgrade is working as 
> well. Added hotplug script is adapted from existing script for ar71xx which 
> copies wireless calibration data from ART partition in flash to appropriate 
> place in /lib/firmware.  The device tree file is similar to the current ap148 
> dts, with sata and nand removed, and buttons/led's added.
> 
> Working: Wired network, wireless (both bands), power/status/lan/wan/usb led's
> 
> Not working: wireless status led's (these are not controlled through gpio, 
> but rather through the QCA9980 pcie chips).  Also there is no way to set the 
> wan led to orange, which is possible in the stock firmware.  Kernel 4.1 build 
> does not boot currently.
> 
> Not tested: Hardware buttons.
> 
> Signed-off-by: Josh Bendavid 
> 
> 
> ---
>  .../linux/ipq806x/base-files/etc/board.d/01_leds   |   7 +
>  .../ipq806x/base-files/etc/board.d/02_network  |   3 +-
>  .../etc/hotplug.d/firmware/11-ath10k-caldata   |  66 +
>  target/linux/ipq806x/base-files/lib/ipq806x.sh |   3 +
>  .../ipq806x/base-files/lib/upgrade/platform.sh |  34 ++-
>  target/linux/ipq806x/image/Makefile|  24 +-
>  ...qcom-add-TP-Link-Archer-C2600-device-tree.patch | 300 
> +
>  ...qcom-add-TP-Link-Archer-C2600-device-tree.patch | 300 
> +
>  target/linux/ipq806x/profiles/tplink.mk|  20 ++
>  9 files changed, 754 insertions(+), 3 deletions(-)
>  create mode 100644 
> target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
>  create mode 100644 
> target/linux/ipq806x/patches-3.18/711-ARM-qcom-add-TP-Link-Archer-C2600-device-tree.patch
>  create mode 100644 
> target/linux/ipq806x/patches-4.1/711-ARM-qcom-add-TP-Link-Archer-C2600-device-tree.patch
>  create mode 100644 target/linux/ipq806x/profiles/tplink.mk
> 
> diff --git a/target/linux/ipq806x/base-files/etc/board.d/01_leds 
> b/target/linux/ipq806x/base-files/etc/board.d/01_leds
> index 07b5b06..46070ad6 100755
> --- a/target/linux/ipq806x/base-files/etc/board.d/01_leds
> +++ b/target/linux/ipq806x/base-files/etc/board.d/01_leds
> @@ -19,6 +19,13 @@ r7500)
>   ucidef_set_led_default "wps" "WPS" "r7500:white:wps" "0"
>   ucidef_set_led_default "rfkill" "rfkill" "r7500:white:rfkill" "0"
>   ;;
> +c2600)
> + ucidef_set_led_usbdev "usb1" "USB 1" "usb_2:blue" "2-1"
> + ucidef_set_led_usbdev "usb2" "USB 2" "usb_4:blue" "4-1"
> + ucidef_set_led_netdev "wan" "WAN" "wan:blue" "eth0"
> + ucidef_set_led_netdev "lan" "LAN" "lan:blue" "br-lan"
> + ucidef_set_led_default "general" "general" "ledgnr:blue" "1"
> + ;;
> 

alphabetical ordering please


 *)
>   ;;
>  esac
> diff --git a/target/linux/ipq806x/base-files/etc/board.d/02_network 
> b/target/linux/ipq806x/base-files/etc/board.d/02_network
> index 1302a55..9f061e4 100755
> --- a/target/linux/ipq806x/base-files/etc/board.d/02_network
> +++ b/target/linux/ipq806x/base-files/etc/board.d/02_network
> @@ -13,7 +13,8 @@ board=$(ipq806x_board_name)
>  
>  case "$board" in
>  ap148 |\
> -r7500)
> +r7500 |\
> +c2600)


alphabetical ordering please

>   ucidef_add_switch "switch0" \
>   "1:lan" "2:lan" "3:lan" "4:lan" "6@eth1" "5:wan" "0@eth0"
>   ;;
> diff --git 
> a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata 
> b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
> new file mode 100644
> index 000..7a423de
> --- /dev/null
> +++ b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
> @@ -0,0 +1,66 @@

i missed this one before. it should really go into its own patch aswell

> +#!/bin/sh
> +
> +ath10kcal_die() {
> + echo "ath10cal: " "$*"
> + exit 1
> +}
> +
> +ath10kcal_from_file() {
> + local source=$1
> + local offset=$2
> + local count=$3
> +
> + dd if=$source of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 
> 2>/dev/null || \
> + ath10kcal_die "failed to extract calibration data from $source"
> +}
> +
> +ath10kcal_extract() {
> + local part=$1
> + local offset=$2
> + local count=$3
> + local mtd
> +
> + mtd=$(find_mtd_chardev $part)
> + [ -n "$mtd" ] || \
> + ath10kcal_die "no mtd device found for partition $part"
> +
> + dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 
> 2>/dev/null || \
> + ath10kcal_die "failed to extract calibration data from $mtd"
> +}
> +
> +ath10kcal_patch_mac() {
> + local mac=$1
> +
> + [ -z "$mac" ] && return
> +
> + macaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc bs=1 
> 

Re: [OpenWrt-Devel] Probably a delay in further updates

2016-01-04 Thread tapper

Dude don't feel bad at least you tried.
I like the fact you write good emails!

On 04/01/2016 15:01, Daniel Dickinson wrote:

Hi all,

It'll probably be some time before I get further with the OpenWrt work 
for a few reasons:


1) Personal priorities.
2) Feeling rather discouraged about not having may game back as much 
as I had thought - the number of complaints (and phrasing thereof) 
about my patches combined with a personal complaint about my 
talking/writing too much aren't helping my motivation to make the effort.


Regards,

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


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


[OpenWrt-Devel] [PATCH 1/1 v3] package/libs/libtool: rename to libltdl

2016-01-04 Thread Heinrich Schuchardt
Source package libtool is used to package libltdl.
Unfortunately binary libtoolize is missing.
Packaging libtoolize would depend on package file which is in the
packages feed.
Felix Fietkau suggested to rename source libtool to libltdl
and to create a new package libtool in packages.

This patch contains the renaming.

version 3
In Makefile change PKG_BUILD_DIR only, thx Felix.
version 2
Renaming must occur inside Makefile too.

CC: Felix Fietkau 
Signed-off-by: Heinrich Schuchardt 
---
 package/libs/libltdl/Makefile  | 53 ++
 .../libs/libltdl/patches/160-passthrough-ssp.patch | 11 +
 package/libs/libtool/Makefile  | 52 -
 .../libs/libtool/patches/160-passthrough-ssp.patch | 11 -
 4 files changed, 64 insertions(+), 63 deletions(-)
 create mode 100644 package/libs/libltdl/Makefile
 create mode 100644 package/libs/libltdl/patches/160-passthrough-ssp.patch
 delete mode 100644 package/libs/libtool/Makefile
 delete mode 100644 package/libs/libtool/patches/160-passthrough-ssp.patch

diff --git a/package/libs/libltdl/Makefile b/package/libs/libltdl/Makefile
new file mode 100644
index 000..d515be8
--- /dev/null
+++ b/package/libs/libltdl/Makefile
@@ -0,0 +1,53 @@
+#
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libtool
+PKG_VERSION:=2.4
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/libltdl/$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@GNU/libtool
+PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
+
+PKG_LICENSE:=GPL-2.0+
+PKG_LICENSE_FILES:=COPYING
+
+PKG_BUILD_PARALLEL:=0
+
+include $(INCLUDE_DIR)/package.mk
+
+CONFIGURE_PREFIX=$(STAGING_DIR)/host
+export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
+
+define Package/libltdl
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=A generic dynamic object loading library
+  URL:=http://www.gnu.org/software/libtool/
+endef
+
+define Build/InstallDev
+   $(MAKE) -C $(PKG_BUILD_DIR) \
+   bindir="$(2)/bin" \
+   datadir="$(2)/share" \
+   prefix="$(2)" \
+   exec_prefix="$(2)" \
+   install
+   $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
+   mv $(2)/lib/* $(1)/usr/lib/
+   mv $(2)/include/* $(1)/usr/include/
+endef
+
+define Package/libltdl/install
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libltdl))
diff --git a/package/libs/libltdl/patches/160-passthrough-ssp.patch 
b/package/libs/libltdl/patches/160-passthrough-ssp.patch
new file mode 100644
index 000..6fcbe68
--- /dev/null
+++ b/package/libs/libltdl/patches/160-passthrough-ssp.patch
@@ -0,0 +1,11 @@
+--- a/libltdl/config/ltmain.m4sh
 b/libltdl/config/ltmain.m4sh
+@@ -5051,7 +5051,7 @@ func_mode_link ()
+   # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+   -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+   
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+-  -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
++  -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*)
+ func_quote_for_eval "$arg"
+   arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"
diff --git a/package/libs/libtool/Makefile b/package/libs/libtool/Makefile
deleted file mode 100644
index 8091081..000
--- a/package/libs/libtool/Makefile
+++ /dev/null
@@ -1,52 +0,0 @@
-#
-# Copyright (C) 2006 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=libtool
-PKG_VERSION:=2.4
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=@GNU/libtool
-PKG_MD5SUM:=b32b04148ecdd7344abc6fe8bd1bb021
-
-PKG_LICENSE:=GPL-2.0+
-PKG_LICENSE_FILES:=COPYING
-
-PKG_BUILD_PARALLEL:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-CONFIGURE_PREFIX=$(STAGING_DIR)/host
-export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
-
-define Package/libltdl
-  SECTION:=libs
-  CATEGORY:=Libraries
-  TITLE:=A generic dynamic object loading library
-  URL:=http://www.gnu.org/software/libtool/
-endef
-
-define Build/InstallDev
-   $(MAKE) -C $(PKG_BUILD_DIR) \
-   bindir="$(2)/bin" \
-   datadir="$(2)/share" \
-   prefix="$(2)" \
-   exec_prefix="$(2)" \
-   install
-   $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include
-   mv $(2)/lib/* $(1)/usr/lib/
-   mv $(2)/include/* $(1)/usr/include/
-endef
-
-define Package/libltdl/install
-   $(INSTALL_DIR) $(1)/usr/lib
-   $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/
-endef
-
-$(eval