Compare commits

...

19 Commits

Author SHA1 Message Date
Andreas Gnau
410dbe5c00 Update feed [ iopsys ] package [ dectmngr ]
-------------------------------------------------------------------------------
* 31602a48ca2a Makefile: Add -fcommon to CFLAGS
* 90979cf89bec app: ListAccess: sqlite: Ignore false return-local-addr warning
* c774379484a9 app: appcmbs: Fix inconsistent/misleading indentation
* b1694cb4a5fe Fix compilation with 64-bit time_t
* 56435633a6b4 Fix for setting extension_id for handset
-------------------------------------------------------------------------------
commit 31602a48ca2aee60d70a770834021100d4a17e6f
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-28 08:36:08 +0200

    Makefile: Add -fcommon to CFLAGS

    Add -fcommon to CFLAGS. Newer GCC and clang use -fno-common as default.
    Unfortunately, a larger part of third-party code defines variables in
    header-files. Explicitly set -fcommon for now to make the code compile with
    newer compilers. In the long term, the code should be fixed.

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 app/Makefile | 5 +++++
 1 file changed, 5 insertions(+)
-------------------------------------------------------------------------------
commit 90979cf89beccb55eff24519034179fa197182ce
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-28 08:32:23 +0200

    app: ListAccess: sqlite: Ignore false return-local-addr warning

    The vendored copy of sqlite emits a -Wreturn-local-addr in its
    sqlite3SelectNew function. It has been fixed in sqlite 3.33, but this copy
    of sqlite is version 3.8.2 from 2013.  ignore the warning using gcc-pragmas,
    because we know it is not a problem.

    See also: https://www.sqlite.org/src/vinfo/04e1edd8e5821a37

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 app/ListAccess/sqlite3.c | 3 +++
 1 file changed, 3 insertions(+)
-------------------------------------------------------------------------------
commit c774379484a9dbfe8dbdd11218786b7cda715b82
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-28 08:28:47 +0200

    app: appcmbs: Fix inconsistent/misleading indentation

    Fixes warning caused by inconsistent and misleading intentation.

    ./appcmbs/appcmbs.c: In function 'appcmbs_WaitForContainer':
    ./appcmbs/appcmbs.c:348:6: error: this 'if' clause does not guard...
     [-Werror=misleading-indentation]
     348 |      if (g_stSwupSetup.inProgress == false)
         |      ^~
    ./appcmbs/appcmbs.c:351:9: note: ...this statement, but the latter is
     misleadingly indented as if it were guarded by the 'if'
     351 |         while (bo_Run)
         |         ^~~~~

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 app/appcmbs/appcmbs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit b1694cb4a5fe12394238f56a1db8a61441bae946
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-28 08:24:19 +0200

    Fix compilation with 64-bit time_t

    Fix compilation with 64-bit time_t introduced in musl 1.2.0.
    https://musl.libc.org/time64.html

    Most likely, this can also be reproduced using -D_TIME_BITS=64 on
    glibc-based systems.

    * ListAccess/ListsApp.c:882:107: error: format '%ld' expects argument of
     type 'long int', but argument 4 has type 'time_t'
     {aka 'long long int'} [Werror=format=]
    * ListAccess/ListsApp.c:1015:107: error: format '%ld' expects argument
     of type 'long int', but argument 4 has type 'time_t'
     {aka 'long long int'} [Werror=format=]
    * ListAccess/ListsApp.c:1274:107: error: format '%ld' expects argument
     of type 'long int', but argument 4 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]
    * ListAccess/ListsApp.c:1783:107: error: format '%ld' expects argument
     of type 'long int', but argument 4 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]
    * ListAccess/ListsApp.c:2126:107: error: format '%ld' expects argument
     of type 'long int', but argument 4 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]
    * ListAccess/ListsApp.c:2589:107: error: format '%ld' expects argument
     of type 'long int', but argument 4 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]

    * tcx_hostlog.c:478:94: error: format '%ld' expects argument of type
     'long int', but argument 9 has type 'suseconds_t'
     {aka 'long long int'} [-Werror=format=]
    * tcx_hostlog.c:525:94: error: format '%ld' expects argument of type
     'long int', but argument 9 has type 'suseconds_t'
     {aka 'long long int'} [-Werror=format=]

    * tcx_log.c:392:93: error: format '%ld' expects argument of type 'long
     int', but argument 9 has type 'suseconds_t'
     {aka 'long long int'} [-Werror=format=]

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 app/ListAccess/ListsApp.c | 13 +++++++------
 app/tcx_hostlog.c         |  9 +++++----
 app/tcx_log.c             |  5 +++--
 3 files changed, 15 insertions(+), 12 deletions(-)
