diff options
author | andrew <andrew@FreeBSD.org> | 2014-11-01 10:50:18 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2014-11-01 10:50:18 +0000 |
commit | a15a6f7e406ccb9e3cdb2d7fd6fe748685139b77 (patch) | |
tree | 38574ac398baa5f3ed1ec536e0cf7f0b9428ed9b /sys/boot/uboot | |
parent | eeff99101ea1d0e6687a5a1743c9fdc912521953 (diff) | |
download | FreeBSD-src-a15a6f7e406ccb9e3cdb2d7fd6fe748685139b77.zip FreeBSD-src-a15a6f7e406ccb9e3cdb2d7fd6fe748685139b77.tar.gz |
Move the definitions of the fdt functions from a uboot header to a new fdt
header. There is nothing in the fdt spec that ties it to U-Boot.
While here sort and fix the signature of fdt_setup_fdtp.
MFC after: 1 week
Diffstat (limited to 'sys/boot/uboot')
-rw-r--r-- | sys/boot/uboot/common/metadata.c | 2 | ||||
-rw-r--r-- | sys/boot/uboot/lib/Makefile | 2 | ||||
-rw-r--r-- | sys/boot/uboot/lib/libuboot.h | 5 | ||||
-rw-r--r-- | sys/boot/uboot/lib/module.c | 4 |
4 files changed, 6 insertions, 7 deletions
diff --git a/sys/boot/uboot/common/metadata.c b/sys/boot/uboot/common/metadata.c index f986562..c00b560 100644 --- a/sys/boot/uboot/common/metadata.c +++ b/sys/boot/uboot/common/metadata.c @@ -43,7 +43,7 @@ __FBSDID("$FreeBSD$"); #include "glue.h" #if defined(LOADER_FDT_SUPPORT) -#include "libuboot.h" +#include <fdt_platform.h> #endif static int diff --git a/sys/boot/uboot/lib/Makefile b/sys/boot/uboot/lib/Makefile index 4c9e591..1a3f5e9 100644 --- a/sys/boot/uboot/lib/Makefile +++ b/sys/boot/uboot/lib/Makefile @@ -27,7 +27,7 @@ LOADER_FDT_SUPPORT= no .endif .if ${LOADER_FDT_SUPPORT} == "yes" -CFLAGS+= -DLOADER_FDT_SUPPORT +CFLAGS+= -DLOADER_FDT_SUPPORT -I${.CURDIR}/../../fdt .endif # Pick up FDT includes diff --git a/sys/boot/uboot/lib/libuboot.h b/sys/boot/uboot/lib/libuboot.h index 82410a0..79005f2 100644 --- a/sys/boot/uboot/lib/libuboot.h +++ b/sys/boot/uboot/lib/libuboot.h @@ -72,8 +72,3 @@ void reboot(void); int uboot_diskgetunit(int type, int type_unit); -#if defined(LOADER_FDT_SUPPORT) -extern int fdt_setup_fdtp(); -extern int fdt_copy(vm_offset_t); -#endif - diff --git a/sys/boot/uboot/lib/module.c b/sys/boot/uboot/lib/module.c index d9b3dc0..ed887b7 100644 --- a/sys/boot/uboot/lib/module.c +++ b/sys/boot/uboot/lib/module.c @@ -34,6 +34,10 @@ __FBSDID("$FreeBSD$"); #include <stand.h> #include <string.h> +#if defined(LOADER_FDT_SUPPORT) +#include <fdt_platform.h> +#endif + #include "bootstrap.h" #include "libuboot.h" |