Commit Graph

7709 Commits

Author SHA1 Message Date
Tianling Shen
68742f308e
binutils/2.37: fix fd regression in bfd
https://sourceware.org/bugzilla/show_bug.cgi?id=28138

Fixes build issue with nodejs: nodejs/node#39452.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit af7ec88ae7)
2021-10-15 18:46:16 +08:00
Petr Štetiar
dc89ad3dfe
scripts/gen_image_generic.sh: fix more shellcheck warnings
Fixes following shellcheck warnings:

 In scripts/gen_image_generic.sh line 20:
 cyl=$(( (KERNELSIZE + ROOTFSSIZE) * 1024 * 1024 / (head * sect * 512)))
 ^-^ SC2034: cyl appears unused. Verify use (or export if used externally).
 --
 In scripts/gen_image_generic.sh line 34:
     [ -n "$PADDING" ] && dd if=/dev/zero of="$OUTPUT" bs=512 seek="$(($ROOTFSOFFSET + $ROOTFSSIZE))" conv=notrunc count="$sect"
                                                                       ^-----------^ SC2004: $/${} is unnecessary on arithmetic variables.
 --
 In scripts/gen_image_generic.sh line 35:
     mkfs.fat -n kernel -C "$OUTPUT.kernel" -S 512 "$(($KERNELSIZE / 1024))"
                                                       ^---------^ SC2004: $/${} is unnecessary on arithmetic variables.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit 92d7cedcad)
2021-10-14 21:25:07 +08:00
Tianling Shen
1c3d1c9816
autocore: pass install path to subfunction
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-14 19:17:01 +08:00
Tianling Shen
04516bb742
autocore-arm: add missing separator
Fixes: #486

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-14 12:19:15 +08:00
Paul Spooren
238f915876 base-files: reduce number of mkdir calls
The `mkdir` commands supports passing multiple arguments to batch create
multiple folders, instead of calling the tool every single time.

If the creation of one of the folders fails, all other folder are still
created and therefore doesn't change the error handling.

Also stop creating `/etc/` explicitly after subfolders of `/etc/` were
already created.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-12 23:56:45 +08:00
Paul Spooren
eefaf9948b base-files: reduce sed calls
The `sed`-script shouldn't be called multiple times, especially not with
the same files.

This commit merges all files together in a single `sed`-script call.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-12 23:56:35 +08:00
Paul Spooren
7218521845 scripts: package-metadata add pkgmanifestjson call
The new `pkgmanifestjson` call prints all package manifest of a feed in
JSON format. This function can be used to print an overview of packages
information used for downstream tooling.

The script is entirely based on Petrs work on dependency visualisation.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-12 23:56:16 +08:00
Paul Spooren
736c627160 scripts: store maintainer in package metadata
The maintainer could be usable for downstream tooling, so start storing
it in the metadata.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-12 23:55:51 +08:00
Ansuel Smith
2969a245ec scripts: handle gcc and linux in dl_cleanup script
Handle gcc and linux with a special regex that set their progname with
their major version. This way every minor version can be cleared. The
build cleanup logic can be tweaked later to clean the entire toolchain
and target dir with a different gcc version.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
[reformat commit message]
Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-12 23:51:27 +08:00
Ansuel Smith
7b630b974e scripts: format dl_cleanup to black format python style
Forma dl_cleanup python script to black style.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2021-10-12 23:51:14 +08:00
Ansuel Smith
6477cae7a1 scripts: add missing regex for dl_cleanup script
Regex xxx-YYYY-MM-DD-GIT_SHASUM was missing. Add the new regex to improve
and better find outdated package. This also fix a bug where some bug were
incorrectly detected as packagename-yyyy-mm-dd instead of packagename due
to them be parsed by the wrong parser

Example:

    openwrt-keyring-2021-02-20-49283916.tar.xz

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
[added example in commit message]
Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-12 23:50:56 +08:00
Rosen Penev
0046ae202e tools/ccache: update to 4.4.2
Refreshed patch.

Disable hiredis backend since it seems to default to it now.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-10-12 23:40:45 +08:00
Rosen Penev
d544c1b0d7 tools/meson: fix usage with SDK
The python path cannot be embedded in the meson binary as it changes
with the SDK.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-10-12 23:40:34 +08:00
Tianling Shen
2349a952c8
autocore: drop useless dependencies
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-11 19:55:38 +08:00
Tianling Shen
7ac6cc2a06
autocore: rewrite autocore script for x86
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-11 19:52:49 +08:00
Tianling Shen
c9b60a8780
autocore: refactor luci
Co-authored-by: Lean <coolsnowwolf@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-11 19:21:14 +08:00
Tianling Shen
cc506708b5
r8168: Update to 8.049.02
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit eddae41f4c)
2021-10-09 11:10:42 +08:00
Rosen Penev
b082f04ae3 tools/meson: update to 0.59.2
Update install procedure based on upstream feedback. Normally, meson is
to be installed with pip. But as pip is not mandated by the build
system, it cannot be used. Upstream provides a nice script to pack meson
automatically.

Moved src/ to files/. No need to copy to BUILD_DIR.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-10-08 23:39:42 +08:00
Stijn Tintel
c60ddab896 kernel: drop kmod-gpio-dev
The GPIO_DEVICE symbol belonged to a custom driver that was removed from
OpenWrt in 2012. The symbol never existed in the upstream kernel.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-10-08 23:39:25 +08:00
Tianling Shen
10a0ee06ee
kernel: bump to 4.9.285, 4.14.249, 4.19.209
Manually rebased:
- generic/pending-4.19/800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-07 14:56:30 +08:00
Tianling Shen
929ec35350
r8125: Update to 9.006.04 version
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 52229a5153)
2021-10-07 11:19:20 +08:00
Tianling Shen
f515495d6a
r8125: Update to 9.006.04
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 47e884d6a3)
2021-10-07 09:19:40 +08:00
Rosen Penev
0b24cf0aef tools/cmake: update to 3.21.3
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-10-06 23:34:58 +08:00
Rosen Penev
3f3da66abe tools/bison: update to 3.8.2
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-10-06 23:34:05 +08:00
Hannu Nyman
8b13396ce6 busybox: update to 1.34.1
Update busybox to version 1.34.1, which is a minor
maintenance release. It contains just the two post-1.34.0
upstream patches that we earlier backported plus a few fixes
to awk.

* Remove the two backported upstream patches that are
  now unnecessary.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-10-06 23:33:25 +08:00
Paul Fertser
28a3a745d2 dnsmasq: add explicit "set:" for client-matching options
Bring the usage in line with the dnsmasq man page and the other options
where set: is mandatory.

No functional change.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2021-10-06 23:33:09 +08:00
AmadeusGhost
88c0c42306 fstools: backport changes to fix build error
Backport: "fstoools: add define for GLOB_ONLYDIR"
Fixes: #478
2021-10-03 23:54:13 +08:00
Paul Spooren
8af77773f4 build: fix which detection on Fedora & MacOS
Fix Fedora 34/35 issue where 'which' detection of 'which' wasn't working
because Fedora use alias and proc

Fixup of fca5ad55d2 prereq-build: fix `which` detection on Fedora

Reported-by: Jani Partanen <rtfm@iki.fi>
Suggest-by: Etienne Champetier <champetier.etienne@gmail.com>
Tested-by: Georgi Valkov <gvalkov@abv.bg>
Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-10-03 23:50:40 +08:00
Tianling Shen
b00e8177c7
autocore: drop project link
Drop this stupid design.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-10-02 11:06:42 +08:00
AmadeusGhost
dd4890c9a4 ramips: add support for JCG JHR-AC945M
Hardware specs:
  SoC: MediaTek MT7621AT
  Flash: SPI NOR 16MB
  RAM: DDR3 256MB
  2.4GHz: MT7615N bgn 4x4
  5GHz: MT7615N nac 4x4
  Ethernet: 1 x WAN and 4 x LAN
  USB: 1 x 3.0
  Button: Reset, WPS

Unsupported chips:
  ATMEGA328P-AU
  HCLTEK HT1621B

Flash instructions:
  Upload factory.bin in stock firmware's upgrade page.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-10-01 10:18:40 +08:00
AmadeusGhost
04de9d5b37 exfat: fix build on kernel 4.9 and 4.14
Fixes: #477
2021-10-01 10:12:43 +08:00
Tianling Shen
85c98e5920
omap: fix name of uboot file
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-30 05:22:40 +08:00
Tianling Shen
e55f67150e
layerscape: drop redudant patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-30 05:17:53 +08:00
Yangbo Lu
0d849b3340
layerscape: drop pause frame support for aquantia phy
An aquantia phy patch which dropped pause frame support was
missing when integrated LSDK-19.03 kernel patches into OpenWrt.
Without this patch, LS1043A 10G port would not work. So apply it.

