[OpenWrt-Devel] [PATCH 1/8] ramips: mt7621-gpio: Move driver to files directory

2018-05-29 Thread Rosen Penev
This will make porting staging changes easier. Signed-off-by: Rosen Penev --- .../files-4.14/drivers/gpio/gpio-mt7621.c | 354 + ...IO-ralink-add-mt7621-gpio-controller.patch | 361 +- 2 files changed, 355 insertions(+), 360 deletions(-) create mode 100644

[OpenWrt-Devel] [PATCH 4/8] staging: mt7621-gpio: avoid use of globals and use platform_data instead

2018-05-29 Thread Rosen Penev
From: Sergio Paracuellos Gpio driver have a some globals which can be avoided just using platform_data in a proper form. This commit adds a new struct mtk_data which includes all of those globals setting them using platform_set_drvdata and devm_gpiochip_add_data functions. With this properly set

[OpenWrt-Devel] [PATCH 5/8] staging: mt7621-gpio: avoid devm_kzalloc() hidden inside declarations and refactor function a bit

2018-05-29 Thread Rosen Penev
From: Sergio Paracuellos Driver probe function includes an allocation using devm_kzalloc which is "hidden" a bit inside the declarations. Extract this to a better place to increase readability. Also because we are allocating zeroed memory 'memset' statement is not needed at all. Condition for che

[OpenWrt-Devel] [PATCH 3/8] staging: mt7621-gpio: replace 'mtk' to use correct one 'mediatek'

2018-05-29 Thread Rosen Penev
From: Sergio Paracuellos Gpio driver is using mtk and there is already 'mediatek' binding defined for this maker. Update driver to use it instead the custom one 'mtk'. Signed-off-by: Sergio Paracuellos Reviewed-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- target/linux/ramips/dts/mt762

[OpenWrt-Devel] [PATCH 2/8] ramips: mt7621-gpio: Sync staging cleanup commits

2018-05-29 Thread Rosen Penev
remove redundant owner assignments of drivers mt7621: make symbol gc_map static Include the right header prefer unsigned int to bare unsigned fix some warnings because of lines exceeded 80 characters add SPDX identifier Signed-off-by: Rosen Penev --- .../files-4.14/drivers/gpio/gpio-mt7621.c

[OpenWrt-Devel] [PATCH 8/8] staging: mt7621-dts: add interrupt device tree nodes for the gpio controller

2018-05-29 Thread Rosen Penev
From: Sergio Paracuellos The GPIO controller of mt7621 can receive interrupts on any of the GPIOs, either edge or level. It then interrupts the CPU using GIC INT12. Update device tree accordly. Signed-off-by: Sergio Paracuellos Reviewed-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- tar

[OpenWrt-Devel] [PATCH 6/8] staging: mt7621-gpio: use ternary operator in return in mediatek_gpio_get_direction

2018-05-29 Thread Rosen Penev
From: Sergio Paracuellos This commits replaces if statement and two returns in favour of a only one return using a ternary operator. Signed-off-by: Sergio Paracuellos Reviewed-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- target/linux/ramips/files-4.14/drivers/gpio/gpio-mt7621.c | 5 +-

Re: [OpenWrt-Devel] [PATCH v2 0/4] openssl 1.1.0 patch set

2018-05-30 Thread Rosen Penev
On Wed, May 30, 2018 at 7:19 PM, Eneas U de Queiroz via openwrt-devel wrote: > The sender domain has a DMARC Reject/Quarantine policy which disallows > sending mailing list messages using the original "From" header. > > To mitigate this problem, the original message has been wrapped > automaticall

Re: [OpenWrt-Devel] [PATCH v2 3/4] adb: added patch for openssl 1.1.0 compatibility

2018-05-30 Thread Rosen Penev
On Wed, May 30, 2018 at 7:20 PM, Eneas U de Queiroz via openwrt-devel wrote: > The sender domain has a DMARC Reject/Quarantine policy which disallows > sending mailing list messages using the original "From" header. > > To mitigate this problem, the original message has been wrapped > automaticall

Re: [OpenWrt-Devel] [PATCH v2 4/4] ustream-ssl: openssl-1.1 compatibility

2018-05-30 Thread Rosen Penev
On Wed, May 30, 2018 at 7:20 PM, Eneas U de Queiroz via openwrt-devel wrote: > The sender domain has a DMARC Reject/Quarantine policy which disallows > sending mailing list messages using the original "From" header. > > To mitigate this problem, the original message has been wrapped > automaticall

Re: [OpenWrt-Devel] [PATCH 1/2] ramips: mt7621: fix pcie related warnings in mt7621.dtsi

2018-05-30 Thread Rosen Penev
On Tue, May 29, 2018 at 11:35 PM, Rosen Penev wrote: > List of warnings: > > Node /pcie@1e14/pcie0 node name is not "pci" or "pcie" > Node /pcie@1e14/pcie0 missing ranges for PCI bridge (or not a bridge) > Node /pcie@1e14/pcie0 missing bus-range f

Re: [OpenWrt-Devel] [PATCH] ramips: Fix WiFi after 5f7396ebef09b224edf08b0bda113613a42f0928

2018-05-31 Thread Rosen Penev
On Thu, May 31, 2018 at 10:02 PM, Felix Fietkau wrote: > On 2018-05-29 20:03, Rosen Penev wrote: >> That commit exposed a bug in the DTS files used by mt7621 where the wrong >> reg value for pcie1 (and potentially pcie2) was being used. This was >> causing WiFi failures fo

