support/scripts/apply-patches: fallback $TAR to tar

Commit f77d698f83 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 <brandon.maier@collins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 118c824b565442bfe1d4ae1c0a39d330e624b854)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Brandon Maier 2024-06-18 15:14:39 +00:00 committed by Peter Korsgaard
parent ebc3216762
commit 4fce66e217

View File

@ -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