diff mbox series

[U-Boot] tools: Include U-Boot libfdt headers from their actual path

Message ID 20180302221342.1319-1-contact@paulk.fr
State Accepted
Commit e0d20dc1521e74b82dbd69be53a048847798a90a
Delegated to: Tom Rini
Headers show
Series [U-Boot] tools: Include U-Boot libfdt headers from their actual path | expand

Commit Message

Paul Kocialkowski March 2, 2018, 10:13 p.m. UTC
There are no headers for libfdt in lib/libfdt, as they are instead
located in scripts/dtc/libfdt. Specifying lib/libfdt for headers
inclusion in host tools results in using the system libfdt headers,
which is not what we want. Change this to the proper path.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini March 5, 2018, 6:53 p.m. UTC | #1
On Fri, Mar 02, 2018 at 11:13:42PM +0100, Paul Kocialkowski wrote:

> There are no headers for libfdt in lib/libfdt, as they are instead
> located in scripts/dtc/libfdt. Specifying lib/libfdt for headers
> inclusion in host tools results in using the system libfdt headers,
> which is not what we want. Change this to the proper path.
> 
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/tools/Makefile b/tools/Makefile
index d3387fad69..f38f68ee47 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -244,7 +244,7 @@  endif # !LOGO_BMP
 #
 HOST_EXTRACFLAGS += -include $(srctree)/include/compiler.h \
 		$(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \
-		-I$(srctree)/lib/libfdt \
+		-I$(srctree)/scripts/dtc/libfdt \
 		-I$(srctree)/tools \
 		-DUSE_HOSTCC \
 		-D__KERNEL_STRICT_NAMES \