mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
# vi: set sw=4 ts=4:
|
||||
|
||||
export LC_ALL=C
|
||||
TAB="$(printf '\t')"
|
||||
NL="
|
||||
"
|
||||
|
||||
# Verify that grep works
|
||||
echo "WORKS" | grep "WORKS" >/dev/null 2>&1
|
||||
@@ -35,9 +38,9 @@ case ":${PATH:-unset}:" in
|
||||
echo "PATH environment variable. This doesn't work."
|
||||
exit 1
|
||||
;;
|
||||
(*"
|
||||
"*) printf "\n"
|
||||
printf "Your PATH contains a newline (\\\n) character.\n"
|
||||
(*" "*|*"${TAB}"*|*"${NL}"*)
|
||||
printf "\n"
|
||||
printf "Your PATH contains spaces, TABs, and/or newline (\\\n) characters.\n"
|
||||
printf "This doesn't work. Fix you PATH.\n"
|
||||
exit 1
|
||||
;;
|
||||
@@ -160,7 +163,7 @@ fi
|
||||
|
||||
# Check that a few mandatory programs are installed
|
||||
missing_progs="no"
|
||||
for prog in patch perl tar wget cpio unzip rsync bc ${DL_TOOLS} ; do
|
||||
for prog in perl tar wget cpio unzip rsync bc cmp find xargs ${DL_TOOLS} ; do
|
||||
if ! which $prog > /dev/null ; then
|
||||
echo "You must install '$prog' on your build machine";
|
||||
missing_progs="yes"
|
||||
@@ -172,6 +175,12 @@ for prog in patch perl tar wget cpio unzip rsync bc ${DL_TOOLS} ; do
|
||||
echo " zcat is usually part of the gzip package in your distribution"
|
||||
elif test $prog = "bzcat" ; then
|
||||
echo " bzcat is usually part of the bzip2 package in your distribution"
|
||||
elif test $prog = "cmp" ; then
|
||||
echo " cmp is usually part of the diffutils package in your distribution"
|
||||
elif test $prog = "find" ; then
|
||||
echo " find is usually part of the findutils package in your distribution"
|
||||
elif test $prog = "xargs" ; then
|
||||
echo " xargs is usually part of the findutils package in your distribution"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
@@ -180,11 +189,19 @@ if test "${missing_progs}" = "yes" ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# apply-patches.sh needs patch with --no-backup-if-mismatch support (GNU, busybox w/DESKTOP)
|
||||
if ! patch --no-backup-if-mismatch </dev/null 2>/dev/null; then
|
||||
echo "Your patch program does not support the --no-backup-if-mismatch option. Install GNU patch"
|
||||
PATCH_VERSION="$(patch -v 2>/dev/null | sed -n 's/^GNU patch \(.*\)/\1/p')"
|
||||
if [ -z "${PATCH_VERSION}" ] ; then
|
||||
echo
|
||||
echo "You must install GNU patch"
|
||||
exit 1
|
||||
fi
|
||||
PATCH_MAJOR="$(echo "${PATCH_VERSION}" | cut -d . -f 1)"
|
||||
PATCH_MINOR="$(echo "${PATCH_VERSION}" | cut -d . -f 2)"
|
||||
if [ "${PATCH_MAJOR}" -lt 2 ] || [ "${PATCH_MAJOR}" -eq 2 -a "${PATCH_MINOR}" -lt 7 ] ; then
|
||||
echo
|
||||
echo "You have GNU patch '${PATCH_VERSION}' installed. GNU patch >= 2.7 is required"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
if grep ^BR2_NEEDS_HOST_UTF8_LOCALE=y $BR2_CONFIG > /dev/null; then
|
||||
if ! which locale > /dev/null ; then
|
||||
|
||||
Reference in New Issue
Block a user