Skip to contentSkip to conversation

tools: Execute tools from objtree

PATCH New Marek Vasut 1 participant 2 messages Nov 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: Execute tools from objtree

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
---
 tools/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tools/Makefile +3 -3
index 421414b..7dacedb 100644
@@ -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
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 tools: Execute tools from objtree

Quoted 4 lines · Marek Vasut

Always execute the tools from the build destination directory and with a full path, otherwise we may get errors like this (from OE-core):

Quoted 8 lines
| 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

Oops, please ignore, V2 is on the way.

Quoted 27 lines
---
 tools/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tools/Makefile +3 -3
index 421414b..7dacedb 100644
@@ -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
Signature · 2 lines
Best regards,
Marek Vasut