|
@@ -648,18 +648,16 @@ endef # GENTARGETS_INNER
|
|
################################################################################
|
|
################################################################################
|
|
# GENTARGETS -- the target generator macro for generic packages
|
|
# GENTARGETS -- the target generator macro for generic packages
|
|
#
|
|
#
|
|
-# Argument 1 is the package directory prefix [mandatory]
|
|
|
|
-# Argument 2 is the lowercase package name [mandatory]
|
|
|
|
-# Argument 3 is "target" or "host" [optional, default: "target"]
|
|
|
|
|
|
+# Argument 1 is "target" or "host" [optional, default: "target"]
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
define GENTARGETS
|
|
define GENTARGETS
|
|
-ifeq ($(3),host)
|
|
|
|
|
|
+ifeq ($(1),host)
|
|
# In the case of host packages, turn the package name "pkg" into "host-pkg"
|
|
# In the case of host packages, turn the package name "pkg" into "host-pkg"
|
|
-$(call GENTARGETS_INNER,$(3)-$(2),$(call UPPERCASE,$(3)-$(2)),$(call UPPERCASE,$(2)),$(1),host)
|
|
|
|
|
|
+$(call GENTARGETS_INNER,$(1)-$(call pkgname),$(call UPPERCASE,$(1)-$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),host)
|
|
else
|
|
else
|
|
# In the case of target packages, keep the package name "pkg"
|
|
# In the case of target packages, keep the package name "pkg"
|
|
-$(call GENTARGETS_INNER,$(2),$(call UPPERCASE,$(2)),$(call UPPERCASE,$(2)),$(1),target)
|
|
|
|
|
|
+$(call GENTARGETS_INNER,$(call pkgname),$(call UPPERCASE,$(call pkgname)),$(call UPPERCASE,$(call pkgname)),$(call pkgparentdir),target)
|
|
endif
|
|
endif
|
|
endef
|
|
endef
|
|
|
|
|