Patch link
https://source.codeaurora.org/external/qoriq/qoriq-components/
linux/commit/?h=linux-4.14&id=66346b115818365cfaf99d292871b19f0a1d2850

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
(cherry picked from commit 94a1999b4f)
2021-09-30 05:16:21 +08:00
Biwen Li
dc1e2d5ebe
kernel: layerscape: fix compilation error
This fixes a compilation error as follows:
drivers/staging/fsl_qbman/qman_config.c:815:29: error: bitwise comparison
always evaluates to false [-Werror=tautological-compare]
  if ((qman_ip_rev & 0xFF00) == QMAN_REV31) {

Signed-off-by: Biwen Li <biwen.li@nxp.com>
(cherry picked from commit 53b73131e9)
2021-09-30 05:13:41 +08:00
Tianling Shen
94ecc7dfda
treewide: disable 4M devices build
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-09-30 05:06:03 +08:00
Marcin Juszkiewicz
22290dc38d prereq-build: recognize Python 3.10
Fedora 35 contains Python 3.10 as default version. Make use of it.

Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
[fix commit subject]
Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-09-29 23:37:36 +08:00
Tianling Shen
de59892031
Revert "build: enable ccache by default"
It can cause some magic errors with multiple-threads complation.

This reverts commit 9606209e4a.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 5fc7782dd4)
2021-09-29 13:49:30 +08:00
John Audia
9b44af1050 wireguard-tools: bump to 20210914
Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <graysky@archlinux.us>
2021-09-28 23:38:37 +08:00
Felix Fietkau
0d57f8b297 tools/fakeroot: fix build error on macOS
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2021-09-28 23:37:03 +08:00
Hauke Mehrtens
ab7fcb3a8c mac80211: Update to backports-4.19.207-1
Refresh all patches.

This contains fixes for CVE-2020-3702

1. These patches (ath, ath9k, mac80211)  were included in kernel
versions since 4.14.245 and 4.19.205. They fix security vulnerability
CVE-2020-3702 [1] similar to KrØØk, which was found by ESET [2].

Thank you Josef Schlehofer for reporting this problem.

[1] https://nvd.nist.gov/vuln/detail/CVE-2020-3702
[2] https://www.welivesecurity.com/2020/08/06/beyond-kr00k-even-more-wifi-chips-vulnerable-eavesdropping/

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-09-25 00:06:11 +08:00
Hauke Mehrtens
c6bce01efe toolchain/musl: Remove extra format attribute patch
This patch never went upstream so remove it. GCC should already add such
a check to the common functions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-09-25 00:05:48 +08:00
Rosen Penev
845a03fbef bpftools: fix compilation with musl 1.2.x
A definition for __maybe_inline is needed.

Refreshed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-09-25 00:05:35 +08:00
Rosen Penev
c710efe180 toolchain/musl: remove several GNU headers
Remove GLOB_ONLYDIR patch. Only fstools relies on it. fstools has been
fixed separately.

Remove woresize.h file. It seems to be for an old version of GCC.

Remove features.h and glibc-types files. Same as above.

Remove sys/cdefs.h. This is a deprecated header. Patches to fix packages
that use it have already been patched.

Tested with all packages in the base tree. They all compile.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-09-25 00:05:24 +08:00
Rosen Penev
93a955b8a6 toolchain/musl: update to 1.2.2
This release introduces 64-bit time_t, which is needed to avoid the
year 2038 problem.

Remove upstream patches. Refreshed others.

Rebased features.h file based on latest musl.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-09-25 00:05:12 +08:00
Hauke Mehrtens
9eea506ce9 toolchain: musl: refresh patches
Refresh the musl patches

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-09-25 00:05:06 +08:00
Hauke Mehrtens
3eb78a8e0c libtool: Revert "libtool: bump to 2.4.6"
This breaks the package builds using the SDK.
The targets all build fine, but the package builder fails on many
packages. The package builder uses the OpenWrt SDK.

This reverts commit c377d874be.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-09-23 23:56:08 +08:00
Timo Sigurdsson
0a5c569b99 fstools: ensure filesystems are mounted before log service starts
Currently, the fstab service starts after the log service which breaks
the ability to write a persistent log file to a filesystem mounted by
the fstab service. Thus, change the start order of the fstab service so
it starts right before the log service.

Fixes: b131853 ("ubox: update to latest git revision")
Signed-off-by: Timo Sigurdsson <public_timo.s@silentcreek.de>
[set to 11 to be explicitly before log, not only alphabetically, SPDX]
Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-09-23 23:55:48 +08:00
David Lam
57f148ba25 6rd: delete tunnel on interface teardown
Delete tunnel on 6rd interface teardown.
Should solve problem related to tunnel stuck on restart loop
with "Unknown Command" on tunnel restart due to wan connection drop.

This patch is similar to the one written by Ansuel on Aug 2, 2021
but the 6rd teardown produces the same symptoms when the network
service is restarted.

Signed-off-by: David Lam <david@thedavid.net>
2021-09-23 23:53:12 +08:00
Rosen Penev
85bdd87fc4 tools/e2fsprogs: update to 1.46.4
Refresh patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-09-22 23:35:20 +08:00