From 0af79fbb6779921d3f1962773adb7fb57d3c89d4 Mon Sep 17 00:00:00 2001 From: Silvio Fricke Date: Wed, 16 Apr 2014 15:56:12 +0200 Subject: [PATCH] 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 Signed-off-by: Silvio Fricke Signed-off-by: Sascha Hauer --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index d403037c1..cf7e2d54f 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -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)