pkg-*.mk: add comment about argument 1 of inner-*-package
PATCH v2 1/1 pkg-*.mk: add comment about argument 1 of inner-*-package
---
Changes in v2:
- Fix pkg-cmake.mk too
package/pkg-autotools.mk | 3 ++- package/pkg-cmake.mk | 3 ++- package/pkg-generic.mk | 3 ++- package/pkg-kconfig.mk | 3 ++- package/pkg-luarocks.mk | 3 ++- package/pkg-perl.mk | 3 ++- package/pkg-python.mk | 3 ++- package/pkg-rebar.mk | 3 ++- package/pkg-virtual.mk | 3 ++- 9 files changed, 18 insertions(+), 9 deletions(-)
package/pkg-autotools.mk +2 -1
@@ -101,7 +101,8 @@ endef # calls the generic package infrastructure to generate the necessary # make targets # -# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packages # argument 2 is the uppercase package name, including a HOST_ prefix # for host packages # argument 3 is the uppercase package name, without the HOST_ prefix
package/pkg-cmake.mk +2 -1
@@ -41,7 +41,8 @@ endif # tune the build process and calls the generic package infrastructure to # generate the necessary make targets # -# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packages # argument 2 is the uppercase package name, including a HOST_ prefix # for host packages # argument 3 is the uppercase package name, without the HOST_ prefix
package/pkg-generic.mk +2 -1
@@ -273,7 +273,8 @@ endef # inner-generic-package -- generates the make targets needed to build a # generic package # -# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packages # argument 2 is the uppercase package name, including a HOST_ prefix # for host packages # argument 3 is the uppercase package name, without the HOST_ prefix
package/pkg-kconfig.mk +2 -1
@@ -15,7 +15,8 @@ # inner-kconfig-package -- generates the make targets needed to support a # kconfig package # -# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packages # argument 2 is the uppercase package name, including a HOST_ prefix # for host packages # argument 3 is the uppercase package name, without the HOST_ prefix
package/pkg-luarocks.mk +2 -1
@@ -23,7 +23,8 @@ # tune the build process and calls the generic package infrastructure to # generate the necessary make targets # -# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packages # argument 2 is the uppercase package name, including a HOST_ prefix # for host packages # argument 3 is the uppercase package name, without the HOST_ prefix
package/pkg-perl.mk +2 -1
@@ -29,7 +29,8 @@ PERL_RUN = PERL5LIB= $(HOST_DIR)/usr/bin/perl # calls the generic package infrastructure to generate the necessary # make targets # -# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packages # argument 2 is the uppercase package name, including a HOST_ prefix # for host packages # argument 3 is the uppercase package name, without the HOST_ prefix
package/pkg-python.mk +2 -1
@@ -81,7 +81,8 @@ HOST_PKG_PYTHON_SETUPTOOLS_INSTALL_OPTS = \ # few hooks to tune the build process and calls the generic package # infrastructure to generate the necessary make targets # -# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packages # argument 2 is the uppercase package name, including a HOST_ prefix # for host packages # argument 3 is the uppercase package name, without the HOST_ prefix
package/pkg-rebar.mk +2 -1
@@ -101,7 +101,8 @@ endef # calls the generic package infrastructure to generate the necessary # make targets. # -# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packages # argument 2 is the uppercase package name, including a HOST_ prefix # for host packages # argument 3 is the uppercase package name, without the HOST_ prefix
package/pkg-virtual.mk +2 -1
@@ -18,7 +18,8 @@ # inner-virtual-package -- defines the dependency rules of the virtual # package against its provider. # -# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packages # argument 2 is the uppercase package name, including a HOST_ prefix # for host packages # argument 3 is the uppercase package name, without the HOST_ prefix
Signature · 1 line
1.9.1
PATCH v2 1/1 pkg-*.mk: add comment about argument 1 of inner-*-package
Dear Masahiro Yamada,
package/pkg-autotools.mk endef · line 105
Quoted 3 lines · Masahiro Yamada
package/pkg-autotools.mk +2
-1-# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packages
The prefix is 'host-', not 'host_'. Though I'm not sure this comment is really that useful: host-foo is really the name of the package. Since there is no parameter containing the lower case package name without the 'host-' prefix, I don't think such an additional comment is really needed.
The comment is needed for argument 2 and 3, because they are indeed different in the fact that one has HOST_ and not the other one.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 1/1 pkg-*.mk: add comment about argument 1 of inner-*-package
Hi Thomas,
2015-04-09 21:32 GMT+09:00 Thomas Petazzoni
<[email protected]>:
Quoted 14 lines
Dear Masahiro Yamada,
package/pkg-autotools.mk endef · line 105
Quoted 3 lines · Masahiro Yamada
package/pkg-autotools.mk +2
-1-# argument 1 is the lowercase package name +# argument 1 is the lowercase package name, including a host_ prefix +# for host packagesThe prefix is 'host-', not '
host_'. Though I'm not sure this comment is really that useful: host-foo is really the name of the package. Since there is no parameter containing the lower case package name without the 'host-' prefix, I don't think such an additional comment is really needed.
Quoted 4 lines
The comment is needed for argument 2 and 3, because they are indeed different in the fact that one has
HOST_and not the other one.Best regards,
OK, thanks for explaining this!
Signature · 2 lines
Best Regards Masahiro Yamada