@@ -949,6 +949,7 @@ help:
@echo ' <pkg>-dirclean - Remove <pkg> build directory'
@echo ' <pkg>-reconfigure - Restart the build from the configure step'
@echo ' <pkg>-rebuild - Restart the build from the build step'
+ @echo ' <pkg>-find-licenses - Find licenses of <pkg> from sources'
$(foreach p,$(HELP_PACKAGES), \
@echo $(sep) \
@echo '$($(p)_NAME):' $(sep) \
@@ -698,6 +698,9 @@ $(1)-show-version:
$(1)-show-depends:
@echo $$($(2)_FINAL_ALL_DEPENDENCIES)
+$(1)-find-licenses:
+ $$(TOPDIR)/support/scripts/find-licenses $(1) $$($(2)_BUILDDIR)
+
$(1)-graph-depends: graph-depends-requirements
@$$(INSTALL) -d $$(GRAPHS_DIR)
@cd "$$(CONFIG_DIR)"; \
@@ -922,6 +925,7 @@ endif
$(1)-dirclean \
$(1)-external-deps \
$(1)-extract \
+ $(1)-find-licenses \
$(1)-graph-depends \
$(1)-install \
$(1)-install-host \
Add a make target to run find-licenses script for given package with build dir as source package dir. Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com> --- Makefile | 1 + package/pkg-generic.mk | 4 ++++ 2 files changed, 5 insertions(+)