Skip to content
Merged
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: 1 addition & 17 deletions .github/workflows/rewrite-kernel-configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,12 @@ 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 --argjson skip "$SKIP_JSON" '
jq -c '
def norm_branches:
if . == null then []
elif (type=="string") then ( gsub("[,\\s]+";" ") | split(" ") | map(select(length>0)) )
Expand Down Expand Up @@ -71,12 +61,6 @@ 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