Skip to content

Commit

Permalink
Keep only the device options with the same FAMILY in the installation…
Browse files Browse the repository at this point in the history
… menu
  • Loading branch information
ophub committed Sep 1, 2024
1 parent 95ea6c9 commit cfe2ffd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion make
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ check_data() {
cat ${model_conf} |
sed -e 's/NULL/NA/g' -e 's/[ ][ ]*//g' |
grep -E "^[^#ar].*" |
awk -F':' '{if ($6 != "NA") $6 = "/lib/u-boot/"$6; if ($7 != "NA") $7 = "/lib/u-boot/"$7; NF = 8; print}' OFS=':' \
awk -F':' '{if ($6 != "NA") $6 = "/lib/u-boot/"$6; if ($7 != "NA") $7 = "/lib/u-boot/"$7; NF = 12; print}' OFS=':' \
>${model_txt}

# Get a list of build devices
Expand Down Expand Up @@ -618,6 +618,9 @@ confirm_version() {
family_rename="${FAMILY//-/_}"
eval "amlogic_uboot=(\${uboot_${family_rename}[@]})"

# Remove the menus that are not applicable in the model
grep -E ":${FAMILY}:" ${model_txt} | cut -d':' -f1-8 >temp.txt && mv -f temp.txt ${model_txt}

# Get the kernel tags and version
conf_kernel_tags="${KERNEL_TAGS%%/*}"
conf_kernel_list="${KERNEL_TAGS##*/}"
Expand Down

0 comments on commit cfe2ffd

Please sign in to comment.