diff options
| author | Gabriel Wicki <gabriel@erlikon.ch> | 2026-03-01 10:01:44 +0100 |
|---|---|---|
| committer | Vagrant Cascadian <vagrant@debian.org> | 2026-04-13 09:52:01 -0700 |
| commit | af0379d6c4eb7ee237e1907cea9cd1969351b102 (patch) | |
| tree | 05f902bed837c56d19db6648764e7bef64b92a4c /gnu/packages/linux.scm | |
| parent | 727b300e04cb1e24a37e0004e614608cb479f614 (diff) | |
gnu: linux-libre: Extract common kernel modules into variables.
Deduplicate common default modules in an attempt to clean the module up.
* gnu/packages/linux.scm (pinebook-extra-modules,
arm64-generic-extra-modules): New variables.
(linux-libre-arm64-generic, linux-libre-lts-arm64-generic,
linux-libre-arm64-generic-5.10): Use new variables.
Change-Id: Ia48d6942332e71cadd43decb59d633180b0d3264
Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Diffstat (limited to 'gnu/packages/linux.scm')
| -rw-r--r-- | gnu/packages/linux.scm | 83 |
1 files changed, 28 insertions, 55 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 6af5c13587f..a273cdf0c86 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm | |||
| @@ -1294,8 +1294,6 @@ Linux kernel. It has been modified to remove all non-free binary blobs.") | |||
| 1294 | #:extra-version "arm-generic" | 1294 | #:extra-version "arm-generic" |
| 1295 | #:extra-options | 1295 | #:extra-options |
| 1296 | (append | 1296 | (append |
| 1297 | `(;; needed to fix the RTC on rockchip platforms | ||
| 1298 | ("CONFIG_RTC_DRV_RK808" . #t)) | ||
| 1299 | (default-extra-linux-options linux-libre-5.10-version)))) | 1297 | (default-extra-linux-options linux-libre-5.10-version)))) |
| 1300 | 1298 | ||
| 1301 | (define-public linux-libre-arm-omap2plus | 1299 | (define-public linux-libre-arm-omap2plus |
| @@ -1306,6 +1304,31 @@ Linux kernel. It has been modified to remove all non-free binary blobs.") | |||
| 1306 | #:defconfig "omap2plus_defconfig" | 1304 | #:defconfig "omap2plus_defconfig" |
| 1307 | #:extra-version "arm-omap2plus")) | 1305 | #:extra-version "arm-omap2plus")) |
| 1308 | 1306 | ||
| 1307 | (define pinebook-extra-modules | ||
| 1308 | `(;; Pinebook display, battery, charger and usb | ||
| 1309 | ("CONFIG_DRM_ANALOGIX_ANX6345" . m) | ||
| 1310 | ("CONFIG_CHARGER_AXP20X" . m) | ||
| 1311 | ("CONFIG_INPUT_AXP20X_PEK" . m) | ||
| 1312 | ("CONFIG_CHARGER_AXP20X" . m) | ||
| 1313 | ("CONFIG_BATTERY_AXP20X" . m) | ||
| 1314 | ("CONFIG_PINCTRL_AXP209" . m) | ||
| 1315 | ("CONFIG_AXP20X_POWER" . m) | ||
| 1316 | ("CONFIG_AXP20X_ADC" . m) | ||
| 1317 | ;; Pinebook PRO battery and sound support | ||
| 1318 | ("CONFIG_BATTERY_CW2015" . m) | ||
| 1319 | ("CONFIG_CHARGER_GPIO" . m) | ||
| 1320 | ("CONFIG_SND_SOC_ES8316" . m))) | ||
| 1321 | |||
| 1322 | (define arm64-generic-extra-modules | ||
| 1323 | (append | ||
| 1324 | pinebook-extra-modules | ||
| 1325 | `(;; Provide support for ath9k wireless | ||
| 1326 | ("CONFIG_ATH9K_HTC" . m) | ||
| 1327 | ;; Support Orange Pi R1 Plus LTS ethernet PHY. | ||
| 1328 | ("CONFIG_MOTORCOMM_PHY" . m) | ||
| 1329 | ;; needed to fix the RTC on rockchip platforms | ||
| 1330 | ("CONFIG_RTC_DRV_RK808" . #t)))) | ||
| 1331 | |||
| 1309 | (define-public linux-libre-arm64-generic | 1332 | (define-public linux-libre-arm64-generic |
| 1310 | (make-linux-libre* linux-libre-version | 1333 | (make-linux-libre* linux-libre-version |
| 1311 | linux-libre-gnu-revision | 1334 | linux-libre-gnu-revision |
| @@ -1315,25 +1338,7 @@ Linux kernel. It has been modified to remove all non-free binary blobs.") | |||
| 1315 | #:extra-version "arm64-generic" | 1338 | #:extra-version "arm64-generic" |
| 1316 | #:extra-options | 1339 | #:extra-options |
| 1317 | (append | 1340 | (append |
| 1318 | `(;; Provide support for ath9k wireless | 1341 | arm64-generic-extra-modules |
| 1319 | ("CONFIG_ATH9K_HTC" . m) | ||
| 1320 | ;; Support Orange Pi R1 Plus LTS ethernet PHY. | ||
| 1321 | ("CONFIG_MOTORCOMM_PHY" . m) | ||
| 1322 | ;; needed to fix the RTC on rockchip platforms | ||
| 1323 | ("CONFIG_RTC_DRV_RK808" . #t) | ||
| 1324 | ;; Pinebook display, battery, charger and usb | ||
| 1325 | ("CONFIG_DRM_ANALOGIX_ANX6345" . m) | ||
| 1326 | ("CONFIG_CHARGER_AXP20X" . m) | ||
| 1327 | ("CONFIG_INPUT_AXP20X_PEK" . m) | ||
| 1328 | ("CONFIG_CHARGER_AXP20X" . m) | ||
| 1329 | ("CONFIG_BATTERY_AXP20X" . m) | ||
| 1330 | ("CONFIG_PINCTRL_AXP209" . m) | ||
| 1331 | ("CONFIG_AXP20X_POWER" . m) | ||
| 1332 | ("CONFIG_AXP20X_ADC" . m) | ||
| 1333 | ;; Pinebook PRO battery and sound support | ||
| 1334 | ("CONFIG_BATTERY_CW2015" . m) | ||
| 1335 | ("CONFIG_CHARGER_GPIO" . m) | ||
| 1336 | ("CONFIG_SND_SOC_ES8316" . m)) | ||
| 1337 | (default-extra-linux-options linux-libre-version)))) | 1342 | (default-extra-linux-options linux-libre-version)))) |
| 1338 | 1343 | ||
| 1339 | (define-public linux-libre-lts-arm64-generic | 1344 | (define-public linux-libre-lts-arm64-generic |
| @@ -1351,25 +1356,7 @@ Linux kernel. It has been modified to remove all non-free binary blobs.") | |||
| 1351 | #:extra-version "arm64-generic" | 1356 | #:extra-version "arm64-generic" |
| 1352 | #:extra-options | 1357 | #:extra-options |
| 1353 | (append | 1358 | (append |
| 1354 | `( ;; Provide support for ath9k wireless | 1359 | arm64-generic-extra-modules |
| 1355 | ("CONFIG_ATH9K_HTC" . m) | ||
| 1356 | ;; Support Orange Pi R1 Plus LTS ethernet PHY. | ||
| 1357 | ("CONFIG_MOTORCOMM_PHY" . m) | ||
| 1358 | ;; needed to fix the RTC on rockchip platforms | ||
| 1359 | ("CONFIG_RTC_DRV_RK808" . #t) | ||
| 1360 | ;; Pinebook display, battery, charger and usb | ||
| 1361 | ("CONFIG_DRM_ANALOGIX_ANX6345" . m) | ||
| 1362 | ("CONFIG_CHARGER_AXP20X" . m) | ||
| 1363 | ("CONFIG_INPUT_AXP20X_PEK" . m) | ||
| 1364 | ("CONFIG_CHARGER_AXP20X" . m) | ||
| 1365 | ("CONFIG_BATTERY_AXP20X" . m) | ||
| 1366 | ("CONFIG_PINCTRL_AXP209" . m) | ||
| 1367 | ("CONFIG_AXP20X_POWER" . m) | ||
| 1368 | ("CONFIG_AXP20X_ADC" . m) | ||
| 1369 | ;; Pinebook PRO battery and sound support | ||
| 1370 | ("CONFIG_BATTERY_CW2015" . m) | ||
| 1371 | ("CONFIG_CHARGER_GPIO" . m) | ||
| 1372 | ("CONFIG_SND_SOC_ES8316" . m)) | ||
| 1373 | (default-extra-linux-options linux-libre-lts-version))))) | 1360 | (default-extra-linux-options linux-libre-lts-version))))) |
| 1374 | 1361 | ||
| 1375 | (define-public linux-libre-arm64-generic-5.10 | 1362 | (define-public linux-libre-arm64-generic-5.10 |
| @@ -1381,21 +1368,7 @@ Linux kernel. It has been modified to remove all non-free binary blobs.") | |||
| 1381 | #:extra-version "arm64-generic" | 1368 | #:extra-version "arm64-generic" |
| 1382 | #:extra-options | 1369 | #:extra-options |
| 1383 | (append | 1370 | (append |
| 1384 | `(;; needed to fix the RTC on rockchip platforms | 1371 | arm64-generic-extra-modules |
| 1385 | ("CONFIG_RTC_DRV_RK808" . #t) | ||
| 1386 | ;; Pinebook display, battery, charger and usb | ||
| 1387 | ("CONFIG_DRM_ANALOGIX_ANX6345" . m) | ||
| 1388 | ("CONFIG_CHARGER_AXP20X" . m) | ||
| 1389 | ("CONFIG_INPUT_AXP20X_PEK" . m) | ||
| 1390 | ("CONFIG_CHARGER_AXP20X" . m) | ||
| 1391 | ("CONFIG_BATTERY_AXP20X" . m) | ||
| 1392 | ("CONFIG_PINCTRL_AXP209" . m) | ||
| 1393 | ("CONFIG_AXP20X_POWER" . m) | ||
| 1394 | ("CONFIG_AXP20X_ADC" . m) | ||
| 1395 | ;; Pinebook PRO battery and sound support | ||
| 1396 | ("CONFIG_BATTERY_CW2015" . m) | ||
| 1397 | ("CONFIG_CHARGER_GPIO" . m) | ||
| 1398 | ("CONFIG_SND_SOC_ES8316" . m)) | ||
| 1399 | (default-extra-linux-options linux-libre-5.10-version)))) | 1372 | (default-extra-linux-options linux-libre-5.10-version)))) |
| 1400 | 1373 | ||
| 1401 | (define-public linux-libre-arm64-honeycomb | 1374 | (define-public linux-libre-arm64-honeycomb |
