Commit Graph

5434 Commits

Author SHA1 Message Date
lovehackintosh
e19b441cc0
libselinux: sync with upstream (#10300)
Fixes: #10294
2022-10-22 13:31:19 +00:00
lovehackintosh
4fef020048
kernel: bump 6.0 to 6.0.3 (#10299)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-22 13:29:51 +00:00
Albert Xu
6c4e5d7b47
scripts/download.pl: Make the download tool configurable (#10291)
* rules.mk: Move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk

Move DOWNLOAD_CHECK_CERTIFICATE to include/download.mk as it's a better
place than exporting it in the global rules.mk makefile.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

* scripts/download.pl: Make the download tool configurable

Introduce a new option in the "Advanced configuration options" to
configure a custom download tool.

By declaring a string in "Use custom download tool" an user can force
what command to use to download package. With the string empty the
default tool used is curl, with wget as a fallback if not available.

download.pl supports 3 tools officially aria2c, curl and wget.
If one of the tool is used in this config, download.pl will use the
default args to make use of them.

If the provided string is different than aria2c, curl or wget, the command
is used as is and the download url will be appended at the end of such command.

While at it also tweak the tool selection logic and chose the tool only
once when the script is called and move aria2c specific variables in the
relevant section.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

* scripts/download.pl: Pass aria2 config in ENV only

The aria2c command tries to load config from
${XDG_CONFIG_HOME:-${HOME}/.config}/aria2/aria2.conf by default,
which may result unexpected behavior.

As a replacement, people can use environment variable ARIA2C_OPTIONS
to custom arguments passed to aria2c like curl and wget below.
Including --conf-path=/path/to/config.conf in ARIA2C_OPTIONS can
also set a custom config file path easily if needed.

Signed-off-by: Zhang Hua <zhanghuadedn@gmail.com>

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Zhang Hua <zhanghuadedn@gmail.com>
Co-authored-by: Christian Marangi <ansuelsmth@gmail.com>
Co-authored-by: Zhang Hua <zhanghuadedn@gmail.com>
2022-10-21 12:47:28 +08:00
Hugo Yuan
bc34ef9154
rockchip: Add Rongpin King3399 support (#10292) 2022-10-21 12:47:10 +08:00
KumaTea
b0d39f5588
kernel: mtd: add en25qx128a spi nor support 2022-10-21 01:35:17 +08:00
aiamadeus
6ed97d50b6
Merge pull request #10285 from lovehackintosh/sync 2022-10-21 01:28:28 +08:00
Petr Štetiar
9a3a81345b toolchain: musl: disable crypt size hack by default
Enable this option and thus re-include crypt() support for the SHA256,
SHA512 and Blowfish ciphers on all devices. According to commit
9365745f8e7b ("musl: add a hack to remove unused crypt() algorithms,
saves ~14k after lzma") it should add about ~14k to the resulting image,
which seems to be a reasonable size increase for consistent crypt()
support.

Decided to not remove this hack completely as it might be still useful
for people trying to fit custom images onto smaller devices and the
patch is rather simple so we can afford to keep it for now.

References: https://github.com/openwrt/openwrt/pull/1331
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-10-20 10:38:20 +08:00
Nick Hainke
b51a15b3e8 toolchain: gcc: improve patch handling by introducing major version
Every minor version bump of a major version will result in a huge patch
diff because of the moving of all the patches from version e.g. 11.2.0 to
11.3.0. This commit only use the major version for the patch folders to
differentiate between the different gcc versions. This will significantly
improve the reviewing of the smaller version bump patches and help to see
what really changed in a minor version bump.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-20 10:16:19 +08:00
Paul Spooren
1a60b45162 build: remove GCC9 support
gcc9 was never used within a release and the development branch is
already on version 10, no need to keep this in tree.

Signed-off-by: Paul Spooren <mail@aparcar.org>
Acked-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Rui Salvaterra <rsalvaterra@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Aleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>
2022-10-20 09:45:21 +08:00
Paul Spooren
5b43ebc046 build: remove GCC7 support
The development branch is now on version 10, we shouldn't drag to many
old versions and therefore drop at least 7.x.

Signed-off-by: Paul Spooren <mail@aparcar.org>
Acked-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Rui Salvaterra <rsalvaterra@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Aleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>
2022-10-20 09:25:06 +08:00
Felix Fietkau
4bb64420f8 toolchain/binutils: remove old versions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-20 09:15:16 +08:00
lovehackintosh
3b4c47d068
download.pl: use more Chinese mirrors (#10281)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-19 21:57:49 +08:00
coolsnowwolf
b47dc84523 build: move Build/copy-file to image-commands.mk 2022-10-19 21:57:13 +08:00
coolsnowwolf
06fa03cb43 mt76: add MediaTek Filogic 630 (MT7916) support 2022-10-19 21:06:13 +08:00
coolsnowwolf
1fcad6d3b1 build: switch default target to x64 2022-10-19 20:42:58 +08:00
coolsnowwolf
66d86d2371 scripts: sync with upstream 2022-10-19 20:39:19 +08:00
coolsnowwolf
80b72c1cc6 wireless-regdb: unlock WIFI6E channel and txpower 2022-10-19 20:14:00 +08:00
coolsnowwolf
8130834aff rockchip: add rockchip-crypto support for rk3568/rk3588 2022-10-19 20:03:59 +08:00
lovehackintosh
4c72b166f7
toolchain: glibc: Update to glibc 2.35 (#10276)
This updates to glibc to version 2.35.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-10-19 15:56:10 +08:00
lovehackintosh
17ae188737
kernel: bump 5.10 to 5.10.149 (#10278)
No patches required modification.

Signed-off-by: John Audia <therealgraysky@proton.me>

Signed-off-by: John Audia <therealgraysky@proton.me>
Co-authored-by: John Audia <therealgraysky@proton.me>
2022-10-19 15:55:47 +08:00
lovehackintosh
12987a4398
Kernel: bump 5.4 to 5.4.219 (#10279)
No patches rebased, just checksum update for this refresh.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-19 15:55:34 +08:00
lovehackintosh
8ec6c444f8
rockchip: fix Makefile format (#10275)
Signed-off-by: Linhui Liu <liulinhui36@gmail.com>

Signed-off-by: Linhui Liu <liulinhui36@gmail.com>
2022-10-19 15:55:22 +08:00
Daniel Golle
acb79816cd uboot-envtools: mediatek_filogic: fix BPi-R3 when no OS is installed
Fix accessing the environment in case no OS is installed on the flash
media selected for boot as this is possible when booting initramfs.
In case of relying on the device specified to be mounted as rootfs to
be present, rather just use the kernel cmdline 'root' variable as a
hint to decide where to read/write the U-Boot environment.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-19 10:22:26 +08:00
Daniel Golle
04737cae7c mediatek: filogic: don't rely on image preset in flash or sysupgrade
Instead of trying to figure out the actual root device, just use the
kernel 'root' cmdline parameter as a hint to decide which device to
flash to.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-19 10:22:07 +08:00
Daniel Golle
69adcb2fa1 mediatek: filogic: use UBI fast map to speed up boot
Use UBI fast map feature to avoid scanning the whole flash on each
boot which takes several seconds.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-19 10:21:17 +08:00
Daniel Golle
072de63901 mediatek: don't break auxadc without 32k clk
Make the newly added 32k clock optional for the auxadc driver also used
on pre-filogic platforms.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-19 10:20:35 +08:00
Daniel Golle
67017451e4 uboot-mediatek: update to U-Boot 2022.10
Remove patches adding support for MT7621 which have been merged upsteam.
Patches for MT7981 and MT7986 have been merged too, but not in time to
be included in the 2022.10 release, so we have to keep carrying them
until the 2023.01 release.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-19 10:18:56 +08:00
coolsnowwolf
147061e637 ath11k: enable ethernet offload by default 2022-10-18 13:56:43 +08:00
coolsnowwolf
0421b51933 ipq60xx: add ath11k-firmware-ipq6018 2022-10-18 13:56:12 +08:00
coolsnowwolf
e2f7ac1e87 mtd: enable linksys bootcount support for ip60xx 2022-10-18 13:43:26 +08:00
coolsnowwolf
f270095939 uboot-envtools: add Linksys MR7350 uboot env support 2022-10-18 13:41:45 +08:00
coolsnowwolf
3eddaf9e60 ipq60xx: add Linksys MR7350 support 2022-10-18 13:38:14 +08:00
AmadeusGhost
60facd3138 rockchip: enable support for opc-h68k 2022-10-18 11:25:34 +08:00
AmadeusGhost
2a911a7e00 rockchip: add yt8531c driver from net-next 2022-10-18 11:20:51 +08:00
AmadeusGhost
b98efa18fd rockchip: fixes drm module dependencies 2022-10-18 11:19:09 +08:00
AmadeusGhost
7ff615dafc rockchip: add kernel 6.0 support 2022-10-18 11:15:29 +08:00
AmadeusGhost
8f3829bd9e generic: add missing config for kernel 6.0 2022-10-18 11:01:14 +08:00
AmadeusGhost
ca7f48be37 rockchip: remove kernel 5.19 support
Also removed some bugly drivers.
2022-10-18 10:50:11 +08:00
Bruno Umuarama
1f89c35a40 mediatek: mt7623: fix thermal zone
Raising the temperatures for passive and active trips. @VA1DER
proposed at issue 9396 to remove passive trip. This commit relates to
his suggestion.

Without this patch. the CPU will be throttled all the way down to 98MHz
if the temperature rises even a degree above the trip point, and it was
further discovered that if the internal temperature of the device is
above the first trip point temperature when it boots then it will start
in a throttled state and even
$ echo disabled > /sys/class/thermal/thermal_zone0/mode
will have no effect.

The patch increases the passive trip point and active cooling map. The
throttling temperature will then be at 77°C and 82°C, which is still a
low enough temperature for ARM devices to not be in the real danger
zone, and gives some operational headroom.

Signed-off-by: Bruno Umuarama <anonimou_eu@hotmail.com>
2022-10-17 23:25:07 +08:00
Felix Fietkau
4aa78063c6 mediatek: clean up mt7622 kernel config
Remove a few unused options to reduce kernel size

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-17 23:24:32 +08:00
Felix Fietkau
484da47262 kernel: add missing lockdep config symbols for 5.15
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-17 23:23:23 +08:00
Felix Fietkau
9e90121e2c kernel: remove target specific CONFIG_IKCONFIG lines
Use generic configuration for this feature

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-17 23:22:35 +08:00
Daniel Golle
181d7a1d88 mediatek: filogic: set correct PWM clock and clean thermal zone
* set correct clocks for PWM to work.
 * MT7986 PWM does have the 26MHz-clock-select, set that in patch
 * drop useless 'passive' trip point in thermal zone
 * extend pwm-fan to have 3 active operating points
 * set reasonable trip points in thermal zone
 * invert pwm-fan operating points and set shorter period to allow
   less noisy operation of the PWM fan of the BPi-R3.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-10-17 23:20:28 +08:00
Felix Fietkau
2d6da7e23b build: add support for passing C preprocessor flags for DTS builds
Useful for adding #ifdefs based on build system provided definitions, or
for adding extra include paths

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2022-10-17 23:18:56 +08:00
coolsnowwolf
518f59ad64 generic: enable MGLRU support for Linux 6.0 2022-10-17 10:28:21 +08:00
lovehackintosh
37c134045b
kernel: bump 5.15 to 5.15.74 (#10263)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-16 15:15:29 +00:00
lovehackintosh
cbd593078d
Kernel: bump 5.4 to 5.4.218 (#10262)
No patches rebased, just checksum update for this refresh.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-16 15:15:06 +00:00
coolsnowwolf
9f74489df6 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-10-16 02:16:15 +08:00
coolsnowwolf
351d4bb63b kernel: backport MGLRU to linux 6.0 for Tianling Shen 2022-10-16 02:16:00 +08:00
lovehackintosh
f4570f4598
Kernel: bump 5.10 to 5.10.148 (#10259)
No patches rebased, just checksum update for this refresh.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-10-15 12:25:19 +00:00