aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* ath79: usb: remove usb- from reset-namesRosen Penev2024-12-13
| | | | | | | | This matches the upstream PHY driver, which removed it. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17118 Signed-off-by: John Crispin <john@phrozen.org>
* wifi-scripts: don't fail on unset PSKDavid Bauer2024-12-13
| | | | | | | | | | | | | | | | Don't fail wireless interface bringup on empty PSK set. This is a valid configuration, resulting in a PSK network which can't be connected to. It does not fail the bringup of the hostapd process. Keep failing the interface setup in case a password with invalid length is used. This is also beneficial when intending to configure a PPSK network. It allows to create a network where no PPSK is yet set. Signed-off-by: David Bauer <mail@david-bauer.net> Link: https://github.com/openwrt/openwrt/pull/17197 Signed-off-by: John Crispin <john@phrozen.org>
* mac80211: refresh patch for ath12kGeorgi Valkov2024-12-13
| | | | | | | | | refresh the following patch for ath12k 001-wifi-ath12k-add-11d-scan-offload-support-and-handle-country-code-for-WCN7850.patch Signed-off-by: Georgi Valkov <gvalkov@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17246 Signed-off-by: John Crispin <john@phrozen.org>
* lantiq: use regulator for USB GPIORosen Penev2024-12-13
| | | | | | | | | One is already present. The other one can be implemented in terms of the PHY. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17250 Signed-off-by: John Crispin <john@phrozen.org>
* hostapd: fix building mini variantsFelix Fietkau2024-12-13
| | | | | | Move function and add ifdef to avoid undefined reference to hmac_sha256_kdf. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* wifi-scripts: fix mesh/sta setup with ucode scriptsFelix Fietkau2024-12-13
| | | | | | | Ensure that the code doesn't pass macaddr_base with the wrong type (null) to the supplicant setup/start call. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* dropbear: Name pid file by uci section nameAndreas Gnau2024-12-12
| | | | | | | | | | | Name the pidfile of each dropbear instance according to the corresponding uci section name. This enables a 1:1 mapping between the definition of the service instance and its process. Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu> Link: https://github.com/openwrt/openwrt/pull/15177 Signed-off-by: John Crispin <john@phrozen.org>
* ipq40xx: use PHY to control USB GPIORosen Penev2024-12-12
| | | | | | | | | | Instead of using regulator-output to manually control USB GPIO, let the PHY handle it. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17221 Signed-off-by: John Crispin <john@phrozen.org>
* base-files: fix luci TZ default show zonenameJiale Liu2024-12-12
| | | | | | | | | | fix default timezone to correct GMT0, origin value 'UTC' is zonename, not timezone. Signed-off-by: Jiale Liu <admin@licsber.site> Link: https://github.com/openwrt/openwrt/pull/15128 Signed-off-by: John Crispin <john@phrozen.org>
* hostapd: add support for rxkh_fileSybil1272024-12-12
| | | | | | | | | | | | | | | | | | Initial support for dynamic reload of RxKHs. In order to check if RxKHs need reloading. RxKHs defined in the rxkh_file first has to be parsed and formated, the same way as hostapd will read from the file and also output, with the command GET_RXKHS. Then each list of RxKHs can be hashed and compared. Ucode implementation of hostapds rkh_derive_key() function. Hostapd converts hex keys with 128-bits or more when less than 256-bits to 256-bits, and truncates those that are more than 256-bits. See: https://w1.fi/cgit/hostap/commit/hostapd/config_file.c?id=245fc96e5f4b1c566b7eaa19180c774307ebed79 Signed-off-by: Sybil127 <sybil127@outlook.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* wifi-scripts: introduce rxkh_file uci optionSybil1272024-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With rxkh_file, hostapd will read a list of RxKHs from a text file. This also makes it possible for hostapd to dynamically reload RxKHs. RxKHs defined in rxkh_file should be formated as described in hostapd.conf, with one entry per line. R0KH/R1KH format: r0kh=<MAC address> <NAS Identifier> <256-bit key as hex string> r1kh=<MAC address> <R1KH-ID> <256-bit key as hex string> Reworked behavior of the uci options r0kh and r1kh. When rxkh_file is not configured: Instead of appending the RxKHs to the hostapd bss configuration. They will be added to a interface specific file with name /var/run/hostapd-phyX-apX.rxkh. This file will be used as the rxkh_file in the hostapd bss configuration. When rxkh_file is configured: The specified file will be used in the hostapd bss configuration, and will be the only source for configured RxKHs. All RxKHs defined with the uci options r0kh or r1kh will be ignored. Signed-off-by: Sybil127 <sybil127@outlook.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* wifi-scripts: add macaddr_base wifi-device optionFelix Fietkau2024-12-12
| | | | | | | This can be used to configure the base mac address from which all interface mac addresses are derived Signed-off-by: Felix Fietkau <nbd@nbd.name>
* wifi-scripts: fix failing mesh setup with missing wpa_supplicantDavid Bauer2024-12-12
| | | | | | | | | | | The initialization of mesh interfaces currently fail when wpa_supplicant is not installed. This is due to the script calling the wpa_supplicant feature indicator without verifying wpa_supplicant is installed at all. To avoid failing, first check if wpa_supplicant is installed before determining the available featureset. Signed-off-by: David Bauer <mail@david-bauer.net>
* Revert "kernel: modules: fix led-group-multi-color patch"John Crispin2024-12-12
| | | | | | | | | This reverts commit 1cea889c96a8df4e91236e269539b086d519a60a. This reverts commit 5fd86d66c15fc4d6f5076f7d07c91e0690d91531. The patch is causing build servers to fail. Revert it for now. Signed-off-by: John Crispin <john@phrozen.org>
* kernel: modules: fix led-group-multi-color patchJohn Crispin2024-12-12
| | | | | Fixes: 5fd86d6 ("kernel: modules: add support for led-group-multicolor") Signed-off-by: John Crispin <john@phrozen.org>
* kernel: modules: add support for led-group-multicolorJonathan Brophy2024-12-12
| | | | | | | | | | | | This option enables support for monochrome LEDs that are grouped into multicolor LEDs which is useful in the case where LEDs of different colors are physically grouped in a single multi-color LED and driven by a controller that doesn't have multi-color support. Signed-off-by: Jonathan Brophy <professor_jonny@hotmail.com> Link: https://github.com/openwrt/openwrt/pull/16397 Signed-off-by: John Crispin <john@phrozen.org>
* base-files: fix cleanup after settings restoreRodrigo Balerdi2024-12-12
| | | | | | | | | | | | Some devices use file '/tmp/sysupgrade.tar' during settings restore and this potentially big file was not being cleaned up from RAM afterwards. See: do_mount_root() (base-files/files/lib/preinit/80_mount_root) Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15339 Signed-off-by: John Crispin <john@phrozen.org>
* ipq40xx: disable SPI DMA for Fritzbox 4040Rouven Czerwinski2024-12-12
| | | | | | | | | | | | We have seen hung devices and failures during SPI transactions on Fritzbox devices with a gluon based freifunk network. We have narrowed down that disabling DMA for spi fixes the problem, so disable dma for the SPI controller on the Fritzbox 4040. Signed-off-by: Rouven Czerwinski <rouven@czerwinskis.de> Link: https://github.com/openwrt/openwrt/pull/15966 Signed-off-by: John Crispin <john@phrozen.org>
* .gitattributes: ignore some whitespace "violations" in .patch filesMark Mentovai2024-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git's default core.whitespace[1] setting doesn't agree with .patch files. This causes whitespace warnings when running `git apply`, (including via `git am`) and causes red highlighting when viewing diffs to .patch files via `git diff` (including via `git show`) when outputting to a terminal. These types of whitespace “violations” will now be explicitly disabled for .patch files in the repository-wide .gitattributes file to prevent git from suggesting that there’s anything wrong with checked-in .patch files. A .patch file will naturally have `space-before-tab` if a context line (not a +/- line) begins with a tab character (as is common in patches to files that use the tab indent convention), and will also naturally have `trailing-space` if a context line is blank (also common). Neither `indent-with-non-tab` nor `tab-in-indent` are enabled in core.whitespace by default, but could also occur naturally in .patch files, and are also explicitly disabled here for completeness to cover cases where they may be enabled in core.whitespace at the global or system level. These false violations may be flagged frequently in OpenWrt, because the repository contains many .patch files. There are currently just over 5,000 .patch files, representing slightly more than half of all files. [1] https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_core_whitespace Link: https://github.com/openwrt/openwrt/pull/16012 Signed-off-by: Mark Mentovai <mark@mentovai.com> Link: https://github.com/openwrt/openwrt/pull/16015 Signed-off-by: John Crispin <john@phrozen.org>
* rules.mk: Update ccache's compiler check.Markus Gothe2024-12-12
| | | | | | | | | | | | | | Update the compiler check for ccache so we don't end up with the wrong binaries. Right now the compiler check will not be able to correctly distinguish the compiler used for build ARMv8 binaries from the one used to build ARMv7 binaries. Signed-off-by: Markus Gothe <markus.gothe@genexis.eu> Link: https://github.com/openwrt/openwrt/pull/16290 Signed-off-by: John Crispin <john@phrozen.org>
* ccache: Speed up building.Markus Gothe2024-12-12
| | | | | | | | - Disable compression for ccache's cached files. - Disable the hashing of the CWD inside debug information. This increases the cache hits drastically. Signed-off-by: Markus Gothe <markus.gothe@genexis.eu>
* dnsmasq: pass environment variables to hotplugChuck R2024-12-12
| | | | | | | | | | | | | | | | | | | | dnsmasq passes a limited amount of information via DHCP script arguments. Much more information is available through environment variables starting with DNSMASQ_, such as DNSMASQ_INTERFACE. However, when the dhcp-script builds its JSON environment and passes it to hotplug, all of this information is discarded since it is not copied to the JSON environment. Personally, I have a custom-made set of DDNS scripts and rely on environment variables such as DNSMASQ_INTERFACE in order to determine which DNS zones to update. So, not being able to access these variables was detrimental to me. I patched in a quick copy of all DNSMASQ_ variables to the JSON environment so that they can be used in hotplug scripts. In order to do so I also copied /usr/bin/env into dnsmasq's chroot jail. Signed-off-by: Chuck R <github@chuck.cloud> Link: https://github.com/openwrt/openwrt/pull/16354 Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: add Comfast CF-E395AX support by adding an alternative model nameDavid Bentham2024-12-12
| | | | | | | | | | | both these devices share the board and same config, just different model number Install instructions are the same as the CF-E393AX commit - https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=d8f4453bf2de9fd9baf3d660ed12e0797ff2cfdb Signed-off-by: David Bentham <db260179@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16389 Signed-off-by: John Crispin <john@phrozen.org>
* mbim: sort config variables a little and fix minor bugsLeon M. Busch-George2024-12-12
| | | | | | | | | | | Group 'local' declarations and 'json_get_vars', sort alphabetically within groups, and split off more generic parameters. - delegate and sourcefilter were not declared as local variables Signed-off-by: Leon M. Busch-George <leon@georgemail.eu> Link: https://github.com/openwrt/openwrt/pull/16734 Signed-off-by: John Crispin <john@phrozen.org>
* ncm: sort config variables a little and fix minor bugsLeon M. Busch-George2024-12-12
| | | | | | | | Group 'local' declarations and 'json_get_vars', sort alphabetically within groups, and split off more generic parameters. - delegate and sourcefilter were not declared as local variables Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
* qmi: sort config variables a little and fix minor bugsLeon M. Busch-George2024-12-12
| | | | | | | | Group 'local' declarations and 'json_get_vars', sort alphabetically within groups, and split off more generic parameters. - delegate and sourcefilter were not declared as local variables Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
* base-files: add option to set LED brightnessPaweł Owoc2024-12-12
| | | | | | | | | | | | | | Add option to set LED brightness via uci: config led 'led_blue' option name 'blue' option sysfs 'blue:status' option brightness '1' Signed-off-by: Paweł Owoc <frut3k7@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17190 Signed-off-by: John Crispin <john@phrozen.org>
* package/firewall: fix config typoLiangbin Lian2024-12-12
| | | | | | | | | change Support-UDP-Traceroute rule from 'enabled false' to 'enabled 0' Signed-off-by: Liangbin Lian <jjm2473@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17133 Signed-off-by: John Crispin <john@phrozen.org>
* hostapd: add SAE support for wifi-station and optimize PSK file creationRany Hany2024-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Regarding SAE support in wifi-station: Important Note: Unlike PSK wifi-stations, both `mac` and `key` options are required to make it work. With PSK, hostapd used to perform a brute-force match to find which PSK entry to use, but with SAE this is infeasible due to SAE's design. When `mac` is omitted, it will allow any MAC address to use the SAE password if it didn't have a MAC address assigned to it, but this could only be done once. The last wildcard entry would be used. Also, unlike "hostapd: add support for SAE in PPSK option" (commit 913368a), it is not required to set `sae_pwe` to `0`. This gives it a slight advantage over using PPSK that goes beyond not needing RADIUS. Example Configuration: ``` config wifi-vlan option iface default_radio0 option name 999 option vid 999 option network management config wifi-station # Allow user with MAC address 00:11:22:33:44:55 and matching # key "secretadminpass" to access the management network. option iface default_radio0 option vid 999 option mac '00:11:22:33:44:55' option key secretadminpass config wifi-vlan option iface default_radio0 option name 100 option vid 100 option network guest config wifi-station # With SAE, when 'mac' is omitted it will be the fallback in case no # other MAC address matches. It won't be possible for a user that # has a matching MAC to use this network (i.e., 00:11:22:33:44:55 # in this example). option iface default_radio0 option vid 100 option key guestpass ``` Regarding PSK file creation optimization: This patch now conditionally runs `hostapd_set_psk_file` depending on `auth_type`. Previously, `hostapd_set_psk` would always execute `hostapd_set_psk_file`, which would create a new file if `wifi-station` was in use even if PSK was not enabled. This change checks the `auth_type` to ensure that it is appropriate to parse the `wifi-station` entries and create those files. Furthermore, we now only configure `wpa_psk_file` when it is a supported option (i.e., psk or psk-sae is used). Previously, we used to configure it when it was not necessary. While it didn't cause any issues, it would litter `/var/run` with unnecessary files. This patch fixes that case by configuring it depending on the `auth_type`. The new SAE support is aligned with these PSK file changes. Signed-off-by: Rany Hany <rany_hany@riseup.net> Link: https://github.com/openwrt/openwrt/pull/17145 Signed-off-by: John Crispin <john@phrozen.org>
* qualcommax: use ath11k_patch_mac for MR7350Chukun Pan2024-12-11
| | | | | | | | | Use ath11k_patch_mac and ath11k_set_macflag functions instead of fix_wifi_mac script. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Link: https://github.com/openwrt/openwrt/pull/17230 Signed-off-by: Robert Marko <robimarko@gmail.com>
* qualcommax: ipq60xx: fixes base-files typoChukun Pan2024-12-11
| | | | | | | | | | * fix caldata file name * fix bootcount file permission Fixes: 9c55866 ("qualcommax: ipq60xx: add Linksys MR7350 support") Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Link: https://github.com/openwrt/openwrt/pull/17230 Signed-off-by: Robert Marko <robimarko@gmail.com>
* umdns: update to latest HEADJohn Crispin2024-12-11
| | | | | | | | | | 93458ac dns: fix response to TYPE_PTR query 68af311 fix unicast response port and timeout a2b4979 service: announce all services in single dns answer 4537734 display announced services in ubus call umdns browse 0b50c29 display more srv attributes in output of ubus browse function Signed-off-by: John Crispin <john@phrozen.org>
* procd: update to latest HEADJohn Crispin2024-12-11
| | | | | | | e2f05de state: set_stdio: chdir back to / in case of failure 30542c9 inittab: Disable implicit controlling TTY. Signed-off-by: John Crispin <john@phrozen.org>
* wifi-scripts: ucode: change default behaviour of the vlan_no_bridge optionJohn Crispin2024-12-11
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* wifi-scripts: ucode: remove debug codeJohn Crispin2024-12-11
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* wifi-scripts: ucode: append global options on STA interfacesJohn Crispin2024-12-11
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* wifi-scripts: ucode: fix parsing of legacy hwmode optionJohn Crispin2024-12-11
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* wifi-scripts: ucode: only set mbssid on ax and be radiosJohn Crispin2024-12-11
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* wifi-scripts: ucode: typo fixJohn Crispin2024-12-11
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* lantiq: grow kernel partition Zyxel P-2812HNU-F1Isaac de Wolff2024-12-10
| | | | | | | | | | | | | | | | | | | | | Change partition table in dts file. Change DEVICE_COMPAT_VERSION Enable automatic build. To take advantage of the bigger kernel partition, the uboot environment has to be changed: setenv nboot 'nand read 0x81000000 0x60000 0x500000; bootm 0x81000000' setenv bootcmd 'run nboot' saveenv Of course you need a u-boot capable of handling this. The u-boot discussed in this forum thread: https://forum.openwrt.org/t/zyxel-p2812hnu-f1-u-boot/100281 should be able to handle kernels up to an uncompressed size of 16MiB. Signed-off-by: Isaac de Wolff <idewolff@gmx.com> Link: https://github.com/openwrt/openwrt/pull/17209 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* tools/cmake: update to 3.31.2Jack Sun2024-12-10
| | | | | | | | | | | | | | Release notes: https://cmake.org/cmake/help/latest/release/3.31.html Refresh patches: - 120-curl-fix-libressl-linking.patch - 130-bootstrap_parallel_make_flag.patch - 150-zstd-libarchive.patch - 160-disable_xcode_generator.patch Signed-off-by: Jack Sun <sunjiazheng321521@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17056 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* iproute2: update to 6.12.0Robert Marko2024-12-10
| | | | | | | | | | | | | Release Notes: https://lore.kernel.org/netdev/20241119092743.6a1bdcb7@hermes.local/T/ Allows us to drop 2 upstreamed patches: package/network/utils/iproute2/patches/010-bridge-mst-fix-a-musl-build-issue.patch package/network/utils/iproute2/patches/011-bridge-mst-fix-a-further-musl-build-issue.patch Signed-off-by: Robert Marko <robert.marko@sartura.hr> Link: https://github.com/openwrt/openwrt/pull/17206 Signed-off-by: Robert Marko <robimarko@gmail.com>
* mediatek: filogic: Migrate wifi configuration device pathsHauke Mehrtens2024-12-10
| | | | | | | | | | | | | | | The device path to the devices changed. Migrate the wifi configurations from the old path to the new one. This is needed to migrate Wireless configurations from OpenWrt 23.05 to OpenWrt 24.10. This script is based on these two files: target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/05-wifi-migrate target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/ieee80211/05-wifi-migrate Fixes: 0ef927472148 ("mediatek: filogic: move mt7981 on-SoC blocks to "soc" node in DT") Fixes: https://github.com/openwrt/openwrt/issues/17174 Link: https://github.com/openwrt/openwrt/pull/17210 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* mediatek: filogic: prevent faulty mac address assignmentOndřej Niesner2024-12-09
| | | | | | | | | | | | | | | The vendor U-Boot on the Cudy WR3000 assign random mac addresses on boot and set the 'local-mac-address' property which prevents Openwrt from assigning the correct address from evmem. This patch removes the alias for ethernet0 so that U-Boot doesn't add the property. Related to: a55ab9e1343e ("mediatek: filogic: prevent faulty mac address assignment") Fixes: https://github.com/openwrt/openwrt/issues/15587 Signed-off-by: Ondřej Niesner <ondra.niesner@seznam.cz> Link: https://github.com/openwrt/openwrt/pull/17201 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* hostapd: fix processing mbssid config optionFelix Fietkau2024-12-09
| | | | | | Do not strip the first character from the field name Signed-off-by: Felix Fietkau <nbd@nbd.name>
* bpftool: turn off libbfd feature in host buildEric Long2024-12-09
| | | | | | | | libbfd feature is not used when building eBPF program, and it makes bpftool fail to build in a clean environment, since binutils in toolchain have libbfd disabled. Signed-off-by: Eric Long <i@hack3r.moe> Link: https://github.com/openwrt/openwrt/pull/17073 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ath79: gl-e750: use nvmem for mac addressesRosen Penev2024-12-08
| | | | | | | | | | | This is a simple conversion to dts. 68ac3f2cddab states that the 5ghz wifi address is calculated from ART 0 + 2. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17066 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* mediatek/filogic: add Keenetic KN-3811 supportMaxim Anisimov2024-12-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: * Mediatek MT7981BA * 256 MB SPI-NAND * 512 MB DDR4 RAM * MT7976CN DBDC AX Wi-Fi * MediaTek MT7531AE (3x LAN Gigabit ports) + Internal Gbe Phy (1x WAN Gigabit port) * 4x LED (power, internet, fn, wifi) * 3x buttons (wps, fn, reset) * 1x USB 3.0 port Serial Interface: * 3 Pins GND, RX, TX * Settings: 115200, 8N1 Notes: * The device supports dual boot mode * Fn led reassigned to wlan 2.4 Flash instruction: The only way to flash OpenWrt image is to use tftp recovery mode in U-Boot: 1. Configure PC with static IP 192.168.1.2/24 and tftp server. 2. Rename "openwrt-mediatek-filogic-keenetic_kn-3811-squashfs-factory.bin" to "KN-3811_recovery.bin" and place it in tftp server directory. 3. Connect PC with ethernet port, press the reset button, power up the device and keep button pressed until status led start blinking. 4. Device will download file from server, write it to flash and reboot. Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17135 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* busybox: Save shell history into /tmpHannu Nyman2024-12-08
| | | | | | | | | | | | | | | | | Enable the busybox feature to save shell command history. (.apk size increase 0.5 kB) To prevent flash wear, * save history only at the exit from a shell session, and * set /tmp as the default location for the history file. The history is kept on ramdisk until a reboot, when the history is then lost. If the user wants to save history onto flash, he can change the location definition in /etc/profile.d/busybox-history-file.sh Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> Link: https://github.com/openwrt/openwrt/pull/17179 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: packages: fix building package/devel/perf with -O3Pavel Shirov2024-12-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add patch to fix failure to build package/devel/perf when CONFIG_TARGET_OPTIMIZATION has -O3 enabled with this error: ``` In function 'elf_close', inlined from 'elf_close' at elf.c:41:6, inlined from 'elf_find_func_offset_from_file' at elf.c:267:2: elf.c:45:9: error: 'elf_fd.elf' may be used uninitialized [-Werror=maybe-uninitialized] 45 | elf_end(elf_fd->elf); | ^~~~~~~~~~~~~~~~~~~~ elf.c: In function 'elf_find_func_offset_from_file': elf.c:260:23: note: 'elf_fd.elf' was declared here 260 | struct elf_fd elf_fd; | ^~~~~~ In function 'elf_close', inlined from 'elf_close' at elf.c:41:6, inlined from 'elf_find_func_offset_from_file' at elf.c:267:2: elf.c:46:9: error: 'elf_fd.fd' may be used uninitialized [-Werror=maybe-uninitialized] 46 | close(elf_fd->fd); | ^~~~~~~~~~~~~~~~~ elf.c: In function 'elf_find_func_offset_from_file': elf.c:260:23: note: 'elf_fd.fd' was declared here 260 | struct elf_fd elf_fd; | ^~~~~~ ``` Link: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=fab45b962749 Signed-off-by: Pavel Shirov <nstorm.ahoy166@silomails.com> Link: https://github.com/openwrt/openwrt/pull/17141 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>