[Buildroot] [PATCH] Makefile.package.in: accept upper case $(PKG)_SITE_METHOD as well
Bjørn Forsman
bjorn.forsman at gmail.com
Mon Jan 31 21:52:47 UTC 2011
The Buildroot documentation says it's OK to use upper case names for
$(PKG)_SITE_METHOD, but the implementation does not support it. This
patch adds support for both upper and lower case names.
Signed-off-by: Bjørn Forsman <bjorn.forsman at gmail.com>
---
package/Makefile.package.in | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index 92ce4e2..9a327c6 100644
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -189,9 +189,9 @@ define DOWNLOAD
fi ; \
if test -n "$(1)" ; then \
case "$($(PKG)_SITE_METHOD)" in \
- git) $($(DL_MODE)_GIT) && exit ;; \
- svn) $($(DL_MODE)_SVN) && exit ;; \
- bzr) $($(DL_MODE)_BZR) && exit ;; \
+ git|GIT) $($(DL_MODE)_GIT) && exit ;; \
+ svn|SVN) $($(DL_MODE)_SVN) && exit ;; \
+ bzr|BZR) $($(DL_MODE)_BZR) && exit ;; \
*) $(call $(DL_MODE)_WGET,$(1),$(2)) && exit ;; \
esac ; \
fi ; \
--
1.7.1
More information about the buildroot
mailing list