-------------------------------------------------------------------------------
commit 56435633a6b4f711ccfe7a4a6917b506d71ed3b4
Author: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
Date: 2022-06-24 07:21:16 +0000

    Fix for setting extension_id for handset

Base directory -> /
 app/dect_common.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2022-06-28 08:50:03 +02:00
Andreas Gnau
66f35d5bdc ieee1906: fix commit hash after review changes 2022-06-27 11:03:03 +02:00
Andreas Gnau
8ffc53b1f2 iop: config: Use fw3 (firewall3) and legacy iptables
OpenWrt 22.03 switched to a new nftables-based firewall, fw4. For now,
we would like to stick to legacy iptables and the old fw3 which, for
now, is still supported.

Once functionality has been verified on non-upstream targets such as
Broadcom and Airoha/Econet, we can switch to nftables and fw4.

Unfortunately, luci-app-firewall pulls in fw4, so we need to disable it
for now until we have investigated and resolved that problem.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-06-27 10:45:51 +02:00
Andreas Gnau
babf6be7b6 Update feed [ iopsys ] package [ endptmngr ]
-------------------------------------------------------------------------------
* 20bdf55cd512 Fix compilation with -fno-common
-------------------------------------------------------------------------------
commit 20bdf55cd51274d405899f7cb79792abd3471548
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-27 08:17:55 +0200

    Fix compilation with -fno-common

    Fix compilation with -fno-common which became default in GCC 10 and later
    versions.

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 src/connection.c | 2 ++
 src/connection.h | 2 +-
 src/line.c       | 3 +++
 src/line.h       | 4 ++--
 4 files changed, 8 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2022-06-27 08:22:04 +02:00
Andreas Gnau
9a8ea362f5 Update feed [ iopsys ] package [ libbbfdm ]
-------------------------------------------------------------------------------
* d57982725299 treewide: Fix compilation with 64-bit time_t
-------------------------------------------------------------------------------
commit d5798272529997b95decbefca5ead23d94244922
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-24 05:37:27 +0000

    treewide: Fix compilation with 64-bit time_t

Base directory -> /
 dmtree/tr181/dynamicdns.c | 2 +-
 libbbf_api/dmubus.c       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2022-06-27 08:21:47 +02:00
Andreas Gnau
42320ced3b Revert "iop: config: Use GCC 8 for now"
This reverts commit c440457df9.
2022-06-23 18:13:58 +02:00
Andreas Gnau
fc7ffbc945 map-topology: Add patch to use uloop_timeout_remaining64
Fixes error: 'uloop_timeout_remaining' is deprecated: use
uloop_timeout_remaining64 [-Werror=deprecated-declarations].

For now, deliver this as a patch until we have found a nice
way to support both uloop-versions.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-06-23 18:03:57 +02:00
Andreas Gnau
c442199d98 Update feed [ iopsys ] package [ ieee1905 ]
-------------------------------------------------------------------------------
* 96a575aa896e cmdufrag: Fix compile error due to 64bit time_t
-------------------------------------------------------------------------------
commit 96a575aa896e67530e10072f27de30d74ce3f0d0
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-23 13:16:17 +0200

    cmdufrag: Fix compile error due to 64bit time_t

    Fix compilation with 64-bit time_t introduced in musl 1.2.0.
    https://musl.libc.org/time64.html

    * cmdufrag.c:293:17: error: format '%lu' expects argument of type 'long
     unsigned int', but argument 14 has type 'time_t' {aka 'long long int'}
     [-Werror=format=]

    * cmdufrag.c:293:17: error: format '%lu' expects argument of type 'long
     unsigned int', but argument 15 has type 'suseconds_t' {aka 'long long
     int'} [-Werror=format=]

    * cmdufrag.c:432:43: error: format '%lu' expects argument of type 'long
     unsigned int', but argument 3 has type 'time_t' {aka 'long long int'}
     [-Werror=format=]

    * cmdufrag.c:432:47: error: format '%lu' expects argument of type 'long
     unsigned int', but argument 4 has type 'suseconds_t' {aka 'long long
     int'} [-Werror=format=]

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 src/cmdufrag.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
2022-06-23 16:54:54 +02:00
Andreas Gnau
fe4dab22e9 Update feed [ iopsys ] package [ libbbfdm ]
-------------------------------------------------------------------------------
* 8ff341e2a126 treewide: Fix compilation with 64-bit time_t
-------------------------------------------------------------------------------
commit 8ff341e2a126dfcf55c217fc09425119cbff5e55
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-23 14:48:28 +0200

    treewide: Fix compilation with 64-bit time_t

    Fix compilation with 64-bit time_t introduced in musl 1.2.0.
    https://musl.libc.org/time64.html

    * libbbf_api/dmubus.c:133:79: error: format '%lu' expects argument of
     type 'long unsigned int', but argument 4 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]

    * libbbf_api/dmubus.c:133:84: error: format '%lu' expects argument of
     type 'long unsigned int', but argument 5 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]

    * dmtree/tr181/dynamicdns.c:68:55: error: format '%ld' expects argument
     of type 'long int', but argument 4 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 dmtree/tr181/dynamicdns.c | 2 +-
 libbbf_api/dmubus.c       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2022-06-23 16:54:43 +02:00