Re: [OpenWrt-Devel] ipq806x toolchain not building on Fedora 28.

2018-06-06 Thread Rosen Penev
On Wed, Jun 6, 2018 at 12:46 PM, wrote: > No idea if anyone else is getting this error. False alarm. It was due to the musl 1.1.20 prerelease patch. > > # Now that we have built all the objects, we need to copy > # them back to the GCC directory. Too many things (other > # in-tree libraries, and

[OpenWrt-Devel] [PATCH 2/4] gdb: Update to 8.1

2018-06-06 Thread Rosen Penev
Tested on Turris Omnia (mvebu). Signed-off-by: Rosen Penev --- package/devel/gdb/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/devel/gdb/Makefile b/package/devel/gdb/Makefile index 4cf2aaa87f..e38d1c4309 100644 --- a/package/devel/gdb/Makefile +++ b

[OpenWrt-Devel] [PATCH 3/4] iperf: Update to 2.0.11

2018-06-06 Thread Rosen Penev
Tested on Turris Omnia (mvebu). Signed-off-by: Rosen Penev --- package/network/utils/iperf/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/utils/iperf/Makefile b/package/network/utils/iperf/Makefile index 2f420a2e26..606ba218de 100644 --- a

[OpenWrt-Devel] [PATCH 1/4] strace: Update to 4.22

2018-06-06 Thread Rosen Penev
SourceForge is deprecated according to upstream, so switch to main site for downloads. Tested on Turris Omnia (mvebu). Signed-off-by: Rosen Penev --- package/devel/strace/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/devel/strace/Makefile b/package

[OpenWrt-Devel] [PATCH 4/4] ethtool: Update to 4.16

2018-06-06 Thread Rosen Penev
Tested on Turris Omnia (mvebu). Signed-off-by: Rosen Penev --- package/network/utils/ethtool/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/utils/ethtool/Makefile b/package/network/utils/ethtool/Makefile index b378ce2af9..0d85380ae4 100644

[OpenWrt-Devel] [PATCH] ipq806x: Limit NR_CPUS to 2

2018-06-06 Thread Rosen Penev
ipq806x is all dual core processors. ipq807x is quad core. Removes this from dmesg: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 Signed-off-by: Rosen Penev --- target/linux/ipq806x/config-4.14 | 2 +- 1 file changed, 1

[OpenWrt-Devel] [PATCH] ramips: mt7621: Fix some cosmetic DTC warnings

2018-06-07 Thread Rosen Penev
a bridge) Node /pcie@1e14/pcie2 missing bus-range for PCI bridge Signed-off-by: Rosen Penev --- target/linux/ramips/dts/mt7621.dtsi | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts

[OpenWrt-Devel] [PATCH] ramips: mmc: Add back some non-mt7621 code that staging removed

2018-06-07 Thread Rosen Penev
This reverts commit 8a570921b5ba49a2d3824f1220e4c53809063468. This seems to have been accidentally reverted. This fixes mt7620 and mt7628. Signed-off-by: Rosen Penev --- .../files-4.14/drivers/mmc/host/mtk-mmc/sd.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion

Re: [OpenWrt-Devel] [PATCH] ramips: mt7621: Fix some cosmetic DTC warnings

2018-06-07 Thread Rosen Penev
On Thu, Jun 7, 2018 at 12:17 PM, Daniel Golle wrote: > On Thu, Jun 07, 2018 at 10:31:23AM -0700, Rosen Penev wrote: >> Node /cpus/cpu@0 has a unit name, but no reg property >> Node /cpus/cpu@1 has a unit name, but no reg property >> Node /cpuintc@0 has a unit name, but no

Re: [OpenWrt-Devel] [PATCH] ramips: mt7621: Fix some cosmetic DTC warnings

2018-06-07 Thread Rosen Penev
On Thu, Jun 7, 2018 at 1:47 PM, Christian Lamparter wrote: > On Thursday, June 7, 2018 7:31:23 PM CEST Rosen Penev wrote: >> device_type = "pci"; > > hm, just a heads-up: "device_type" have been mostly deprecated [0]. > > |The devi

[OpenWrt-Devel] [PATCH v2] ramips: mt7621: Fix some cosmetic DTC warnings

2018-06-07 Thread Rosen Penev
a bridge) Node /pcie@1e14/pcie2 missing bus-range for PCI bridge Signed-off-by: Rosen Penev --- target/linux/ramips/dts/mt7621.dtsi | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621

[OpenWrt-Devel] [PATCH] hostapd: Fix compile with OpenSSL 1.1.0 + no deprecated APIs

2018-06-15 Thread Rosen Penev
Signed-off-by: Rosen Penev --- .../hostapd/patches/500-fix-openssl-11.patch | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 package/network/services/hostapd/patches/500-fix-openssl-11.patch diff --git a/package/network/services/hostapd/patches/500-fix-openssl-11

[OpenWrt-Devel] [PATCH] dropbear: Install to /(s)bin instead of /usr so OpenSSH can coexist

2018-06-16 Thread Rosen Penev
If you run opkg install openssh-client and then remove it, the ssh client symlink that was initially there goes away. This avoids that problem. Signed-off-by: Rosen Penev --- package/network/services/dropbear/Makefile | 18 +- .../services/dropbear/files/dropbear.init

Re: [OpenWrt-Devel] [PATCH v3 0/3] ustream-ssl: support openssl 1.1.0, revised security

2018-06-16 Thread Rosen Penev
Tested-by: Rosen Penev On Fri, Jun 15, 2018 at 9:04 PM, Eneas U de Queiroz via openwrt-devel wrote: > The sender domain has a DMARC Reject/Quarantine policy which disallows > sending mailing list messages using the original "From" header. > > To mitigate this problem, th

Re: [OpenWrt-Devel] [PATCH] dropbear: Install to /(s)bin instead of /usr so OpenSSH can coexist

2018-06-19 Thread Rosen Penev
er patch > > Paul > >> Op 17 jun. 2018, om 05:06 heeft Rosen Penev het volgende >> geschreven: >> >> If you run opkg install openssh-client and then remove it, the ssh client >> symlink that was initially there goes away. This avoids that problem. >

Re: [OpenWrt-Devel] [PATCH 1/3] toolchain/gcc: add GCC 8.1.0

2018-06-21 Thread Rosen Penev
Error while compiling ffmpeg: GNU assembler not found, install/update gas-preprocessor On Thu, Jun 21, 2018 at 8:09 AM wrote: > > From: Syrone Wong > > Changes compared to GCC 7.x > > 001-revert_register_mode_search.patch dropped > > The commit guards comparison via maybe_gt(), while > 001-re

[OpenWrt-Devel] [PATCHv2] dropbear: Install to /(s)bin instead of /usr so OpenSSH can coexist

2018-06-21 Thread Rosen Penev
If you run opkg install openssh-client and then remove it, the ssh client symlink that was initially there goes away. This avoids that problem. Signed-off-by: Rosen Penev --- v2: Fixed new key generation package/network/services/dropbear/Makefile | 18 +- .../services

Re: [OpenWrt-Devel] [PATCH v2] kernel: bump 4.14 to 4.14.51

2018-06-21 Thread Rosen Penev
pplied: > ipq806x/patches-4.14/0035-clk-mux-Split-out-register-accessors-for-reuse.patch > > Compiled-tested-for: lantiq, ramips > Run-tested-on: lantiq BT hh5a, ramips MIR3g > > Signed-off-by: Kevin Darbyshire-Bryant Tested-by: Rosen Penev ethernet speed has returned on the R78

[OpenWrt-Devel] [PATCH] procd: Fix compile error with GCC8

2018-06-21 Thread Rosen Penev
uf, sizeof(fd_buf), "%d", wdt_fd); ^ note: ‘snprintf’ output between 3 and 11 bytes into a destination of size 3 snprintf(fd_buf, sizeof(fd_buf), "%d", wdt_fd); Signed-off-by: Rosen Penev --- watchdog.c | 3 ++- 1 file changed, 2 insertions

[OpenWrt-Devel] [PATCH] firewall3: Fix GCC8 warnings by replacing sprintf with snprintf

2018-06-21 Thread Rosen Penev
uot;, port->port_min, port->port_max); ^~~ note: ‘sprintf’ output between 4 and 17 bytes into a destination of size 13 sprintf(buf, "%u-%u", port->port_min, port->port_max); Signed-off-by: Rosen Penev --- iptables.c | 8 redirects.c | 2 +- 2 files change

Re: [OpenWrt-Devel] [PATCH 1/3] toolchain/gcc: add GCC 8.1.0

2018-06-21 Thread Rosen Penev
t Regards, > Syrone Wong > > > On Fri, Jun 22, 2018 at 2:07 AM, Rosen Penev wrote: > > Error while compiling ffmpeg: > > > > GNU assembler not found, install/update gas-preprocessor > > > > > > On Thu, Jun 21, 2018 at 8:09 AM wrote: > >> > &g

Re: [OpenWrt-Devel] [PATCH 3/3] package: ignore some new errors introduced by GCC 8

2018-06-21 Thread Rosen Penev
On Thu, Jun 21, 2018 at 5:16 PM Syrone Wong wrote: > > Hi, > > I definitely agree we should fix errors, this commit is to bypass > warnings and see if other important components are working well, e.g. > no kernel panic, > busybox is functional, etc. Others can be fixed as the follow-up. It > makes

Re: [OpenWrt-Devel] [PATCH] dropbear: Install to /(s)bin instead of /usr so OpenSSH can coexist

2018-06-22 Thread Rosen Penev
On Fri, Jun 22, 2018 at 1:53 AM Yousong Zhou wrote: > > On Sun, 17 Jun 2018 at 11:07, Rosen Penev wrote: > > > > If you run opkg install openssh-client and then remove it, the ssh client > > symlink that was initially there goes away. This avoids that problem. >

[OpenWrt-Devel] [PATCH] staging: mt7621-dts: correct various clock frequencies.

2018-06-23 Thread Rosen Penev
From: NeilBrown The MT7621 documentation says that the sys clock - also known as OCP clock for the Open Core Protocol - can be configured to 1/3 or 1/4 of the CPU clock. Testing on my hardware, using the fact that the SPI clock is based on the OCP clock and measuring transfer rates, shows a clock

[OpenWrt-Devel] [PATCH] ramips: ethernet: Switch to eth_hw_addr_random

2018-06-29 Thread Rosen Penev
This automatically sets addr_assign_type to NET_ADDR_RANDOM. Based on upstream Mediatek driver change. Signed-off-by: Rosen Penev --- .../files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ramips/files

Re: [OpenWrt-Devel] [PATCH] toolchain: Replace YASM with NASM

