qemu:fix ci error

Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
liaoao 2023-09-13 21:25:13 +08:00 committed by archer
parent a0cc455922
commit a2ca68aaa7
4 changed files with 12 additions and 2 deletions

View File

@ -26,6 +26,8 @@ ifeq ($(CONFIG_BOARDCTL),y)
CSRCS += qemu_appinit.c CSRCS += qemu_appinit.c
endif endif
ifeq ($(CONFIG_LIBC_FDT),y)
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)libs$(DELIM)libc$(DELIM)fdt$(DELIM)dtc$(DELIM)libfdt CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)libs$(DELIM)libc$(DELIM)fdt$(DELIM)dtc$(DELIM)libfdt
endif
include $(TOPDIR)/boards/Board.mk include $(TOPDIR)/boards/Board.mk

View File

@ -30,7 +30,10 @@
#include <nuttx/fs/fs.h> #include <nuttx/fs/fs.h>
#include <nuttx/virtio/virtio-mmio.h> #include <nuttx/virtio/virtio-mmio.h>
#include <nuttx/fdt.h> #include <nuttx/fdt.h>
#include <libfdt.h>
#ifdef CONFIG_LIBC_FDT
# include <libfdt.h>
#endif
#include "qemu-armv7a.h" #include "qemu-armv7a.h"

View File

@ -26,6 +26,8 @@ ifeq ($(CONFIG_BOARDCTL),y)
CSRCS += qemu_appinit.c CSRCS += qemu_appinit.c
endif endif
ifeq ($(CONFIG_LIBC_FDT),y)
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)libs$(DELIM)libc$(DELIM)fdt$(DELIM)dtc$(DELIM)libfdt CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)libs$(DELIM)libc$(DELIM)fdt$(DELIM)dtc$(DELIM)libfdt
endif
include $(TOPDIR)/boards/Board.mk include $(TOPDIR)/boards/Board.mk

View File

@ -30,7 +30,10 @@
#include <nuttx/fs/fs.h> #include <nuttx/fs/fs.h>
#include <nuttx/virtio/virtio-mmio.h> #include <nuttx/virtio/virtio-mmio.h>
#include <nuttx/fdt.h> #include <nuttx/fdt.h>
#include <libfdt.h>
#ifdef CONFIG_LIBC_FDT
# include <libfdt.h>
#endif
#include "qemu-armv8a.h" #include "qemu-armv8a.h"