Andreas Gnau
2653b7f8c2 ieee1905: Add patch to use uloop_timeout_remaining64
Fixes error: 'uloop_timeout_remaining' is deprecated: use
uloop_timeout_remaining64 [-Werror=deprecated-declarations].

For now, deliver this as a patch until we have found a nice
way to support both uloop-versions.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-06-23 16:51:42 +02:00
Andreas Gnau
cde84ed91f wfadatad: Add patch to use uloop_timeout_remaining64
Fixes error: 'uloop_timeout_remaining' is deprecated: use
uloop_timeout_remaining64 [-Werror=deprecated-declarations].

For now, deliver this as a patch until we have found a nice way to
support both uloop-versions.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-06-23 16:50:50 +02:00
Andreas Gnau
d9a4ce88c0 Revert "Update feed [ iopsys ] package [ wfadatad ]"
This reverts commit 5af20ba7ce.
2022-06-23 16:47:57 +02:00
Andreas Gnau
5af20ba7ce Update feed [ iopsys ] package [ wfadatad ]
-------------------------------------------------------------------------------
* d4b03e7fe288 timer: Use uloop_timeout_remaining64
-------------------------------------------------------------------------------
commit d4b03e7fe288a006965463f74374e9da6e0f829b
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-23 15:18:30 +0200

    timer: Use uloop_timeout_remaining64

    Fixes error: 'uloop_timeout_remaining' is deprecated: use
    uloop_timeout_remaining64 [-Werror=deprecated-declarations].

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 src/timer.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2022-06-23 15:31:11 +02:00
Andreas Gnau
f3088a95f2 Update feed [ iopsys ] package [ libbbfdm ]
-------------------------------------------------------------------------------
* 0b3c0f131517 treewide: Fix compilation with 64-bit time_t
-------------------------------------------------------------------------------
commit 0b3c0f1315174139220efd29311447ba0ff4def6
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-23 14:48:28 +0200

    treewide: Fix compilation with 64-bit time_t

    Fix compilation with 64-bit time_t introduced in musl 1.2.0.
    https://musl.libc.org/time64.html

    * libbbf_api/dmubus.c:133:79: error: format '%lu' expects argument of
     type 'long unsigned int', but argument 4 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]

    * libbbf_api/dmubus.c:133:84: error: format '%lu' expects argument of
     type 'long unsigned int', but argument 5 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]

    * dmtree/tr181/dynamicdns.c:68:55: error: format '%ld' expects argument
     of type 'long int', but argument 4 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 dmtree/tr181/dynamicdns.c | 2 +-
 libbbf_api/dmubus.c       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2022-06-23 15:30:15 +02:00
Andreas Gnau
fe5b7ff230 Update feed [ iopsys ] package [ libbbfdm ]
-------------------------------------------------------------------------------
* 5c880229e307 treewide: Fix compilation with 64-bit time_t
-------------------------------------------------------------------------------
commit 5c880229e30701c4ee72e1fdc385752e5e2c96d6
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-23 14:48:28 +0200

    treewide: Fix compilation with 64-bit time_t

    Fix compilation with 64-bit time_t introduced in musl 1.2.0.
    https://musl.libc.org/time64.html

    * libbbf_api/dmubus.c:133:79: error: format '%lu' expects argument of
     type 'long unsigned int', but argument 4 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]

    * libbbf_api/dmubus.c:133:84: error: format '%lu' expects argument of
     type 'long unsigned int', but argument 5 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]

    * dmtree/tr181/dynamicdns.c:68:55: error: format '%ld' expects argument
     of type 'long int', but argument 4 has type 'time_t'
     {aka 'long long int'} [-Werror=format=]

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 dmtree/tr181/dynamicdns.c | 2 +-
 libbbf_api/dmubus.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2022-06-23 15:03:53 +02:00
Andreas Gnau
a66ee0ffdd Update feed [ iopsys ] package [ ieee1905 ]
-------------------------------------------------------------------------------
* 34eeb30ed57f timer: Use uloop_timeout_remaining64
* 718cff9c3d08 cmdufrag: Fix compile warnings/error due to 64bit time
* c4760b58ae3c clang: fix build warnings
-------------------------------------------------------------------------------
commit 34eeb30ed57f13a4d69b0e7abb97b7f2871f963d
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-23 12:31:21 +0200

    timer: Use uloop_timeout_remaining64

    Fixes error: 'uloop_timeout_remaining' is deprecated: use
    uloop_timeout_remaining64 [-Werror=deprecated-declarations]

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 src/timer.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit 718cff9c3d08fa54b151d1f7662473234c6071e4
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-06-23 13:16:17 +0200

    cmdufrag: Fix compile warnings/error due to 64bit time

    Fix compile warnings/errors introduced by 64-bit time values most probably
    coming from musl-upgrade.

    * cmdufrag.c:293:17: error: format '%lu' expects argument of type 'long
     unsigned int', but argument 14 has type 'time_t' {aka 'long long int'}
     [-Werror=format=]

    * cmdufrag.c:293:17: error: format '%lu' expects argument of type 'long
     unsigned int', but argument 15 has type 'suseconds_t' {aka 'long long
     int'} [-Werror=format=]

    * cmdufrag.c:432:43: error: format '%lu' expects argument of type 'long
     unsigned int', but argument 3 has type 'time_t' {aka 'long long int'}
     [-Werror=format=]

    * cmdufrag.c:432:47: error: format '%lu' expects argument of type 'long
     unsigned int', but argument 4 has type 'suseconds_t' {aka 'long long
     int'} [-Werror=format=]

Base directory -> /
 src/cmdufrag.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit c4760b58ae3ca89914f28aecfddcc5e3e9691769
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2022-06-17 09:33:22 +0200

    clang: fix build warnings

Base directory -> /
 src/cmdu_input.c          |  4 ++--
 src/extensions/map/map2.c |  2 +-
 src/i1905_wsc.c           | 26 +++++++++++++-------------
 3 files changed, 16 insertions(+), 16 deletions(-)
-------------------------------------------------------------------------------
2022-06-23 14:31:35 +02:00
Andreas Gnau
c440457df9 iop: config: Use GCC 8 for now
Use GCC 8 for now, to give us time to fix new warnings when compiling
with GCC 11.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-06-23 13:45:03 +02:00
Andreas Gnau
b9b5f88825 iop: feeds_update: Workaround OpenWrt bug wrt targets
Workaround a bug in the OpenWrt build system that was introduced when
the installed target path had been moved to target/linux/feeds.
Config.in and Makefile from installed targets are not properly included
from the new location. This hack is to be removed once the issues are
fixed.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-06-23 12:39:33 +02:00
Andreas Gnau
88d1b7222b iop: genconfig: Update target paths for OpenWrt 22.03
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2022-06-23 12:39:33 +02:00
11 changed files with 167 additions and 20 deletions

View File

@@ -9,7 +9,7 @@ PKG_VERSION:=6.8.0
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/bbf.git
PKG_SOURCE_VERSION:=3f1d9e6b90a7efe08a3c4aa5323056edb89bc6a7
PKG_SOURCE_VERSION:=d5798272529997b95decbefca5ead23d94244922
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip

View File

@@ -14,7 +14,7 @@ LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dectmngr.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=0b48e92372c737855569c0b4f7966da7b06ec6b1
PKG_SOURCE_VERSION:=31602a48ca2aee60d70a770834021100d4a17e6f
PKG_MIRROR_HASH:=skip
endif

View File

