summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/macros.packages.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/mk/macros.packages.mk b/mk/macros.packages.mk
index e6443a3..57f3680 100644
--- a/mk/macros.packages.mk
+++ b/mk/macros.packages.mk
@@ -109,9 +109,8 @@ __embtk_pkg_name = $(strip $($(PKGV)_NAME))
__embtk_pkg_needpatch = $(CONFIG_EMBTK_$(PKGV)_NEED_PATCH)
__embtk_pkg_site = $(strip $($(PKGV)_SITE))
__embtk_patch_site = ftp://ftp.embtoolkit.org/embtoolkit.org
-__embtk_pkg_patch_site = $(strip $(if $($(PKGV)_PATCH_SITE), \
- $($(PKGV)_PATCH_SITE), \
- $(__embtk_patch_site)/$(__embtk_pkg_name)/$(__embtk_pkg_version)))
+__embtk_patch_url = $(__embtk_patch_site)/$(__embtk_pkg_name)/$(__embtk_pkg_version)
+__embtk_pkg_patch_site = $(strip $(or $($(PKGV)_PATCH_SITE),$(__embtk_patch_url)))
__embtk_pkg_patch_f = $(strip $(DOWNLOAD_DIR))/$(__embtk_pkg_name)-$(__embtk_pkg_version).patch
__embtk_pkg_mirror = $(__embtk_patch_site)/packages-mirror
__embtk_pkg_mirror1 = $(strip $($(PKGV)_MIRROR1))