diff mbox series

patch buildroot/package/dtc

Message ID CO2PR01MB1976EB656E93F73EA89B8FFECC0D0@CO2PR01MB1976.prod.exchangelabs.com
State Not Applicable
Headers show
Series patch buildroot/package/dtc | expand

Commit Message

Enoch W. Sept. 2, 2018, 9:04 p.m. UTC
Since Linux 14.4 kernel has its own libfdt_env.h, grep:
beagleboard/linux/scripts/dtc/libfdt/fdt.c:#include "libfdt_env.h"

We need to reject the almost identical file from the host tools, find:
output/host/include/libfdt_env.h

Or otherwise have fdt16_to_cpu etc. redefinition errors.

The fix is trivial.

Thanks, Enoch.

Comments

Arnout Vandecappelle Sept. 3, 2018, 10:28 p.m. UTC | #1
On 02/09/2018 23:04, Enoch W. wrote:
> Since Linux 14.4 kernel has its own libfdt_env.h, grep:
> beagleboard/linux/scripts/dtc/libfdt/fdt.c:#include "libfdt_env.h"
> 
> We need to reject the almost identical file from the host tools, find:
> output/host/include/libfdt_env.h
> 
> Or otherwise have fdt16_to_cpu etc. redefinition errors.

 This is fixed more elegantly with [1].

 Regards,
 Arnout

[1] http://patchwork.ozlabs.org/patch/964474/

> 
> The fix is trivial.
> 
> Thanks, Enoch.
> 
> 
> 
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
diff mbox series

Patch

From b4686b6a76aae128ca5672a8bdc0e27858f3cb21 Mon Sep 17 00:00:00 2001
From: Enoch <ixew@hotmail.com>
Date: Thu, 30 Aug 2018 18:20:56 -0400
Subject: [PATCH] Linux 14.4 kernel has libfdt_env.h of its own

---
 libfdt/libfdt_env.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libfdt/libfdt_env.h b/libfdt/libfdt_env.h
index eb20538..e3f8723 100644
--- a/libfdt/libfdt_env.h
+++ b/libfdt/libfdt_env.h
@@ -1,5 +1,5 @@ 
-#ifndef LIBFDT_ENV_H
-#define LIBFDT_ENV_H
+#ifndef _LIBFDT_ENV_H
+#define _LIBFDT_ENV_H
 /*
  * libfdt - Flat Device Tree manipulation
  * Copyright (C) 2006 David Gibson, IBM Corporation.
-- 
2.17.1