Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] pkg-generic: fix <pkg>-legal-info target
@ 2015-09-02 17:11 Baruch Siach
  2015-09-03 14:12 ` Luca Ceresoli
  0 siblings, 1 reply; 6+ messages in thread
From: Baruch Siach @ 2015-09-02 17:11 UTC (permalink / raw)
  To: buildroot

When making the <pkg>-legal-info target before the main legal-info target, the
following error shows:

/bin/sh: /home/baruch/git/buildroot/output/legal-info/licenses.txt: No such file or directory
package/freescale-imx/imx-vpu/imx-vpu.mk:39: recipe for target 'imx-vpu-legal-info' failed
make: *** [imx-vpu-legal-info] Error 1

Make <pkg>-legal-info depend on legal-info-prepare to ensure that
$(LEGAL_INFO_DIR) exists when generating licenses.txt.

Cc: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/pkg-generic.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 6a7d97efdf02..24b473b13ff2 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -715,7 +715,7 @@ endif
 endif
 
 # legal-info: produce legally relevant info.
-$(1)-legal-info:
+$(1)-legal-info: legal-info-prepare
 # Packages without a source are assumed to be part of Buildroot, skip them.
 	$$(foreach hook,$$($(2)_PRE_LEGAL_INFO_HOOKS),$$(call $$(hook))$$(sep))
 ifneq ($$(call qstrip,$$($(2)_SOURCE)),)
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-04  7:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-02 17:11 [Buildroot] [PATCH] pkg-generic: fix <pkg>-legal-info target Baruch Siach
2015-09-03 14:12 ` Luca Ceresoli
2015-09-03 14:30   ` Baruch Siach
2015-09-03 22:19     ` Luca Ceresoli
2015-09-03 23:22       ` Arnout Vandecappelle
2015-09-04  7:18         ` Luca Ceresoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox