Skip to contentSkip to conversation

autoconf.h searched on wrong place

PATCH New Silvio Fricke 2 participants 3 messages Apr 16, 2014 – Apr 23, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autoconf.h searched on wrong place

Hi,

please review this patch and/or include it to the barebox mainline.

Cheers,
Silvio

Silvio Fricke (1):
make: generated autoconf.h is placed in $(objtree)

 scripts/Makefile.lib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 7 lines
1.9.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 1/1 make: fix searchpath of generated autoconf.h

If barebox is builded out-of-tree we don't find the autogenerated autoconf.h because we search in the srctree.

With this patch we don't get this error message:

cc1: fatal error: /[...]/barebox/include/generated/autoconf.h: No such file or directory

---
 scripts/Makefile.lib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/Makefile.lib +1 -1
index d403037..cf7e2d5 100644
@@ -376,7 +376,7 @@ cmd_imximage_S_dcd=						\
 
 imxcfg_cpp_flags  = -Wp,-MD,$(depfile) -nostdinc -x assembler-with-cpp \
       -I $(srctree)/include -I $(MACH)/include \
-      -include $(srctree)/include/generated/autoconf.h
+      -include include/generated/autoconf.h
 
 dcd-tmp = $(subst $(comma),_,$(dot-target).dcd.tmp)
 
Signature · 7 lines
1.9.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Tested-by on v1 1/1 Applied
#2 lore raw

Re: [PATCH] make: fix searchpath of generated autoconf.h

Quoted 8 lines · Silvio Fricke

If barebox is builded out-of-tree we don't find the autogenerated autoconf.h because we search in the srctree.

With this patch we don't get this error message:

cc1: fatal error: /[...]/barebox/include/generated/autoconf.h: No such file or directory

Applied, thanks

Sascha

Quoted 26 lines
---
 scripts/Makefile.lib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/Makefile.lib +1 -1
index d403037..cf7e2d5 100644
@@ -376,7 +376,7 @@ cmd_imximage_S_dcd=						\
 
 imxcfg_cpp_flags  = -Wp,-MD,$(depfile) -nostdinc -x assembler-with-cpp \
       -I $(srctree)/include -I $(MACH)/include \
-      -include $(srctree)/include/generated/autoconf.h
+      -include include/generated/autoconf.h
 
 dcd-tmp = $(subst $(comma),_,$(dot-target).dcd.tmp)
 
Signature · 7 lines
1.9.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox