Commit Graph

96 Commits

Author SHA1 Message Date
Ted Hess
db1e590f6e
tools/mkimage: create .itb file with read-access for group,other not just owner.
This patch will fix the source of 403 errors on these files
from downloads.openwrt.org.

Signed-off-by: Ted Hess <thess@kitschensync.net>
2020-07-24 20:01:12 +08:00
Paul Spooren
cef6808d80
tools/flock: add PKG_{VERSION,RELEASE}
The stored source code of flock contains the version string of version
2.18, reflect that in the Makefile.

Motivation is the tracking of changes in the buildsystem, which requires
versioning of packages.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-07-23 22:45:21 +08:00
Paul Spooren
cfe8c10798
tools/sstrip: add PKG_{VERSION,RELEASE}
Comparing the in tree stored source file of sstrip suggests it's version
2.0[0], reflect that in the Makefile.

Motivation is the tracking of changes in the buildsystem, which requires
versioning of packages.

[0]: df4426a0f0 (diff-d3ba694d91432a068d5d3b36abf8cd0f)

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-07-23 22:45:02 +08:00
Paul Spooren
6430074631
tools/firmware-utils: add PKG_RELEASE
There is no versioning information in the firmware-utils code nor the
Makefile. Consider it as first release by adding PKG_RELEASE.

Motivation is the tracking of changes in the buildsystem, which requires
versioning of packages.

Also update copyright.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-07-23 22:44:43 +08:00
Paul Spooren
5242ffe822
tools/patch-image: add PKG_RELEASE
There is no versioning information in the patch-image code nor the
Makefile. Consider it as first release by adding PKG_RELEASE.

Motivation is the tracking of changes in the buildsystem, which requires
versioning of packages.