2018-06-30 Thread Rosen Penev
ckages > which explicitly use an external assembler so I feel comfortable with > replacing the assembler instead of adding another. > > After this patch is merged, the PR for these packages on Github > https://github.com/openwrt/packages/pull/6383 > needs to be merged. > >

Re: [OpenWrt-Devel] Q: musl: ether_aton() behaves differently than in glibc

2018-06-30 Thread Rosen Penev
On Wed, Jun 27, 2018 at 7:55 AM Zefir Kurtisi wrote: > > Hi, > > I found a proprietary package stopped working after moving from glibc to musl > and > ended up identifying a difference in processing of ether_aton(). > > In musl, the ether_addr string is expected to be NULL terminated (see > https

[OpenWrt-Devel] [PATCH] usbutils: Switch to Fedora usbutils

2018-06-30 Thread Rosen Penev
The Gentoo GitHub mirror went down. One benefit of Fedora's usb.ids file is that it's versioned. Signed-off-by: Rosen Penev --- package/utils/usbutils/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/utils/usbutils/Makefile b/package/util

[OpenWrt-Devel] [PATCH] samba36: Disable external libtdb and libtevent

2018-06-30 Thread Rosen Penev
This was causing issues recently as samba36 is not API compatible with the libtdb in the packages repo. It shouldn't be using it anyway. Nor tevent. Signed-off-by: Rosen Penev --- package/network/services/samba36/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --

[OpenWrt-Devel] [PATCH 3/5] ramips: ethernet: Use lightweight locking in two places

2018-07-04 Thread Rosen Penev
Slightly more efficient. Backport of: e3e9652a43207561eaec6085a8272fe11b283286 Signed-off-by: Rosen Penev --- .../drivers/net/ethernet/mediatek/mtk_eth_soc.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/target/linux/ramips/files-4.14/drivers/net

[OpenWrt-Devel] [PATCH 1/5] ramips: ethernet: Switch to of_device_get_match_data

2018-07-04 Thread Rosen Penev
Slight cleanup and avoids a temporary variable. Based on upstream commit. Signed-off-by: Rosen Penev --- .../files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c| 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet

[OpenWrt-Devel] [PATCH 5/5] net: ethernet: mediatek: enhance with avoiding superfluous assignment inside mtk_get_ethtool_stats

2018-07-04 Thread Rosen Penev
From: Sean Wang data_src is unchanged inside the loop, so this patch moves the assignment to outside the loop to avoid unnecessarily assignment Signed-off-by: Sean Wang Signed-off-by: David S. Miller --- .../ramips/files-4.14/drivers/net/ethernet/mediatek/ethtool.c | 3 ++- 1 file changed, 2

[OpenWrt-Devel] [PATCH 2/5] net: ethernet: mediatek: use devm_mdiobus_alloc instead of mdiobus_alloc inside mtk_mdio_init

2018-07-04 Thread Rosen Penev
From: Sean Wang a lot of parts in the driver uses devm_* APIs to gain benefits from the device resource management, so devm_mdiobus_alloc is also used instead of mdiobus_alloc to have more elegant code flow. Using common code provided by the devm_* helps to 1) have simplified the code flow as [1

[OpenWrt-Devel] [PATCH 4/5] net: ethernet: mediatek: fix error handling inside mtk_mdio_init

2018-07-04 Thread Rosen Penev
From: Sean Wang Return -ENODEV if the MDIO bus is disabled in the device tree. Signed-off-by: Sean Wang Acked-by: John Crispin Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- .../ramips/files-4.14/drivers/net/ethernet/mediatek/mdio.c | 2 +- 1 file changed, 1 insertion(+),

Re: [OpenWrt-Devel] [PATCH] ca-certificates: ca-bundle: add symlink for openssl default setting

2018-07-07 Thread Rosen Penev
On Sat, Jul 7, 2018 at 4:14 PM Daniel Dickinson wrote: > > On 2018-07-05 06:51 AM, Yousong Zhou wrote: > > OpenSSL defaults X509_CERT_FILE to /etc/ssl/cert.pem. This change is > > needed for wget-ssl and possibly others to work seamlessly with fresh > > ca-bundle installation > > Out of curiosity

[OpenWrt-Devel] [PATCH] f2fs-tools: Update to 1.11.0

2018-07-16 Thread Rosen Penev
Tested on ipq806x. Signed-off-by: Rosen Penev --- package/utils/f2fs-tools/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/utils/f2fs-tools/Makefile b/package/utils/f2fs-tools/Makefile index 391eb61b89..659b3d244c 100644 --- a/package/utils/f2fs-tools

[OpenWrt-Devel] [PATCH] ipq806x: dts: Remove device_type = "ethernet-phy"

2018-07-16 Thread Rosen Penev
device_type is deprecated. Upstream doesn't seem to like it either. Signed-off-by: Rosen Penev --- .../files-4.14/arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 2 -- .../files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts | 2 -- .../files-4.14/arch/arm/boot/dts/qcom-ipq8064-d780

Re: [OpenWrt-Devel] [PATCH] hostapd: Fix compile with OpenSSL 1.1.0 + no deprecated APIs

2018-07-28 Thread Rosen Penev
On Fri, Jul 27, 2018 at 7:46 AM Felix Fietkau wrote: > > On 2018-06-16 03:40, Rosen Penev wrote: > > Signed-off-by: Rosen Penev > Did you send this patch upstream? http://lists.infradead.org/pipermail/hostap/2018-July/038710.html I'm not sure if that's the

[OpenWrt-Devel] [PATCH] libjson-c: Update package URL

2018-07-29 Thread Rosen Penev
Found through UScan. Signed-off-by: Rosen Penev --- package/libs/libjson-c/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/libs/libjson-c/Makefile b/package/libs/libjson-c/Makefile index a9a177e5a2..fd785cdb5e 100644 --- a/package/libs/libjson-c/Makefile

[OpenWrt-Devel] [PATCH] thc-ipv6: Update URLs

2018-07-29 Thread Rosen Penev
Development has moved to GitHub. Found using UScan. Signed-off-by: Rosen Penev --- package/network/ipv6/thc-ipv6/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/ipv6/thc-ipv6/Makefile b/package/network/ipv6/thc-ipv6/Makefile index df3a67c23b

[OpenWrt-Devel] [PATCH] admswconfig: Remove dead URL + HTTPS

2018-07-29 Thread Rosen Penev
Found using uscan. Signed-off-by: Rosen Penev --- package/utils/admswconfig/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/utils/admswconfig/Makefile b/package/utils/admswconfig/Makefile index 0524949dde..b2a163248a 100644 --- a/package/utils/admswconfig

[OpenWrt-Devel] [PATCH] elfutils: Add host build

2019-09-05 Thread Rosen Penev
Needed for glib2 host build: gresource-tool.c:32:20: fatal error: libelf.h: No such file or directory #include Changed PKG_LICENSE to the SPDX version. Switched build dependency for argp-standalone to !USE_GLIBC. argp is a glibc extension. Treat it as such. Signed-off-by: Rosen Penev

[OpenWrt-Devel] [PATCHv2] elfutils: Add host build

2019-09-05 Thread Rosen Penev
es not fix the error. Signed-off-by: Rosen Penev --- v2: Fixed compilation of host build with newer GCC. package/libs/elfutils/Makefile | 12 +++- package/libs/elfutils/patches/100-musl-compat.patch | 13 ++--- 2 files changed, 9 insertions(+), 16 deletions(-)

Re: [OpenWrt-Devel] Compilation error switch to pyhon 3

2019-09-14 Thread Rosen Penev
On Sat, Jul 27, 2019 at 4:12 PM Jeff Kletsky wrote: > > > On 7/27/19 3:53 PM, Petr Štetiar wrote: > > Ansuel Smith [2019-07-27 19:46:35]: > > > > Hi, > > > >> I can't currently compile my image and i have this error > >> > >> make[3]: Leaving directory '/home/ansuel/openwrt/tools/libtool' > >> ti

[OpenWrt-Devel] [PATCH] uClibc++: Remove faulty patch

2019-09-16 Thread Rosen Penev
array expansions to avoid re-splitting elements. More: https://github.com/openwrt/packages/pull/9972#discussion_r324878373 Signed-off-by: Rosen Penev --- package/libs/uclibc++/patches/002-quote-fix.patch | 13 - 1 file changed, 13 deletions(-) delete mode 100644 package/libs/uclibc

[OpenWrt-Devel] [PATCHv2] uClibc++: Remove faulty patch

2019-09-19 Thread Rosen Penev
array expansions to avoid re-splitting elements. More: https://github.com/openwrt/packages/pull/9972#discussion_r324878373 Signed-off-by: Rosen Penev --- v2: Increase PKG_RELEASE package/libs/uclibc++/Makefile| 2 +- package/libs/uclibc++/patches/002-quote-fix.patch | 13

Re: [OpenWrt-Devel] [PATCH] kernel: fix hw-crypto detection of qce driver

2019-09-23 Thread Rosen Penev
On Mon, Sep 23, 2019 at 5:28 AM Eneas Queiroz wrote: > > On Fri, Sep 20, 2019 at 5:48 PM Eneas U de Queiroz > wrote: > > > > This adds the CRYPTO_ALG_KERN_DRIVER_ONLY flag to Qualcomm crypto engine > > driver algorithms, so that openssl devcrypto can recognize them as > > hardware-accelerated. >

[OpenWrt-Devel] umdns not compiling with GCC9`

2019-09-24 Thread Rosen Penev
/home/mangix/devstuff/openwrt/build_dir/target-mips_24kc_musl/umdns-2018-01-02-78974417/dns.c: In function 'dns_consume_question': /home/mangix/devstuff/openwrt/build_dir/target-mips_24kc_musl/umdns-2018-01-02-78974417/dns.c:261:2: error: converting a packed 'struct dns_question' pointer (alignment

Re: [OpenWrt-Devel] [PATCH] toolchain/gcc: switch to version 8 by default

2019-09-28 Thread Rosen Penev
On Sat, Sep 28, 2019 at 1:44 PM, Paul Spooren wrote: Main motivation for this commit is the introduction of `-ffile-prefix-map=` which alows reproducible build path. Compiling tested without errors on the following targets: * ath79 * brcm2708 * brcm63xx * ixp4xx * ramips * sunxi * x86 Signed

[OpenWrt-Devel] [PATCH] uClibc++: Fix two bugs

2019-10-03 Thread Rosen Penev
result of the second patch, the pedantic patch can safely be removed. Both patches have been sent upstream. Added -std=c++11 to CFLAGS to guarentee proper inclusion of long long. Fixed up license information according to SPDX. Small cleanups for consistency. Signed-off-by: Rosen Penev

Re: [OpenWrt-Devel] [PATCH] uClibc++: Fix two bugs

2019-10-04 Thread Rosen Penev
On Thu, Oct 3, 2019 at 8:47 PM Rosen Penev wrote: > > The first allows usage of several functions in the std namespace, which > broke compilation of gddrescue specifically with uClibc-ng and uClibc++. > > The second allows usage of long long with normal C++11, which is part of

[OpenWrt-Devel] [PATCHv2] uClibc++: Fix three bugs

2019-10-07 Thread Rosen Penev
according to SPDX. Small cleanups for consistency. Signed-off-by: Rosen Penev --- v2: Added an extra patch that fixes two minor bugs. Updated commit message as the first two patches were upstreamed. package/libs/uclibc++/Makefile| 11 +- .../patches/002-undef-functions.patch

[OpenWrt-Devel] [PATCH 2/8] scripts/patch-specs: add cygwin compatibility

2019-10-07 Thread Rosen Penev
From: Alexey Loukianov Fix patch-specs.sh to also look for "*-cpp.exe" when searching for C preprocessor. Signed-off-by: Alexey Loukianov (Small title edit) Signed-off-by: Rosen Penev --- scripts/patch-specs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scr

[OpenWrt-Devel] [PATCH 4/8] tools/coreutils: add cygwin compatibility

2019-10-07 Thread Rosen Penev
From: Alexey Loukianov Properly handle ".exe" suffix on CYGWIN hosts. Signed-off-by: Alexey Loukianov (rebased) Signed-off-by: Rosen Penev --- tools/coreutils/Makefile | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/coreutils/Makefile b/tools

[OpenWrt-Devel] [PATCH 1/8] ncurses: add cygwin compatibility

2019-10-07 Thread Rosen Penev
From: Alexey Loukianov * Properly handle ".exe" suffix for cygwin. Signed-off-by: Alexey Loukianov (bumped PKG_RELEASE) Signed-off-by: Rosen Penev --- package/libs/ncurses/Makefile | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package/libs/ncurses/

[OpenWrt-Devel] [PATCH 5/8] tools/zlib: add cygwin compatibility

2019-10-07 Thread Rosen Penev
From: Alexey Loukianov Incorporate CYGWIN zlib patches into package. Signed-off-by: Alexey Loukianov (replaced patch with upstream backport) Signed-off-by: Rosen Penev --- tools/zlib/patches/010-cygwin.patch | 37 + 1 file changed, 37 insertions(+) create mode

[OpenWrt-Devel] [PATCH 6/8] tools/firmware-utils: add cygwin compatibility

2019-10-07 Thread Rosen Penev
From: Alexey Loukianov This patches mkheader_gemtek.c to handle endiannes on CYGWIN hosts the same way it is handled on Linux. Signed-off-by: Alexey Loukianov Signed-off-by: Rosen Penev --- tools/firmware-utils/src/mkheader_gemtek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[OpenWrt-Devel] [PATCH 8/8] tools/mtd-utils: add cygwin compatibility

2019-10-07 Thread Rosen Penev
From: Alexey Loukianov * Add blkpg.h linux header (not available under cygwin) and patch types.h to reflect cygwin specifics. * Define __USE_LINUX_IOCTL_DEFS under cygwin. * Properly handle ".exe" suffix in package makefile. Signed-off-by: Alexey Loukianov Signed-off-by: R

[OpenWrt-Devel] [PATCH 7/8] tools/findutils: improve cygwin compatibility

2019-10-07 Thread Rosen Penev
ov Signed-off-by: Rosen Penev --- ...cygwin-env-is-not-included-into-args.patch | 33 +++ 1 file changed, 33 insertions(+) create mode 100644 tools/findutils/patches/900-cygwin-env-is-not-included-into-args.patch diff --git a/tools/findutils/patches/900-cygwin-env-is-not-inc

[OpenWrt-Devel] [PATCH 3/8] tools/dosfstools: Replace iconv patch with upstream submission

2019-10-07 Thread Rosen Penev
It allows more platforms to be able to build it such as Cygwin. This is the same patch currently in the packages repo. Signed-off-by: Rosen Penev --- ..._CHECK_LIB-for-iconv-library-linking.patch | 27 --- tools/dosfstools/patches/010-iconv.patch | 26 ++ 2

[OpenWrt-Devel] [PATCH] toolchain: Simplify libc selection

2019-10-08 Thread Rosen Penev
uClibc-ng is only needed for ARC. Simplify the conditions. Signed-off-by: Rosen Penev --- toolchain/Config.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toolchain/Config.in b/toolchain/Config.in index faff3c8fbb..762f4e10d7 100644 --- a/toolchain/Config.in +++ b

Re: [OpenWrt-Devel] [PATCH urngd 0/4] sync with upstream, fixes and GitLab CI

2019-10-11 Thread Rosen Penev
On Fri, Oct 11, 2019 at 1:42 AM Petr Štetiar wrote: > > Hi, > > this patch series sync jitterentropy-rngd with upstream release v1.1.0 (plus > one additional clang compile fix uncovered by CI) adds initial support for CI > testing and fixes the issues uncovered by this new CI tests. Those CI tests

[OpenWrt-Devel] [PATCH-19.07] uClibc++: Fix three bugs

2019-10-12 Thread Rosen Penev
according to SPDX. Small cleanups for consistency. Signed-off-by: Rosen Penev --- This is a backport of 6ab386c9bc23420816fbcefc84b62cf5438b2c66 designed for 19.07. Saves ~200 bytes. package/libs/uclibc++/Makefile| 11 +- .../patches/002-undef-functions.patch | 35

[OpenWrt-Devel] [PATCH] lua: Fix linking under glibc

2019-10-14 Thread Rosen Penev
Compilation of liblua itself works, but when other packages link against it, the linker starts throwing undefined references to a bunch of math functions in libm. First discovered in a failed attempt to transition a package to uClibc++. Signed-off-by: Rosen Penev --- package/utils/lua/Makefile

Re: [OpenWrt-Devel] [PATCH 1/8] ncurses: add cygwin compatibility

2019-10-16 Thread Rosen Penev
On Tue, Oct 15, 2019 at 1:12 AM Paul Oranje wrote: > > > > > Op 8 okt. 2019, om 14:57 heeft Alberto Bursi > > het volgende geschreven: > > ... > > Yeah it seems these patches are for using the build system with cygwin. I > > think there should be more explanation on why you want that. > > Dear

[OpenWrt-Devel] libstdcpp size

2019-10-16 Thread Rosen Penev
With each new version of OpenWrt, the size of libstdcpp keeps increasing: ar71xx target: 247.5 KB - 15.05 365.0 KB - 17.01 371.6 KB - 18.04 The configure file for libstdcpp lists a dual ABI option that is enabled by default. Maybe this is the reason for the huge jump in size? Unfortunately, I hav

Re: [OpenWrt-Devel] [PATCH] libpcap: build with cmake

2019-10-18 Thread Rosen Penev
On Fri, Oct 18, 2019 at 6:08 AM Yousong Zhou wrote: > > CAN and CAN-USB support related symbols are now handled by general linux > support, see [1] > > InstallDev skips .a file and adds .pc pkgconfig file. > > "-ffunction-sections -fdata-sections" were removed as they not help much > for shared li

Re: [OpenWrt-Devel] [PATCH] libpcap: build with cmake

2019-10-18 Thread Rosen Penev
On Fri, Oct 18, 2019 at 6:08 AM Yousong Zhou wrote: > > CAN and CAN-USB support related symbols are now handled by general linux > support, see [1] > > InstallDev skips .a file and adds .pc pkgconfig file. > > "-ffunction-sections -fdata-sections" were removed as they not help much > for shared li

Re: [OpenWrt-Devel] [PATCH 1/1] build: fix select uClibc

2019-10-20 Thread Rosen Penev
On Sun, Oct 20, 2019 at 3:23 AM 大雄 wrote: > > Hi hauke, > uClibc-ng supported function: getcontext, makecontext, swapcontext, > There are times when we need to use it to deal with the backtrace. > I think it should be free to select. You can select if you enable "Show broken packages

[OpenWrt-Devel] [PATCH] util-linux: Disable utils requiring libpam

2019-10-22 Thread Rosen Penev
When the build system finds libpam, it enables building of these tools, causing linker failures. Explicitly disable them as they are unused. Signed-off-by: Rosen Penev --- package/utils/util-linux/Makefile | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/utils

Re: [OpenWrt-Devel] [PATCH 1/8] ncurses: add cygwin compatibility

2019-10-23 Thread Rosen Penev
On Tue, Oct 22, 2019 at 3:43 AM Petr Štetiar wrote: > > Rosen Penev [2019-10-16 11:36:22]: > > > Some, like the dosfstools are also consistency updates. > > If you're talking about patch 3 of 8 "tools/dosfstools: Replace iconv patch > with > upstrea

Re: [OpenWrt-Devel] [PATCH 1/6] buildsystem: Make PIE ASLR option tristate

2019-10-27 Thread Rosen Penev
On Sun, Oct 27, 2019 at 10:46 AM Hauke Mehrtens wrote: > > This tristate choose allows to select to build only some applications > with PIE enabled. On MIPS binaries are getting about 30% bigger when PIE > is activated for the, which is a huge increase. Some of the size increase can be mitigated w

Re: [OpenWrt-Devel] [PATCH 1/6] buildsystem: Make PIE ASLR option tristate

2019-10-27 Thread Rosen Penev
On Sun, Oct 27, 2019 at 1:32 PM Hauke Mehrtens wrote: > > On 10/27/19 8:05 PM, Rosen Penev wrote: > > On Sun, Oct 27, 2019 at 10:46 AM Hauke Mehrtens wrote: > >> > >> This tristate choose allows to select to build only some applications > >> with PIE enab

Re: [OpenWrt-Devel] [PATCH] ramips: ethernet: fix to interrupt handling

2019-10-29 Thread Rosen Penev
make sure no packets need to > handle then enable interrupt. I took a look at this again. The upstream kernel driver does the same as this patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/ethernet/mediatek/mtk_eth_soc.c?h=v4.14.151#n1189 > >

[OpenWrt-Devel] [PATCHv2 1/2] ramips: ethernet: Fix NAPI weight for non mt7621 devices

2019-10-29 Thread Rosen Penev
My original fix was to make the code do 16 * 4 as 64 is the limit for NAPI weight. However this also reduces the weight for non mt7621 devices. Changed the multiplier to 2 instead. Fixes: dcdc2880b6 Signed-off-by: Rosen Penev --- v2: Added Fixes comment. .../drivers/net/ethernet/mediatek

[OpenWrt-Devel] [PATCHv2 2/2] ramips: ethernet: fix to interrupt handling

2019-10-29 Thread Rosen Penev
s fix it anyway. Signed-off-by: NeilBrown (Note that this matches the upstream driver.) Signed-off-by: Rosen Penev --- v2: Added comment. .../drivers/net/ethernet/mediatek/mtk_eth_soc.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/target/linux/ramips/

Re: [OpenWrt-Devel] [PATCH] rules.mk: remove "$(STAGING_DIR)/include"

2019-11-01 Thread Rosen Penev
On Fri, Nov 1, 2019 at 2:21 AM Jo-Philipp Wich wrote: > > Hi, > > [...] > > > Removing this directory from TARGET_CPPFLAGS will cut down the log noise > > a bit. Not only will CPPFLAGS be shorter, there will be less warnings > > set off by "-Wmissing-include-dirs" (or even failures when paired wit

Re: [OpenWrt-Devel] [PATCH] rules.mk: remove "$(STAGING_DIR)/include"

2019-11-01 Thread Rosen Penev
On Fri, Nov 1, 2019 at 12:21 PM Sebastian Kemper wrote: > > On Fri, Nov 01, 2019 at 12:06:39PM -0700, Rosen Penev wrote: > > Would it also make sense to remove $(STAGING_DIR)/lib ? Locally, it > > seems libpam gets installed there (probably a bug). > > Quoting FHS 3.0

Re: [OpenWrt-Devel] [PATCH 1/4] dnsmasq: Activate LTO

2019-11-01 Thread Rosen Penev
On Fri, Nov 1, 2019 at 1:55 PM Hauke Mehrtens wrote: > > This decreases the binary size when PIE ASLR is activated by 8% on MIPS BE. A small note on LTO: These packages do not generate libraries, but sometimes, LTO messes up dynamic linking (static even more so). For example: https://github.com

Re: [OpenWrt-Devel] [PATCH 2/4] mtd: Activate LTO compile option

2019-11-01 Thread Rosen Penev
On Fri, Nov 1, 2019 at 1:55 PM Hauke Mehrtens wrote: > > This decreases the size of the mtd application by 25% on MIPS BE. > > old: > 20,597 /sbin/mtd > > new: > 16,421 /sbin/mtd > > Signed-off-by: Hauke Mehrtens > --- > package/system/mtd/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 d

[OpenWrt-Devel] [PATCH] libevent2: Fix pkgconfig directories

2019-11-02 Thread Rosen Penev
includedir and libdir are set to /usr/include and /usr/lib . This breaks compilation with packages such as tmux that use pkgconfig to find libevent Also added PKG_LICENSE_FILES. Simplified the InstallDev section by using cmake.mk's default rule. Signed-off-by: Rosen Penev --- package

[OpenWrt-Devel] [PATCH] tools/pkg-config: Replace with pkgconf

2019-11-02 Thread Rosen Penev
pkg-config. For simplicity here, it is renamed to pkg-config.real, as in the original package. Initial results have been positive. As before, pkgconf works as long as the pkg-config files point to the proper paths. Signed-off-by: Rosen Penev --- tools/Makefile

[OpenWrt-Devel] [PATCHv2] tools/pkg-config: Replace with pkgconf

2019-11-02 Thread Rosen Penev
pkg-config. For simplicity here, it is renamed to pkg-config.real, as in the original package. Initial results have been positive. As before, pkgconf works as long as the pkg-config files point to the proper paths. Signed-off-by: Rosen Penev --- v2: Rebased against master tool

[OpenWrt-Devel] [PATCH] nghttp2: Fix pkgconfig file

2019-11-02 Thread Rosen Penev
lib and includedir point to the host, not staging_dir. Note that prefix and exec_prefix is overriden to point to staging_dir. As CMAKE_INSTTALL is passed, switched InstallDev to use cmake.mk's rule. Signed-off-by: Rosen Penev --- package/libs/nghttp2/Makefile | 12 +--- 1 file ch

Re: [OpenWrt-Devel] [PATCH 1/4] dnsmasq: Activate LTO

2019-11-03 Thread Rosen Penev
On Sun, Nov 3, 2019 at 11:23 AM Jonas Gorski wrote: > > On Fri, 1 Nov 2019 at 21:55, Hauke Mehrtens wrote: > > > > This decreases the binary size when PIE ASLR is activated by 8% on MIPS BE. > > > > old: > > 202,020 /usr/sbin/dnsmasq > > > > new: > > 185,676 /usr/sbin/dnsmasq > > Nice reduction.

Re: [OpenWrt-Devel] [PATCH uci 18/18] lua: fix error handling

2019-11-04 Thread Rosen Penev
On Mon, Nov 4, 2019 at 4:40 PM Petr Štetiar wrote: > > scan-build from clang version 9 has reported following issues: Note that CMake has integrated clang-tidy support. It supports all the clang-analyzer stuff and more. > > uci.c:389:3: warning: Value stored to 'err' is never read >

[OpenWrt-Devel] [PATCH] xfsprogs: Fix compilation with newer musl

2019-11-07 Thread Rosen Penev
Backported upstream patch. Signed-off-by: Rosen Penev --- package/utils/xfsprogs/Makefile | 2 +- .../patches/140-copy-file-range.patch | 50 +++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 package/utils/xfsprogs/patches/140-copy

[OpenWrt-Devel] [PATCH] cmake: Install host packages to lib instead of lib64

2019-11-17 Thread Rosen Penev
Several CMake packages such as log4cplus and protobuf(-c) install to lib64 instead of lib on some hosts. This completely breaks rpath linking. Override it globally to avoid fixing each package individually. Signed-off-by: Rosen Penev --- include/cmake.mk | 1 + 1 file changed, 1 insertion

<    1   2   3   4   5   6   7   8   9   10   >