Commit Graph

313 Commits

Author SHA1 Message Date
Igor Pecovnik
3d1d9180c2 Remove reverse dependency for armbian-config
This utility doesn't need any build dependency and should be able to work standalone
2024-05-22 15:47:16 +02:00
Ricardo Pardini
40371934d2 lib & config: give shellcheck directions (to /dev/null for dynamic, to repo-relative path for static) for all sourced references
- in preparation for tightening the shellcheck severity level
  - it needs to be able to follow all sources; dynamic ones are ignored, static ones need root-relative prefix
2024-05-19 19:41:35 +02:00
Ricardo Pardini
fb17a2a84f armbian-kernel: drop DEBUG_KERNEL/DEBUG_INFO disables; force EXPERT=y and bring back CONFIG_GPIO_SYSFS=y for all kernels
- we had `_DEBUG=n` forced, which conflicted with `_EXPERT=y`;
  - some important SBC features (like _GPIO_SYSFS) depend on _EXPERT=y
- we've plans to enable BTF/CO-RE kernels soon, so removing the non-debug enforcement makes some sense
  - also, .config's will be free to determine debug config, nothing's changing in those here
- remove the `_EMBEDDED` special case handling, we can do that as well now
- add a separate hook to renable `CONFIG_GPIO_SYSFS=y`; it was a victim of `EXPERT=n` in some kernels
- this does not include rewrites of all the .configs -- those should be done in a separate batch -- either way effect is the same, hooks will always override .config's
  - during rewrites, a large number of new options will show up, since `_EXPERT=y` is used as dependency for many of Kernel's experimental-ish features
2024-05-11 17:35:27 +01:00
Igor
aa9fea7797 Revert "cli: Add command "dts-check""
This reverts commit 54618c1bd3.
2024-04-26 20:46:42 +08:00
ColorfulRhino
54618c1bd3 cli: Add command "dts-check"
Validates the dts/dtb file for the selected board and outputs the validation logs to the user.
This can be used when adding a new board, developing or improving a dts file. Should lead to higher quality device trees and patches overall, if used.
2024-04-26 18:18:56 +08:00
Brent Roman
7343ca42f7 Restore WiFi functionality to the RockPi-S
Reverts the part of 7b2c985363 that deprecated the RTL8723 driver.
The RTW88 driver for the RTL8723DS **does not work**
See issue Jira AR-2121
2024-04-16 00:36:19 +08:00
Ricardo Pardini
28e1b946c9 kernel-debs: linux-libc-dev: add Conflicts: linux-libc-dev
- can't remember if should add `Replaces: linux-libc-dev` as well

