Skip to content

Commit d966580

Browse files
committed
remove obsolete tinkerboard from kernel upstream version check.
1 parent c1f414a commit d966580

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/update-kernel-upstream.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [[ -z "${ARCHIVE_HASH}" ]]; then
3131
exit 1
3232
fi
3333

34-
CURRENT_VERSION_LIST=$(grep -oE 'BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="[^"]+"' buildroot-external/configs/{generic-x86_64,tinkerboard}.config | sed -E 's/.*"([^"]+)"/\1/' | sort -u)
34+
CURRENT_VERSION_LIST=$(grep -oE 'BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="[^"]+"' buildroot-external/configs/{generic-x86_64}.config | sed -E 's/.*"([^"]+)"/\1/' | sort -u)
3535
if [[ $(echo "${CURRENT_VERSION_LIST}" | wc -l) -ne 1 ]]; then
3636
echo "${PACKAGE_NAME}: inconsistent kernel versions found across target configs, refusing to auto-update" >&2
3737
exit 1
@@ -52,7 +52,7 @@ if [[ -z "${1}" ]]; then
5252
fi
5353
fi
5454

55-
sed -i "s/BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE=\".*\"/BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE=\"${ID}\"/g" buildroot-external/configs/{generic-x86_64,tinkerboard}.config
55+
sed -i "s/BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE=\".*\"/BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE=\"${ID}\"/g" buildroot-external/configs/{generic-x86_64}.config
5656

5757
sed -i "/${PACKAGE_NAME}-${CURRENT_VERSION}\.tar\.xz/d" "buildroot-external/patches/${PACKAGE_NAME}/${PACKAGE_NAME}.hash"
5858
echo "sha256 ${ARCHIVE_HASH} ${PACKAGE_NAME}-${ID}.tar.xz" >>"buildroot-external/patches/${PACKAGE_NAME}/${PACKAGE_NAME}.hash"

0 commit comments

Comments
 (0)