|
@@ -241,8 +241,7 @@ $(BUILD_DIR)/%/.stamp_dircleaned:
|
|
|
# for host packages
|
|
|
# argument 3 is the uppercase package name, without the HOST_ prefix
|
|
|
# for host packages
|
|
|
-# argument 4 is the package directory prefix
|
|
|
-# argument 5 is the type (target or host)
|
|
|
+# argument 4 is the type (target or host)
|
|
|
################################################################################
|
|
|
|
|
|
define inner-generic-package
|
|
@@ -254,7 +253,7 @@ define inner-generic-package
|
|
|
# these informations have only to be specified once, for both the
|
|
|
# target and host packages of a given .mk file.
|
|
|
|
|
|
-$(2)_TYPE = $(5)
|
|
|
+$(2)_TYPE = $(4)
|
|
|
$(2)_NAME = $(1)
|
|
|
$(2)_RAWNAME = $(patsubst host-%,%,$(1))
|
|
|
|
|
@@ -534,7 +533,7 @@ ifeq ($$($(2)_REDISTRIBUTE),YES)
|
|
|
ifneq ($$($(2)_SITE_METHOD),local)
|
|
|
ifneq ($$($(2)_SITE_METHOD),override)
|
|
|
# Packages that have a tarball need it downloaded and extracted beforehand
|
|
|
-$(1)-legal-info: $(1)-extract $(REDIST_SOURCES_DIR_$(call UPPERCASE,$(5)))
|
|
|
+$(1)-legal-info: $(1)-extract $(REDIST_SOURCES_DIR_$(call UPPERCASE,$(4)))
|
|
|
$(2)_MANIFEST_TARBALL = $$($(2)_SOURCE)
|
|
|
endif
|
|
|
endif
|
|
@@ -558,23 +557,23 @@ else
|
|
|
|
|
|
# Save license files if defined
|
|
|
ifeq ($(call qstrip,$$($(2)_LICENSE_FILES)),)
|
|
|
- @$(call legal-license-nofiles,$$($(2)_RAWNAME),$(call UPPERCASE,$(5)))
|
|
|
+ @$(call legal-license-nofiles,$$($(2)_RAWNAME),$(call UPPERCASE,$(4)))
|
|
|
@$(call legal-warning-pkg,$$($(2)_RAWNAME),cannot save license ($(2)_LICENSE_FILES not defined))
|
|
|
else
|
|
|
# Double dollar signs are really needed here, to catch host packages
|
|
|
# without explicit HOST_FOO_LICENSE_FILES assignment, also in case they
|
|
|
# have multiple license files.
|
|
|
- @$$(foreach F,$$($(2)_LICENSE_FILES),$$(call legal-license-file,$$($(2)_RAWNAME),$$(F),$$($(2)_DIR)/$$(F),$(call UPPERCASE,$(5)))$$(sep))
|
|
|
+ @$$(foreach F,$$($(2)_LICENSE_FILES),$$(call legal-license-file,$$($(2)_RAWNAME),$$(F),$$($(2)_DIR)/$$(F),$(call UPPERCASE,$(4)))$$(sep))
|
|
|
endif # license files
|
|
|
|
|
|
ifeq ($$($(2)_REDISTRIBUTE),YES)
|
|
|
# Copy the source tarball (just hardlink if possible)
|
|
|
- @cp -l $(DL_DIR)/$$($(2)_SOURCE) $(REDIST_SOURCES_DIR_$(call UPPERCASE,$(5))) 2>/dev/null || \
|
|
|
- cp $(DL_DIR)/$$($(2)_SOURCE) $(REDIST_SOURCES_DIR_$(call UPPERCASE,$(5)))
|
|
|
+ @cp -l $(DL_DIR)/$$($(2)_SOURCE) $(REDIST_SOURCES_DIR_$(call UPPERCASE,$(4))) 2>/dev/null || \
|
|
|
+ cp $(DL_DIR)/$$($(2)_SOURCE) $(REDIST_SOURCES_DIR_$(call UPPERCASE,$(4)))
|
|
|
endif # redistribute
|
|
|
|
|
|
endif # other packages
|
|
|
- @$(call legal-manifest,$$($(2)_RAWNAME),$$($(2)_VERSION),$$($(2)_LICENSE),$$($(2)_MANIFEST_LICENSE_FILES),$$($(2)_MANIFEST_TARBALL),$(call UPPERCASE,$(5)))
|
|
|
+ @$(call legal-manifest,$$($(2)_RAWNAME),$$($(2)_VERSION),$$($(2)_LICENSE),$$($(2)_MANIFEST_LICENSE_FILES),$$($(2)_MANIFEST_TARBALL),$(call UPPERCASE,$(4)))
|
|
|
endif # ifneq ($(call qstrip,$$($(2)_SOURCE)),)
|
|
|
$(foreach hook,$($(2)_POST_LEGAL_INFO_HOOKS),$(call $(hook))$(sep))
|
|
|
|
|
@@ -617,8 +616,8 @@ endef # inner-generic-package
|
|
|
################################################################################
|
|
|
|
|
|
# In the case of target packages, keep the package name "pkg"
|
|
|
-generic-package = $(call inner-generic-package,$(pkgname),$(call UPPERCASE,$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),target)
|
|
|
+generic-package = $(call inner-generic-package,$(pkgname),$(call UPPERCASE,$(pkgname)),$(call UPPERCASE,$(pkgname)),target)
|
|
|
# In the case of host packages, turn the package name "pkg" into "host-pkg"
|
|
|
-host-generic-package = $(call inner-generic-package,host-$(pkgname),$(call UPPERCASE,host-$(pkgname)),$(call UPPERCASE,$(pkgname)),$(pkgparentdir),host)
|
|
|
+host-generic-package = $(call inner-generic-package,host-$(pkgname),$(call UPPERCASE,host-$(pkgname)),$(call UPPERCASE,$(pkgname)),host)
|
|
|
|
|
|
# :mode=makefile:
|