@@ -13,7 +13,7 @@ LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/endptmngr.git
PKG_SOURCE_VERSION:=c099d6b0438f945d91bf3c9718da730a8a52ff27
PKG_SOURCE_VERSION:=20bdf55cd51274d405899f7cb79792abd3471548
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
endif

View File

@@ -10,7 +10,7 @@ PKG_VERSION:=4.9.3
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=3281325085dfdd6d4d181c944daaf4623969a94e
PKG_SOURCE_VERSION:=2ade9696979624031ac2144da24cb41347b0a8d2
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/ieee1905.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
PKG_MIRROR_HASH:=skip

View File

@@ -0,0 +1,43 @@
From 34eeb30ed57f13a4d69b0e7abb97b7f2871f963d Mon Sep 17 00:00:00 2001
From: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: Thu, 23 Jun 2022 12:31:21 +0200
Subject: [PATCH] timer: Use uloop_timeout_remaining64
Fixes error: 'uloop_timeout_remaining' is deprecated: use
uloop_timeout_remaining64 [-Werror=deprecated-declarations]
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
---
src/timer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/timer.c b/src/timer.c
index ce749a2d6ee6..49f86944441f 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -19,6 +19,7 @@
#endif
#include "timer.h"
+#include <stdint.h>
void timer_init(atimer_t *t, void (*function)(atimer_t *))
{
@@ -43,12 +44,11 @@ int timer_del(atimer_t *t)
int timer_pending(atimer_t *t)
{
- int ret;
+ int64_t ret;
struct uloop_timeout *ut = (struct uloop_timeout *)t;
- ret = uloop_timeout_remaining(ut);
+ ret = uloop_timeout_remaining64(ut);
return (ret < 0) ? 0 : 1;
}
-
--
2.36.1

View File

@@ -115,7 +115,7 @@ CONFIG_PACKAGE_xl2tpd=y
CONFIG_PACKAGE_atftp=m
CONFIG_PACKAGE_atftpd=m
CONFIG_PACKAGE_ddns-scripts=y
CONFIG_PACKAGE_miniupnpd=y
CONFIG_PACKAGE_miniupnpd-iptables=y
CONFIG_PACKAGE_mosquitto-client-ssl=y
CONFIG_PACKAGE_mosquitto-ssl=y
CONFIG_PACKAGE_nginx=y
@@ -136,7 +136,7 @@ CONFIG_PACKAGE_ethtool=y
CONFIG_PACKAGE_ip-full=y
CONFIG_PACKAGE_iperf3=y
CONFIG_PACKAGE_ipset=y
CONFIG_PACKAGE_iptables=y
CONFIG_PACKAGE_iptables-legacy=y
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y
CONFIG_PACKAGE_iptables-mod-filter=y
CONFIG_PACKAGE_iptables-mod-ipopt=y
@@ -284,3 +284,10 @@ CONFIG_BUSYBOX_CONFIG_FEATURE_VOLUMEID_SQUASHFS=y
CONFIG_BUSYBOX_CONFIG_FEATURE_VOLUMEID_UBIFS=y
CONFIG_BUSYBOX_CONFIG_TIMEOUT=y
CONFIG_BUSYBOX_CONFIG_NOHUP=y
# Use fw3 iptables-based instead of newer nftables-based fw4
# TODO: for now we cannot build an image with fw3 and luci-app-firewall (i.e. fw3)
# Enabling luci-app-firewall enables fw4
# CONFIG_PACKAGE_luci-app-firewall is not set
CONFIG_PACKAGE_firewall=y
# CONFIG_PACKAGE_firewall4 is not set

View File

@@ -36,6 +36,17 @@ function feeds_update {
./scripts/feeds install -p targets $target
done
# Workaround for bug in 22.03.0-rc4 where installed target path has been
# moved to target/linux/feeds but Config.in and Makefile from installed
# targets are not properly included from the new location.
# This hack is to be removed once the issues are fixed.
# Note that the above block of code might no longer necessary because
# targets no longer need to be installed explicitly.
echo "Working around installed-target-bug"
for f in target/linux/feeds/*; do
ln -vsf "feeds/$(basename "$f")" "target/linux/$(basename "$f")"
done
# install all packages
./scripts/feeds install -a

View File

@@ -13,11 +13,11 @@ function genconfig {
export DEVELOPER=0
target="bogus"
target_config_path=""
brcm63xx_arm="target/linux/iopsys-brcm63xx-arm"
ramips="target/linux/iopsys-ramips"
econet="target/linux/iopsys-econet"
x86="target/linux/iopsys-x86"
armvirt="target/linux/iopsys-armvirt"
brcm63xx_arm="target/linux/feeds/iopsys-brcm63xx-arm"
ramips="target/linux/feeds/iopsys-ramips"
econet="target/linux/feeds/iopsys-econet"
x86="target/linux/feeds/iopsys-x86"
armvirt="target/linux/feeds/iopsys-armvirt"
Red='\033[0;31m' # Red
Color_Off='\033[0m' # Text Reset
@@ -83,8 +83,8 @@ function genconfig {
[ -n "$profile" ] || return
if [ -n "$TARGET" -a -d "./target/linux/$TARGET" ]; then
local targetpath="./target/linux/$TARGET"
if [ -n "$TARGET" -a -d "./target/linux/feeds/$TARGET" ]; then
local targetpath="./target/linux/feeds/$TARGET"
local profiles=
local pfound=0

View File

@@ -12,11 +12,11 @@ function genconfig_min {
export DEVELOPER=0
target="bogus"
target_config_path=""
brcm63xx_arm="target/linux/iopsys-brcm63xx-arm"
ramips="target/linux/iopsys-ramips"
econet="target/linux/iopsys-econet"
x86="target/linux/iopsys-x86"
armvirt="target/linux/iopsys-armvirt"
brcm63xx_arm="target/linux/feeds/iopsys-brcm63xx-arm"
ramips="target/linux/feeds/iopsys-ramips"
econet="target/linux/feeds/iopsys-econet"
x86="target/linux/feeds/iopsys-x86"
armvirt="target/linux/feeds/iopsys-armvirt"
Red='\033[0;31m' # Red
Color_Off='\033[0m' # Text Reset
@@ -82,8 +82,8 @@ function genconfig_min {
[ -n "$profile" ] || return
if [ -n "$TARGET" -a -d "./target/linux/$TARGET" ]; then
local targetpath="./target/linux/$TARGET"
if [ -n "$TARGET" -a -d "./target/linux/feeds/$TARGET" ]; then
local targetpath="./target/linux/feeds/$TARGET"
local profiles=
local pfound=0

View File

@@ -0,0 +1,43 @@
From a0ba4512bbcb68d207dadddd616172072ded0302 Mon Sep 17 00:00:00 2001
From: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: Thu, 23 Jun 2022 17:58:51 +0200
Subject: [PATCH] timer: Use uloop_timeout_remaining64
Fixes error: 'uloop_timeout_remaining' is deprecated: use
uloop_timeout_remaining64 [-Werror=deprecated-declarations].
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
---
src/timer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/timer.c b/src/timer.c
index e6e2f6ceb72a..373f9aa7a76e 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -11,6 +11,7 @@
*/
#include <stdio.h>
+#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
@@ -44,12 +45,11 @@ int timer_del(atimer_t *t)
int timer_pending(atimer_t *t)
{
- int ret;
+ int64_t ret;
struct uloop_timeout *ut = (struct uloop_timeout *)t;
- ret = uloop_timeout_remaining(ut);
+ ret = uloop_timeout_remaining64(ut);
return (ret < 0) ? 0 : 1;
}
-
--
2.36.1

View File

@@ -0,0 +1,43 @@
From d4b03e7fe288a006965463f74374e9da6e0f829b Mon Sep 17 00:00:00 2001
From: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: Thu, 23 Jun 2022 15:18:30 +0200
Subject: [PATCH] timer: Use uloop_timeout_remaining64
Fixes error: 'uloop_timeout_remaining' is deprecated: use
uloop_timeout_remaining64 [-Werror=deprecated-declarations].
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
---
src/timer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/timer.c b/src/timer.c
index e6e2f6ceb72a..373f9aa7a76e 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -11,6 +11,7 @@
*/
#include <stdio.h>
+#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
@@ -44,12 +45,11 @@ int timer_del(atimer_t *t)
int timer_pending(atimer_t *t)
{
- int ret;
+ int64_t ret;
struct uloop_timeout *ut = (struct uloop_timeout *)t;
- ret = uloop_timeout_remaining(ut);
+ ret = uloop_timeout_remaining64(ut);
return (ret < 0) ? 0 : 1;
}
-
--
2.36.1