* [U-Boot] [PATCH] tools: Execute tools from objtree
@ 2016-11-02 11:21 Marek Vasut
2016-11-02 11:22 ` Marek Vasut
0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2016-11-02 11:21 UTC (permalink / raw)
To: u-boot
Always execute the tools from the build destination directory
and with a full path, otherwise we may get errors like this
(from OE-core):
| ERROR: oe_runmake failed
| cat ./Licenses/gpl-2.0.txt | gzip -9 -c | \
| tools/bin2header license_gzip > ./include/license.h
| /bin/sh: 2: tools/bin2header: not found
| tools/Makefile:256: recipe for target 'include/license.h' failed
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>
---
tools/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/Makefile b/tools/Makefile
index 421414b..7dacedb 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -247,14 +247,14 @@ HOST_EXTRACFLAGS += -include $(srctree)/include/libfdt_env.h \
__build: $(LOGO-y) $(LICENSE-y)
$(LOGO_H): $(obj)/bmp_logo $(LOGO_BMP)
- $(obj)/bmp_logo --gen-info $(LOGO_BMP) > $@
+ $(objtree)/bmp_logo --gen-info $(LOGO_BMP) > $@
$(LOGO_DATA_H): $(obj)/bmp_logo $(LOGO_BMP)
- $(obj)/bmp_logo --gen-data $(LOGO_BMP) > $@
+ $(objtree)/bmp_logo --gen-data $(LOGO_BMP) > $@
$(LICENSE_H): $(obj)/bin2header $(srctree)/Licenses/gpl-2.0.txt
cat $(srctree)/Licenses/gpl-2.0.txt | gzip -9 -c | \
- $(obj)/bin2header license_gzip > $(LICENSE_H)
+ $(objtree)/bin2header license_gzip > $(LICENSE_H)
# Let clean descend into subdirs
subdir- += env
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] tools: Execute tools from objtree
2016-11-02 11:21 [U-Boot] [PATCH] tools: Execute tools from objtree Marek Vasut
@ 2016-11-02 11:22 ` Marek Vasut
0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2016-11-02 11:22 UTC (permalink / raw)
To: u-boot
On 11/02/2016 12:21 PM, Marek Vasut wrote:
> Always execute the tools from the build destination directory
> and with a full path, otherwise we may get errors like this
> (from OE-core):
>
> | ERROR: oe_runmake failed
> | cat ./Licenses/gpl-2.0.txt | gzip -9 -c | \
> | tools/bin2header license_gzip > ./include/license.h
> | /bin/sh: 2: tools/bin2header: not found
> | tools/Makefile:256: recipe for target 'include/license.h' failed
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Tom Rini <trini@konsulko.com>
Oops, please ignore, V2 is on the way.
> ---
> tools/Makefile | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tools/Makefile b/tools/Makefile
> index 421414b..7dacedb 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -247,14 +247,14 @@ HOST_EXTRACFLAGS += -include $(srctree)/include/libfdt_env.h \
> __build: $(LOGO-y) $(LICENSE-y)
>
> $(LOGO_H): $(obj)/bmp_logo $(LOGO_BMP)
> - $(obj)/bmp_logo --gen-info $(LOGO_BMP) > $@
> + $(objtree)/bmp_logo --gen-info $(LOGO_BMP) > $@
>
> $(LOGO_DATA_H): $(obj)/bmp_logo $(LOGO_BMP)
> - $(obj)/bmp_logo --gen-data $(LOGO_BMP) > $@
> + $(objtree)/bmp_logo --gen-data $(LOGO_BMP) > $@
>
> $(LICENSE_H): $(obj)/bin2header $(srctree)/Licenses/gpl-2.0.txt
> cat $(srctree)/Licenses/gpl-2.0.txt | gzip -9 -c | \
> - $(obj)/bin2header license_gzip > $(LICENSE_H)
> + $(objtree)/bin2header license_gzip > $(LICENSE_H)
>
> # Let clean descend into subdirs
> subdir- += env
>
--
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-02 11:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-02 11:21 [U-Boot] [PATCH] tools: Execute tools from objtree Marek Vasut
2016-11-02 11:22 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox