Initial import of Leif's work
This commit is contained in:
parent
21026747df
commit
389b31cd71
65 changed files with 7311 additions and 13 deletions
45
grub-core/lib/dtc/libfdt-grub.diff
Normal file
45
grub-core/lib/dtc/libfdt-grub.diff
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
diff -purN libfdt.orig/fdt_rw.c libfdt/fdt_rw.c
|
||||
--- libfdt.orig/fdt_rw.c 2011-05-08 20:45:39.000000000 +0100
|
||||
+++ libfdt/fdt_rw.c 2012-10-19 15:33:11.085523185 +0100
|
||||
@@ -88,9 +88,9 @@ static int _fdt_rw_check_header(void *fd
|
||||
|
||||
#define FDT_RW_CHECK_HEADER(fdt) \
|
||||
{ \
|
||||
- int err; \
|
||||
- if ((err = _fdt_rw_check_header(fdt)) != 0) \
|
||||
- return err; \
|
||||
+ int macro_err; \
|
||||
+ if ((macro_err = _fdt_rw_check_header(fdt)) != 0) \
|
||||
+ return macro_err; \
|
||||
}
|
||||
|
||||
static inline int
|
||||
diff -purN libfdt.orig/libfdt_env.h libfdt/libfdt_env.h
|
||||
--- libfdt.orig/libfdt_env.h 2011-05-08 20:45:39.000000000 +0100
|
||||
+++ libfdt/libfdt_env.h 2012-10-19 16:13:19.051344173 +0100
|
||||
@@ -7,6 +7,9 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
+#pragma GCC diagnostic ignored "-Wcast-align"
|
||||
+#pragma GCC diagnostic ignored "-Wsign-compare"
|
||||
+typedef grub_addr_t uintptr_t;
|
||||
|
||||
#define _B(n) ((unsigned long long)((uint8_t *)&x)[n])
|
||||
static inline uint32_t
|
||||
diff -purN libfdt.orig/libfdt_internal.h libfdt/libfdt_internal.h
|
||||
--- libfdt.orig/libfdt_internal.h 2011-05-08 20:45:39.000000000 +0100
|
||||
+++ libfdt/libfdt_internal.h 2012-10-19 15:33:11.105524731 +0100
|
||||
@@ -60,9 +60,9 @@
|
||||
|
||||
#define FDT_CHECK_HEADER(fdt) \
|
||||
{ \
|
||||
- int err; \
|
||||
- if ((err = fdt_check_header(fdt)) != 0) \
|
||||
- return err; \
|
||||
+ int macro_err; \
|
||||
+ if ((macro_err = fdt_check_header(fdt)) != 0) \
|
||||
+ return macro_err; \
|
||||
}
|
||||
|
||||
int _fdt_check_node_offset (const void *fdt, int offset);
|
||||
Loading…
Add table
Add a link
Reference in a new issue