From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Ceresoli Date: Thu, 3 Sep 2015 16:12:38 +0200 Subject: [Buildroot] [PATCH] pkg-generic: fix -legal-info target In-Reply-To: <217433bd5ec057444b036dd8b72778f078f0926e.1441213919.git.baruch@tkos.co.il> References: <217433bd5ec057444b036dd8b72778f078f0926e.1441213919.git.baruch@tkos.co.il> Message-ID: <55E85556.4030103@lucaceresoli.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Baruch, Baruch Siach wrote: > When making the -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 -legal-info depend on legal-info-prepare to ensure that > $(LEGAL_INFO_DIR) exists when generating licenses.txt. > > Cc: Luca Ceresoli > Signed-off-by: Baruch Siach > --- > 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 Very weird, I can reproduce the bug, but only for packages under package/freescale/, like imx-vpu. I tested a dozen other packages, and they all work fine. My test command is: git clean -xdf && make defconfig && \ make BR2_DL_DIR=~/src ${PKG}-legal-info Any idea of why these packages are special? -- Luca