Commit Graph

477 Commits

Author SHA1 Message Date
Ricardo Pardini
acfd9c8dcb "get completely rid of dead code toolchain stuff", pt2
- this stuff has been laying around, unused, for years
2026-01-14 20:08:21 +01:00
Ricardo Pardini
84a7e45f29 u-boot: fix and unify CROSS_COMPILE and PATH after predatory maintenance
- also avoid spurious space in `CROSS_COMPILE` when `CCACHE` is not set
2026-01-14 20:08:21 +01:00
Ricardo Pardini
6889c8c0a4 drop find_toolchains, SKIP_EXTERNAL_TOOLCHAINS and all $toolchain PATH injections
- we've had SKIP_EXTERNAL_TOOLCHAINS=yes for ~5 years now
- drop all usages, mostly through `find_toolchains()`
- drop all manual PATH env injections (we've centralized if ever needed)
2026-01-14 20:08:21 +01:00
Ricardo Pardini
001c65df07 u-boot: run binwalk on all the produced u-boot bins (always)
- optionally, if UBOOT_BINS_TO_OUTPUT=yes, copy them out to output/
- this might reveal differences in binwalk itself more than u-boot
- but better than nothing
2026-01-12 23:37:03 +01:00
Ricardo Pardini
6e7d2798e3 u-boot: allow custom LOGLEVEL with UBOOT_LOGLEVEL (default to 6) 2026-01-09 00:40:11 +01:00
Ricardo Pardini
7213d8e8c6 u-boot: better CONFIG_LOG/LOGLEVEL/LOG_MAX_LEVEL (=6) 2026-01-09 00:40:11 +01:00
Ricardo Pardini
287931ac6e armbian-kernel: more eBPF-oriented options for userspace tooling 2026-01-08 19:40:54 +01:00
Ricardo Pardini
0562e3a79f atf: once again no-warn-rwx-segment woes
- turns out everybody was wrong, including me
- some (older?) ATF sources won't work, ever; thus
  - introduce ATF_SKIP_LDFLAGS=yes to skip it completely
  - introduce ATF_SKIP_LDFLAGS_WL=yes to only skip the `-Wl,` prefix
    - this is for ATF's that pass flag directly to linker, not gcc
- artifact-uboot: hash atf-building code into artifact version
2026-01-08 12:20:14 +01:00
tabris
4cc12701e7 framework - update comments around armbian_kernel_config__enable_various_filesystems to use extension_hook_opt_out 2026-01-08 12:07:56 +01:00
Igor Velkov
74e8171074 Remove -Wno-error=unknown-warning-option from clang KCFLAGS.
This flag was breaking kernel's cc-option detection, causing GCC-specific
warnings (-Wpacked-not-aligned, -Wstringop-truncation, -Wmaybe-uninitialized)
to be incorrectly added to btrfs/drm/coresight builds when using clang.
2026-01-08 12:04:39 +01:00
Paolo Sabatino
288b14defa apply rtl8723cs bluetooth only with kernels >= 6.1 2026-01-08 11:56:44 +01:00
Ricardo Pardini
d61b644ef5 framework & kernel options - simplify armbian_kernel_config_apply_opts_from_arrays, no more ambiguity opts_m vs opts_y (part 2) 2026-01-07 11:14:30 +01:00
tabris
0c21be1f67 framework & kernel options - simplify armbian_kernel_config_apply_opts_from_arrays, no more ambiguity opts_m vs opts_y 2026-01-07 11:14:30 +01:00
tabris
7ea0983321 framework and kernel config hooks - split FS modules into a separate hook function to allow customization 2026-01-07 11:14:30 +01:00
Paolo Sabatino
707025f422 rtl8723cs: stop including proprietary driver for kernel 6.19 onwards
* rtw88 mainline driver has good enough support for rtl8723cs
   so stop patching the kernel with this ancient driver
 * fixes rtl8703b (same chip as 8723cs) bluetooth firmware name file
2026-01-07 09:50:08 +01:00
tabris
eaac082190 kernel configs - enable EROFS as module, ditto overlayfs & F2FS 2025-12-29 09:16:28 +01:00
Igor Pecovnik
4d60ce08f2 chore: update copyright years to 2026
Update all copyright notices in shell scripts from 2025 to 2026.

## Changes

- **Igor Pecovnik**: 2013-2025 → 2013-2026 (129 files)
- **Ricardo Pardini**: 2023-2025 → 2023-2026, 2020-2025 → 2020-2026 (5 files)

## Additional Improvements

Also updated the backtitle in `lib/functions/configuration/interactive.sh`:
- Changed title from "Armbian building script" to "Armbian Linux build framework"
- Removed docs link for cleaner display
- Uses dynamic year calculation with separate declaration (fixes shellcheck SC2155)
2025-12-25 12:03:34 +01:00
Werner
3d46ef80e0
sunxi: bump edge to 6.18 (#9049)
* sunxi-6.18: make the mess even worse

* fixing one of megis patches and add sunxi 32bit to the mess

* rewrite against 6.18

* fix media-ov5640-Don-t-powerup-the-sensor-during-driver-probe.patch

* fix media-sun6i-csi-implement-vidioc_enum_framesizes.patch

* fix misc-modem-power-Power-manager-for-modems.patch

* Fix usb-gadget-Fix-dangling-pointer-in-netdev-private-data.patch, include rewrite

* fix mmc-sunxi-mmc-Remove-runtime-PM.patch, two hunks no longer apply

* re-extract all of megis patches

* remove unneeded branch

* add note to disabled patch

* auto-generated, out of date

* drop megous drm patches in favor of Jernej's work. disable broken patches

* disable patch which breaks compilation for armhf

* disable breaking patch, rewrite everything

* remove patches unrelated to sunxi family

* fix spi dev compatible patch

* fix tsc2007 patch

* drop mainlined patch, adjust x96 mate T95 eth sd card hack

* remove upstreamed patch

* re-enable no longer broken

* another rewrite to align stuff properly

* adjust various comments in series.conf

* recover lost overlays

* uew5622: fix compilation against Linux 6.18

* fix Add-sunxi-addr-driver-Used-to-fix-uwe5622-bluetooth-MAC-address.patch

* adjust patch subject to make sense

* restore fixup creation
restore overlay prefix on opiz2
this needs to be properly sorted at some point

* bump to 6.18.1
sunxi and sunxi64 build just fine

* fix and re-enable drv-mfd-axp20x-add-sysfs-interface.patch

* rewrite patches
2025-12-16 12:35:24 +01:00
SuperKali
9e1d62fbec
rtw88: Add kernel 6.18 support and clean up patch logic (#9041)
- Created patch/misc/rtw88/6.18/ directory with upstream driver patches
- Removed obsolete kernel 6.16 reference from patch conditions
- Updated comment to clarify that RF path detection fix is only needed
  for kernel 6.1.x (upstreamed in 6.18+)

This fixes RTL8822CS WiFi initialization failures on kernel 6.18 where
the driver was not being properly patched due to missing version directory.

Fixes SDIO timeout errors during chip initialization.
2025-12-08 23:58:15 +01:00
tabris
f53eac4253 framework - enable NTSYNC as a module on most kernels 2025-12-05 19:38:00 +01:00
Igor Pecovnik
43addca1d4 Add compilation of resolve_btfids to the kernel headers postinst script 2025-12-05 19:36:05 +01:00
Igor Pecovnik
43e89b4313 Make pahole as hard dependency on kernel headers 2025-12-05 19:36:05 +01:00
Ricardo Pardini
efdfb11328 kernel-config: don't leak grep stuff to stdout; mention Armbian and defconfig in rewritten .config comment 2025-11-08 13:13:38 +01:00
tabris
bb783640f4 framework kernel machinery - always save KERNEL_MAJOR_MINOR into generated config/kernel/foo.config 2025-11-08 11:35:37 +01:00
tabris
1f315c7819 Framework - armbian-kernel.sh - followup to #8820
Don't override CONFIG_FOO=y with CONFIG_FOO=m when opts_m contains
CONFIG_FOO
2025-11-06 15:48:07 -05:00
Igor
81ad50f257
Revitalize Espressobin - fix atf compilation bug, bump kernels (#8873)
* Revitalize Espressobin - fix atf compilation bug, bump kernels
* Drop forced systemd networking as this is now anyway in minimal by default
2025-11-06 00:19:49 +01:00
Ricardo Pardini
fab1be2e8b armbian-kernel: remove forced EXT4/BTRFS as builtins (let each kernel .config decide)
- some families want builtin, some want modules, let each decide
2025-11-06 00:15:46 +01:00
Ricardo Pardini
db5534ed5c armbian-kernel: drop CONFIG_ prefix, fix comments
- also fix for opt_m logging mismatch caught by the AI
2025-11-06 00:15:46 +01:00
Ricardo Pardini
5eeb998509 armbian-kernel: standardize on opts_y/opts_n/opts_m + opts_val arrays
- call_extensions_kernel_config() now declares the vars and calls
  armbian_kernel_config_apply_opts_from_arrays() at the end
- so each individual hook doesn't need to
- adapt family code using the old way too
2025-11-06 00:15:46 +01:00
Ricardo Pardini
e0adc40a75 armbian-kernel: rework everything into arrays + armbian_kernel_config_apply_opts_from_arrays
- so hashes and changes are consistent
2025-11-06 00:15:46 +01:00
Ricardo Pardini
03b7b2645d armbian-kernel: remove inconsistent conditionals
- one shall NOT use the contents of .config to determine what's in the .config
- also: introduce `opts_m` for armbian_kernel_config_apply_opts_from_arrays()
2025-11-06 00:15:46 +01:00
Ricardo Pardini
6a2b2d6760 armbian-kernel: BTRFS_FS & EXT4_FS as built-in, not modules 2025-11-06 00:15:46 +01:00
Ricardo Pardini
7c80838190 armbian-kernel: shfmt + trim whitespace; no changes 2025-11-06 00:15:46 +01:00
Ricardo Pardini
5e45b9c0f1 armbian-kernel: fix inconsistency in the ZRAM_BACKEND stuff; add a rant 2025-11-06 00:15:46 +01:00
Ricardo Pardini
f38ad454af uboot: set CONFIG_LOCALVERSION more reliably on script/config-enabled uboot sources
- keep old sed for old u-boots only
- don't start it with a dash, as that gets confused with cmdline arg eventually
  - instead use an underscore
2025-11-02 18:10:12 +01:00
Ricardo Pardini
3dfcbf4348 uboot: uboot-config now prints diff with pre-menuconfig defconfig 2025-11-02 18:10:01 +01:00
Igor
8b0f9ad1ef
Wireless driver patching: fix inconsistency in matching (#8789)
* Wireless driver patching: fix inconsistency in matching

Mathing Allwinner family via LINUXFAMILY is giving different results. sunxi doesn't cover sun5* ...

* Re-adding wireless drivers that fall out of this bug + few additional
2025-10-23 22:30:12 +02:00
Ricardo Pardini
19ab210ceb drivers_network: update rtl8723DS with amazingfate's fix for 6.18
- see https://github.com/armbian/rtl8723ds/pull/4
2025-10-19 01:43:30 +02:00
Ricardo Pardini
842e6b66f9 drivers_network: update rtl8852bs with amazingfate's fix for 6.18
- see 72c75150d7
2025-10-19 01:43:30 +02:00
Migelo
3ad0696e00 armbian-kernel.sh enable zram compression backends: LZ4, LZ4HC, ZSTD, DEFLATE, 842, and LZO 2025-10-17 17:54:55 +02:00
tabris
09160da3b9 build machinery - fixup compilation for uboot/atf BRANCH=edge, pass --no-warn-rwx-segments to linker, not compiler 2025-10-14 00:00:38 +02:00
Viacheslav Bocharov
e6679e6bb3 update rtl88x2cs external driver for kernel 6.18+
Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
2025-10-13 23:53:15 +02:00
Igor Pecovnik
ddf1337ca4 Add Wi-Fi injection patch for Linux 6.12 kernels. 2025-10-11 14:04:48 +02:00
Viacheslav Bocharov
8325404b25 Update rtl88x2cs driver commit hash for kernel 6.17+
Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
2025-10-09 17:39:24 +03:00
Ricardo Pardini
ffead65d12 drivers_network: disable 6.17+ for rtl8811_rtl8812_rtl8814_rtl8821, rtl8811CU_rtl8821C and rtl88x2bu
- two of those were already marked to be removed 6.12+
- for those in need: send fix upstream, wait for merge, update here and re-enable
- in case upstream abandoned: fork and fix, update here and re-enable
2025-10-06 23:40:09 +02:00
Paolo
35629f641e
Bump rockchip64-edge kernel to 6.17 (#8703)
* bump rockchip64 edge kernel to 6.17

* update rockchip64 edge kernel config to 6.17

* Fixes for wireless drivers for rockchip64-edge 6.17

Patches for:
* uwe5622
* rtl8723ds
* rtl8852bs

* update rtl8852bs and rtl8723ds repository commit hashes
2025-10-03 18:36:42 +02:00
tabris
c732b614aa armbian build machinery - allow kernel module compression. 2025-09-28 06:44:45 +02:00
青萝菜 瓜冬卜
7dd37805c8 [bugfix] Update binutils version checks in atf.sh 2025-09-28 06:44:26 +02:00
Igor
eebef46200 Realtek 8189ES & FS compatibility with Linux 6.17.y
Closing https://github.com/armbian/build/issues/8659
2025-09-28 05:30:08 +02:00
tabris
dd4b5e9a24 armbian build machinery - force all iptables/nftables to be built 2025-09-27 13:23:43 +02:00