Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/rewrite-kernel-configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,22 @@ jobs:
id: gen
shell: bash
run: |

set -euo pipefail
JSON="output/info/image-info.json"

# === Kernel config files to skip (filenames under config/kernel/) ===
# Add more entries as needed.
SKIP_CONFIGS=(
"linux-rockchip-rv1106-vendor.config"
)

# Convert bash array -> JSON array for jq
SKIP_JSON="$(printf '%s\n' "${SKIP_CONFIGS[@]}" | jq -R . | jq -s .)"

tmp="$(mktemp)"

jq -c '
jq -c --argjson skip "$SKIP_JSON" '
def norm_branches:
if . == null then []
elif (type=="string") then ( gsub("[,\\s]+";" ") | split(" ") | map(select(length>0)) )
Expand Down Expand Up @@ -61,6 +71,12 @@ jobs:
# 4) If multiple boards share same (family,branch), keep smallest board (lexicographic)
| sort_by(.linuxfamily, .branch, .board)
| group_by([.linuxfamily,.branch]) | map(.[0])
# 5) Filter out rows whose kernel config filename is in skip list
| map(
. as $row
| ( "linux-" + $row.linuxfamily + "-" + $row.branch + ".config" ) as $fname
| select( ($skip | index($fname)) | not )
)
' "$JSON" > "$tmp"

echo "count=$(jq 'length' "$tmp")" >> "$GITHUB_OUTPUT"
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-arm64-sc8280xp.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.17
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-bcm2711-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-bcm2711-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.18
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-bcm2711-legacy.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.6
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-filogic-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-genio-collabora.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.14
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME="localhost"
CONFIG_SYSVIPC=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-imx6-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.6
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_KERNEL_LZ4=y
CONFIG_DEFAULT_INIT="3"
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-imx6-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.15
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_KERNEL_LZ4=y
CONFIG_DEFAULT_INIT="3"
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-k3-beagle-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
20 changes: 14 additions & 6 deletions config/kernel/linux-k3-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down Expand Up @@ -95,6 +96,7 @@ CONFIG_BLK_DEV_INTEGRITY=y
CONFIG_BLK_DEV_THROTTLING=y
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
CONFIG_ZSWAP=y
CONFIG_ZSWAP_ZPOOL_DEFAULT_ZBUD=y
# CONFIG_COMPAT_BRK is not set
CONFIG_MEMORY_HOTPLUG=y
CONFIG_MEMORY_HOTREMOVE=y
Expand Down Expand Up @@ -308,7 +310,6 @@ CONFIG_NET_ACT_POLICE=m
CONFIG_NET_ACT_GACT=m
CONFIG_GACT_PROB=y
CONFIG_NET_ACT_MIRRED=m
CONFIG_NET_ACT_IPT=m
CONFIG_NET_ACT_NAT=m
CONFIG_NET_ACT_PEDIT=m
CONFIG_NET_ACT_SIMP=m
Expand Down Expand Up @@ -386,6 +387,12 @@ CONFIG_MTD_UBI=y
CONFIG_MTD_HYPERBUS=m
CONFIG_HBMC_AM654=m
CONFIG_ZRAM=y
CONFIG_ZRAM_BACKEND_LZ4=y
CONFIG_ZRAM_BACKEND_LZ4HC=y
CONFIG_ZRAM_BACKEND_ZSTD=y
CONFIG_ZRAM_BACKEND_DEFLATE=y
CONFIG_ZRAM_BACKEND_842=y
CONFIG_ZRAM_BACKEND_LZO=y
CONFIG_ZRAM_WRITEBACK=y
CONFIG_ZRAM_MEMORY_TRACKING=y
CONFIG_BLK_DEV_LOOP=y
Expand Down Expand Up @@ -423,6 +430,7 @@ CONFIG_VXLAN=m
CONFIG_TUN=y
CONFIG_VETH=m
CONFIG_VIRTIO_NET=y
CONFIG_NETKIT=y
# CONFIG_NET_VENDOR_ALACRITECH is not set
# CONFIG_NET_VENDOR_AMAZON is not set
# CONFIG_NET_VENDOR_AMD is not set
Expand Down Expand Up @@ -684,26 +692,26 @@ CONFIG_VIDEO_DS90UB953=m
CONFIG_VIDEO_DS90UB960=m
CONFIG_AUXDISPLAY=y
CONFIG_HD44780=m
CONFIG_LCD2S=m
CONFIG_IMG_ASCII_LCD=m
CONFIG_HT16K33=m
CONFIG_LCD2S=m
CONFIG_DRM=y
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_DRM_I2C_CH7006=m
CONFIG_DRM_I2C_SIL164=m
CONFIG_DRM_I2C_NXP_TDA998X=y
CONFIG_DRM_VGEM=m
CONFIG_DRM_PANEL_BOE_TV101WUM_NL6=m
CONFIG_DRM_PANEL_LVDS=m
CONFIG_DRM_PANEL_SIMPLE=m
CONFIG_DRM_PANEL_EDP=m
CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D=m
CONFIG_DRM_PANEL_LVDS=m
CONFIG_DRM_PANEL_ILITEK_ILI9881C=m
CONFIG_DRM_PANEL_MANTIX_MLAF057WE51=m
CONFIG_DRM_PANEL_OSD_OSD101T2587_53TS=y
CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=m
CONFIG_DRM_PANEL_RAYDIUM_RM67191=m
CONFIG_DRM_PANEL_SITRONIX_ST7703=m
CONFIG_DRM_PANEL_EDP=m
CONFIG_DRM_PANEL_SIMPLE=m
CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m
CONFIG_DRM_PANEL_VISIONOX_VTDR6130=m
CONFIG_DRM_DISPLAY_CONNECTOR=y
Expand Down Expand Up @@ -936,8 +944,8 @@ CONFIG_RPMSG_VIRTIO=y
CONFIG_SOUNDWIRE=m
CONFIG_FSL_RCPM=y
CONFIG_QCOM_PMIC_GLINK=m
CONFIG_TI_SCI_PM_DOMAINS=y
CONFIG_TI_PRUSS=m
CONFIG_TI_SCI_PM_DOMAINS=y
CONFIG_DEVFREQ_GOV_USERSPACE=y
CONFIG_DEVFREQ_GOV_PASSIVE=m
CONFIG_EXTCON_PTN5150=m
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-k3-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-meson-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-meson-s4t7-legacy.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 5.15
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-meson64-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-meson64-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.18
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-mt7623-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.6
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-mvebu-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.6
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-mvebu-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.15
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-mvebu64-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_BUILD_SALT="y"
CONFIG_SYSVIPC=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-mvebu64-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.18
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_BUILD_SALT="y"
CONFIG_SYSVIPC=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-odroidxu4-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.6
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-odroidxu4-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.15
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-phytium-embedded-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.6
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-phytium-embedded-legacy.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 5.10
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-qcs6490-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.18
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME="radxa-qcom"
CONFIG_SYSVIPC=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-rk35xx-vendor.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.1
CONFIG_WERROR=y
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-rockchip-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME="localhost"
CONFIG_SYSVIPC=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-rockchip-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.17
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME="localhost"
CONFIG_SYSVIPC=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-rockchip-vendor.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.1
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_KERNEL_LZ4=y
CONFIG_DEFAULT_HOSTNAME="localhost"
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-rockchip64-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-rockchip64-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.18
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-sm8250-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-sm8250-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.14
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-sm8550-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME="@DEVICENAME@"
CONFIG_SYSVIPC=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-sm8550-edge.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.12
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME="@DEVICENAME@"
CONFIG_SYSVIPC=y
Expand Down
1 change: 1 addition & 0 deletions config/kernel/linux-spacemit-current.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Armbian defconfig generated with 6.6
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME=""
CONFIG_SYSVIPC=y
Expand Down
Loading