Skip to content

Commit

Permalink
uboot-lantiq: fix compile with modern host dtc
Browse files Browse the repository at this point in the history
In dtc version 1.4.6 the macro names in header include guards changed,
but the build relies on them matching in order to replace selected
headers. This is a horrible hack to work around this.

Signed-off-by: Thomas Nixon <tom@tomn.co.uk>
  • Loading branch information
tomjnixon authored and hauke committed Oct 7, 2018
1 parent 43e71e0 commit 6b729e1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions package/boot/uboot-lantiq/patches/200-fix-dtc-header-guard.patch
@@ -0,0 +1,19 @@
--- a/include/libfdt_env.h
+++ b/include/libfdt_env.h
@@ -8,6 +8,7 @@

#ifndef _LIBFDT_ENV_H
#define _LIBFDT_ENV_H
+#define LIBFDT_ENV_H

#include "compiler.h"
#include "linux/types.h"
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -1,5 +1,6 @@
#ifndef _LIBFDT_H
#define _LIBFDT_H
+#define LIBFDT_H
/*
* libfdt - Flat Device Tree manipulation
* Copyright (C) 2006 David Gibson, IBM Corporation.

0 comments on commit 6b729e1

Please sign in to comment.