From 118c824b565442bfe1d4ae1c0a39d330e624b854 Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Tue, 18 Jun 2024 15:14:39 +0000 Subject: [PATCH] support/scripts/apply-patches: fallback $TAR to `tar` Commit f77d698f83b230f7efcb7d28af3aacfa9589cc89 changed apply-patches to use $TAR instead of `tar`, but did not define a fallback if $TAR is not defined. This results in an error when calling apply-patches.sh from outside Buildroot's Makefile. Our team uses this script to setup local checkouts of Buildroot package's with patches for development. Signed-off-by: Brandon Maier Signed-off-by: Peter Korsgaard --- support/scripts/apply-patches.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh index 4e633b23be..73aa6c8e5f 100755 --- a/support/scripts/apply-patches.sh +++ b/support/scripts/apply-patches.sh @@ -46,6 +46,8 @@ patchdir=${2-../kernel-patches} shift 2 patchpattern=${@-*} +export TAR=${TAR:-tar} + # use a well defined sorting order export LC_COLLATE=C