Maybe-fixes: 22511b31cf
2024-04-07 13:21:33 +02:00
Ricardo Pardini
e83d1a0eab kernel-debs: fix: don't try to package linux-libc-dev if only packaging dtb
Fixes: 22511b31cf
2024-04-03 18:31:43 +02:00
Ricardo Pardini
180b79cddc kernel-dtbs: output a somewhat-diffable preprocessed dtc-massaged version of the DTS
- useful for diffs across the same kernel, much less so across
2024-04-03 18:30:37 +02:00
Patrick Yavitz
7df2f46a91 RTW88: 6.x.y fixups
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
2024-04-03 11:59:06 -04:00
ColorfulRhino
ee8a3d9675 Kernel config hooks: Use custom_kernel_config instead of armbian_kernel_config
Since `armbian_kernel_config` is "NOT for user consumption. Do NOT use this hook, this is internal to Armbian."
`custom_kernel_config`  is able to overwrite previously set values.
2024-03-30 21:09:12 +01:00
ColorfulRhino
3b73b5fd81 kernel-config: Fix forced option IKCONFIG
Also rewrite some kernel configs to reflect this fix
2024-03-29 15:57:40 +00:00
ColorfulRhino
7ded1f7d7d kernel-config: Force-enable CONFIG_IKCONFIG_PROC=y
to make the kernel config available on the running machine via /proc/config.gz
2024-03-29 15:57:40 +00:00
ColorfulRhino
01be9ecbf9 kernel-config: Update forced kernel options with kernel version checks
This makes the process even more automatic, requiring less manual changes in the config in case of having to solve dependency chains.
2024-03-29 15:57:40 +00:00
ColorfulRhino
bb3837b675 kernel-config: Move config check to init function
- Also change run_kernel_make_dialog oldconfig to run_kernel_make olddefconfig
2024-03-29 15:57:40 +00:00
ColorfulRhino
f8e7d33d69 kernel-config: Fix forced disabling of debug options
Disable CONFIG_EXPERT as well since DEBUG_KERNEL=y is a dependency for EXPERT=y, meaning DEBUG_KERNEL would be re-enabled automatically if EXPERT is enabled
2024-03-29 15:57:40 +00:00
ColorfulRhino
4d744e8638 kernel-config: Only force disable kernel option if it was enabled
This prevents misconfigurations which would be automatically deleted in the next run of `kernel-config`
2024-03-29 15:57:40 +00:00
ColorfulRhino
9f127751f1 kernel-config: Check and repair kernel config after forcing options
Manually forcing kernel options with 'call_extensions_kernel_config()' can introduce missing dependencies or misconfigurations. This commit introduces a function which checks the config, re-establishes its sanity if necessary and outputs any changes to the user.
This also makes `./compile.sh kernel-config` (exiting without changes) and `./compile.sh rewrite-kernel-config` ouput the same config file. Previously, this was not the case.
2024-03-29 15:57:40 +00:00
Valentin
22511b31cf
create linux-libc-dev when building kernel packages (#6408)
* Re-add functionality to create linux-libc-dev when building kernel packages.
* linux-libc-dev: append -${BRANCH}-${LINUXFAMILY} to package name and update control file
2024-03-25 18:04:26 +01:00
Paolo Sabatino
f63a98d082 fix rtl8723cs compilation for kernel 6.8 2024-03-25 17:26:47 +01:00
ColorfulRhino
6d602effc8 drivers_network: Sort drivers/patches by legacy (<=5.x) and not legacy for better visibility and ease of use (e.g. when checking which driver commits should be updated) 2024-03-17 18:57:28 +00:00
ColorfulRhino
7b2c985363 drivers_network: Deprecate vendor drivers for RTW8723DS, RTW8723DU and RTL88x2cs in favor of mainline RTW88 for kernel >=6.8
- RTW8723DS, RTW8723DU is unsupported/deprecated/obsolete by the author since kernel 6.7 in favor of RTW88, so deprecate it for kernel >=6.8
- RTL88x2cs specifically says in its repo: "USE RTW88 NOT THIS DRIVER", so deprecate in favor of RTW88, except for meson64 family
- move random RTL88x2cs hook specific for meson64 family in drivers_network.sh to their family config
2024-03-17 18:57:28 +00:00
ColorfulRhino
07c1ea75c2 drivers_network: rtl8812au: Remove two upstreamed patches 2024-03-17 18:57:28 +00:00
ColorfulRhino
b1ec387300 drivers_network: Bump several drivers from upstream
Also add commit dates to make life prettier and easier

The following drivers have been updated with fixes for 6.8
- driver_rtl8811CU_rtl8821C
- driver_rtl88x2bu
- driver_rtl8811_rtl8812_rtl8814_rtl8821

The following drivers have been updated without specific 6.8 patches:
- driver_rtl8189ES (patches for 6.7, deleted two upstreamed patches)
- driver_rtl8189FS (patches for 6.7, deleted four upstreamed patches)
2024-03-17 18:57:28 +00:00
ColorfulRhino
d881d78209 drivers_network: Add repo URLs for ease of use + formatting 2024-03-17 18:57:28 +00:00
Igor Pecovnik
9e0c0caae8 Fixing rtl8192eu wireless driver compatibility, removing deprecated patch 2024-03-17 18:57:28 +00:00
ColorfulRhino
7d38b4273a cli: rewrite-<uboot,kernel>-patches-needing-rebase 2024-03-13 21:01:26 +00:00
amazingfate
aeda6b8a72 uwe5622: also apply to rk35xx kernel 2024-03-06 08:01:08 +01:00
Ricardo Pardini
d27a03d446 cli: introduce kernel-dtb cli command, to build only DTB, and output full preprocessed dts source
- example: `./compile.sh BOARD=xxxxx BRANCH=edge kernel-dtb`
- outputs preprocessed DTS source for board in question to `output/`
- also outputs same preprocessed DTS source, ran through `dtc` with input and output DTS formats for "normalized" comparisions
2024-03-06 00:58:35 +01:00
Ricardo Pardini
e3575ecd1d kernel: revert "also, don't add target 'install' twice"
- oops
2024-03-02 22:04:00 +01:00
Ricardo Pardini
8a2fad5beb kernel: call make with INSTALL_MOD_STRIP=1 so modules are stripped
- also, don't add target 'install' twice
2024-03-02 20:50:36 +01:00
Ricardo Pardini
49e86b2cff u-boot: call olddefconfig after config hooks; use pipetty instead of unbuffer for make
- also: cli `uboot-config` produces a defconfig diff (useful to create post_config_uboot_target)
2024-03-02 20:48:01 +01:00
c0rnelius
88ed514b89
RTW88: RTL8822/21CU FIXUPS (#6314)
* patch: misc: rtw88: `rtl8822/21cu fixups`

Backported 6.7.y to 6.1.y.
Included fixups for 6.1, 6.6, 6.7 and added 6.8.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

* patch: misc: rtw88: 6.6: removed mbox

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

* patch: misc: rtw88: `v2 rtl8822/21cu fixups`

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

---------

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2024-03-02 13:14:43 -05:00
Gunjan Gupta
2bce64e24d kernel: add hook to allow modifying kernel headers before packaging 2024-02-21 06:34:43 +05:30
Viacheslav Bocharov
d0cfcfa733 Add hook to activate build module for rtl88x2cs driver in kernel config 2024-02-10 15:32:34 +01:00
Viacheslav Bocharov
4e7363f227 Update commit for network driver rtl88x2cs. Re-enable build 2024-02-10 15:32:34 +01:00
Darsey Litzenberger
ce33bddb58 Make the colorized build output readable on a light background
This fixes the readability of colorized output of compile.sh when
running on a terminal with a light background.  It uses the COLORFGBG
environment variable similarly to how the ip(8) command does.

Signed-off-by: Darsey Litzenberger <dlitz@dlitz.net>
2024-02-09 19:38:03 +01:00
Gunjan Gupta
2341940cbe Fix broken compilation for boards with multiple targets 2024-02-04 16:23:09 +01:00
Gunjan Gupta
473548220c uboot: make sure patches work for custom uboot builds too 2024-02-04 11:22:27 +01:00
Gunjan Gupta
7bb20d7063 uwe5622: reduce system load 2024-01-31 23:55:58 +05:30
Gunjan Gupta
d9d6524e7f Add hook to allow forcing uboot update 2024-01-30 12:00:24 +01:00
Gunjan Gupta
c47c9372bf
Khadas VIM1S & VIM4 - 5.15 kernel bump (#6201)
* meson-s4t7: bump u-boot to khadas-vims-u-boot-2019.01-v1.6-release
* Use khadas default bootargs as much as possible
* Add new hook to allow copying code into kernel
* meson-s4t7: legacy: Switch to 5.15 kernel
* meson-s4t7: add kernel-config for 5.15 kernel
* device tree overlays for 5.15 kernel for vim1s and vim4
* restructure packaging of bsp files for vim1s/vim4
* silence vblank warning on boot
* Remove display workaround as it doesn't work with 5.15 kernel
* Remove 5.4 kernel patches
2024-01-26 08:40:11 +01:00
Igor Pecovnik
5383bd3cfa Upstream wireless RTW88: Both 6.6 and 6.7 got patch integegrated, thus don't apply it for 6.6 and up 2024-01-26 08:34:38 +01:00
amazingfate
d9389553e0 rtw88: remove merged patch for kernel 6.8 2024-01-24 17:43:27 +01:00
Paolo Sabatino
8786526914 rtl8723cs: fix driver compilation on kernel 6.7 2024-01-11 23:38:57 +01:00
Ricardo Pardini
c434c3613c core: semantic change, KERNELSOURCE must be explicitly 'none' to avoid kernel compilation (not unset) 2024-01-07 18:58:36 +01:00
Ricardo Pardini
65dcd9e264 [cleanup] extensions: flash-kernel: removed (and a few references to it)
- thanks to Gunjan for replacing it
2023-12-28 13:52:19 +01:00
Ricardo Pardini
1efe94cc0d drivers_network: bumps to drivers from upstream repos (by Igor, from AR-2005)
Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2023-12-27 13:29:37 +01:00
amazingfate
5e49728b2b add support for building linux-next kernel 2023-12-27 12:11:42 +01:00
Gunjan Gupta
2ea9d98656 xradio: remove upstreamed patch 2023-12-25 12:20:50 +05:30