Also update copyright.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-07-23 22:44:24 +08:00
Adrian Schmutzler
bc64ff56c5
tools: drop PKG_VERSION for purely local packages
This applies to tools directory what has been done for package/ in
commit 9c170cb92f ("package: drop PKG_VERSION for purely local
packages"):

In the package guidelines, PKG_VERSION is supposed to be used as
"The upstream version number that we're downloading", while
PKG_RELEASE is referred to as "The version of this package Makefile".
Thus, the variables in a strict interpretation provide a clear
distinction between "their" (upstream) version in PKG_VERSION and
"our" (local OpenWrt trunk) version in PKG_RELEASE.

For local (OpenWrt-only) packages, this implies that those will only
need PKG_RELEASE defined, while PKG_VERSION does not apply following
a strict interpretation. While the majority of "our" packages actually
follow that scheme, there are also some that mix both variables or
have one of them defined but keep them at "1".

This is misleading and confusing, which can be observed by the fact
that there typically either one of the variables is never bumped or
the choice of the variable to increase depends on the person doing the
change.

Consequently, this patch aims at clarifying the situation by
consistently using only PKG_RELEASE for "our" packages. For tools/,
only three packages were affected. This fixes two of them, and
leaves the remaining wrt350nv2-builder untouched, as the code there
seems to have some versioning of its own that is treated as upstream
version in PKG_VERSION.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:44:05 +08:00
CN_SZTL
fe5e355670
firmware-utils: sync with upstream source 2020-07-23 01:14:02 +08:00
Petr Štetiar
958e6c4ebf firmware-utils: mkfwimage: fix memcpy and strncpy usage
Firmware is binary blob, so there are barely any NULL terminated strings
expected, so we should probably convert all chars into u8 types, and
after that it's clear, that using strcpy doesn't make sense anymore.

This is rather theoretical stuff, but `uint8_t name[PART_NAME_LENGTH]`
means, that you can supply PART_NAME_LENGTH sized name, not
PART_NAME_LENGTH-1 name when NULL terminated.

Ref: https://github.com/openwrt/openwrt/pull/2274
Fixes: 04cb651376 ("firmware-utils: mkfwimage: fix more errors reported by gcc-6/7/9")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-07-12 11:57:40 +08:00
Andrea Dalla Costa
fa881e1c30 firmware-utils/hcsmakeimage: fix possible memory leak and resource leaks
Add missing calls to `free` for variable `filebuffer`.
Add missing calls to `fclose` for variables `fd` and `fd_out`.

Signed-off-by: Andrea Dalla Costa <andrea@dallacosta.me>
2020-07-09 12:04:37 +08:00
CN_SZTL
dc2d0d9491
squashfskit4: add PKG_RELEASE 2020-06-24 18:27:10 +08:00
AmadeusGhost
4cf0a1154f Merge Lean's source 2020-06-23 18:36:07 +08:00
BoBppy
7915610933
tools: squashfskit4: fix build with GCC10
In order to build squashfskit with GCC10, this backport from upstream is needed.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
[increase PKG_RELEASE]
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2020-06-19 17:12:34 +08:00
BoBppy
d665cad5f2
squashfs: Fix compile with GCC 10
Fixes the following build error with GCC 10:
	/usr/bin/ld: read_fs.o:(.bss+0x0): multiple definition of `swap'; mksquashfs.o:(.bss+0x1b2a88): first defined here
And a compile warning.

Fixes: FS#3104, FS#3119
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 1bbc1aa)
2020-06-19 17:09:24 +08:00
Joseph C. Lehner
116c126633 mkchkimg: use higher version code
This patch changes the version code of the image header
from `1.1.99_0.0.0.0` to `99.99.99_99.99.99.99`. This
is neccessary on some devices where the stock firmware
checks the version field, possibly preventing third-party
firmware from being installed.

Reviewed-by: Thibaut VARÈNE <hacks@slashdirt.org>
Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
2020-06-11 11:58:42 +08:00
AmadeusGhost
50f3cf27ef mtd: sync upstream source code 2020-05-31 20:01:05 +08:00
Matthias Schiffer
7d9f88d92f tools: add zstd
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2020-05-31 19:37:02 +08:00
DENG Qingfang
afce642572 ccache: update to 3.7.9
Update ccache to 3.7.9

Release notes:
https://ccache.dev/releasenotes.html#_ccache_3_7_9

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
2020-05-29 11:42:05 +08:00
Hauke Mehrtens
5d61b8c490
squashfs: Fix compile with GCC 10
Fixes the following build error with GCC 10:
	/usr/bin/ld: read_fs.o:(.bss+0x0): multiple definition of `swap'; mksquashfs.o:(.bss+0x1b2a88): first defined here
And a compile warning.

Fixes: FS#3104, FS#3119
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-05-24 20:43:54 +08:00
Karel Kočí
e18deba60d
tools: add autoconf-archive
Some autotools based build systems are using autoconf-archive scripts
and are expecting them to almost always be available. This is not
required for regular releases as tar balls generated for releases
commonly have existing configure script. This is rather intended to be
used with autotools.mk's autoreconf and in cases it is not always
possible to get release tar ball.

Including this adds little to no overhead in terms of build time as
those are just m4 scripts copied to an appropriate location.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
[fixed From: to match SoB]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-05-23 19:20:29 +08:00
Lucian Cristian
c467605aa0 tools/mkimage: update to 2020.04
also change the download source to https and add a mirror
drop merged patches

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
[Add extra changes to compile on FreeBSD, merge two patches]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-04-27 08:56:26 +08:00
CN_SZTL
1a2210ebc5
ucl: fix CLEAN 2020-04-23 01:44:28 +08:00
Kevin Darbyshire-Bryant
03131b0f5c
tools/e2fsprogs: fix build under macos
macos doesn't define a loff_t type, the native off_t type being 64bit
anyway.

Persuade e2fsprogs to accept off_t instead on macos

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-04-10 20:04:56 +08:00
Daniel Engberg
a31e711872
tools/mm-macros: Update to 1.0.0
Update mm-macros to 1.0.0

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2020-04-10 09:18:12 +08:00
Daniel Engberg
9f34ce163c
tools/xz: Update to 5.2.5
Update xz to 5.2.5
Disable NLS support to be consistent with other tools such as bison, e2fsprogs
and sed.
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2020-04-10 09:17:36 +08:00
Daniel Engberg
3992a705ed
tools/mtools: Update to 4.0.24
Update mtools to 4.0.24

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2020-04-10 09:17:20 +08:00
Daniel Engberg
ec0ce80fd5
tools/findutils: Update to 4.7.0
Update findutils to 4.7.0
Remove patches
Enable pthreads
Disable NLS support to be consistent with other tools such as bison, e2fsprogs
and sed.
Disable selinux support to be consistent with other tools such as sed and tar
Disable rpath as we don't need hardcoded paths

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2020-04-10 09:17:04 +08:00
Daniel Engberg
356c01d484
tools/e2fsprogs: Update to 1.45.6
Update e2fsprogs to 1.45.6

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2020-04-10 09:16:51 +08:00
Rosen Penev
158fd6f4a0
tools/cmake: update to 3.17.0
Remove libressl patches; they are no longer needed as LibreSSl adde
support

Replace qt tests patch with one that disables all of them.

Refresh remaining one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-07 23:15:03 +08:00
lean
a19d43e071 luci-app-ssr-plus: fix v2ray Netflix unlock 2020-03-17 10:42:17 +08:00
CN_SZTL
958f0c71f8
cmake: bump to 3.16.5 2020-03-13 21:15:16 +08:00
CN_SZTL
c964926f52
Revert "tools/pkg-config: Replace with pkgconf"
This reverts commit 71b76cded2.
2020-03-12 03:40:27 +08:00
CN_SZTL
71b76cded2
tools/pkg-config: Replace with pkgconf 2020-03-02 17:54:57 +08:00
CN_SZTL
25cc297914
mkrasimage: fix segmentation fault 2020-03-02 17:53:40 +08:00
CN_SZTL
32af49a7d3
Merge Lean's source 2020-03-01 15:56:30 +08:00
osdu
7a461c6655
upx: fix host build (#3339) 2020-03-01 14:05:09 +08:00
CN_SZTL
e43614e18a
tools/bison: Update to 3.5.1 2020-02-23 15:28:43 +08:00
AmadeusGhost
e5f08410e0
adjust build script (#3235)
* download.pl: add jsDelivr mirror for GitHub and add utsc mirrors

* m520: fix 'hlos' not found

* dependence: add python3

* netfilter: Revert delete support for kernel 4.9

* scons: move to packages feed
2020-02-21 11:55:07 +08:00
CN_SZTL
43ef5343d5
tools/libressl: Update to 3.0.2 2020-02-20 03:04:00 +08:00
CN_SZTL
e0bf90db7e
tools/patchelf: Update to 0.10 2020-02-20 03:03:26 +08:00
CN_SZTL
5db6439ed5
tools/e2fsprogs: Update to 1.45.5 2020-02-20 03:03:08 +08:00
CN_SZTL
ec537eb672
tools/gmp: Remove obsolete options 2020-02-20 03:02:36 +08:00
CN_SZTL
787bfb7467
tools/sed: Update to 4.8 2020-02-20 03:02:22 +08:00
ElmerZhang
b5993c0f11
update PKG_SOURCE_URL of mkimage (#3199) 2020-02-19 18:47:13 +08:00
ElonH
d99da91bbe
upx: fix dependence (#3188)
missing ucl library dependence
reduce error probability on parallel build
2020-02-19 14:53:31 +08:00
ElonH
453c427daf upx: fix dependence
reduce error on parallel build
2020-02-19 02:01:59 +08:00
CN_SZTL
7e1b4e652a
subconverter/jpcre/rapidjson: add packages 2020-02-18 20:24:18 +08:00
CN_SZTL
07e939f834
tools/jpcre2: add package 2020-02-18 19:01:41 +08:00
CN_SZTL
3195e7e991
Merge Lean's source 2020-02-16 22:02:16 +08:00
coolsnowwolf
9477f7695c fix v2ray mips upx build and update cifsd 2020-02-16 21:42:46 +08:00
CN_SZTL
ab8135ce7d
Merge Lean's source 2020-02-15 15:32:19 +08:00