[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [PATCH 40/40] mini-os: compile the dtc submodule for arm64
This patch changes the makefile, make it to compile the DTC submodule for arm64 code. This patch also creates .gitmodules for "dtc". Change-Id: Iea6c98194529bac7af44184fa3fedfef24a12474 Jira: ENTOS-247 Signed-off-by: Huang Shijie <shijie.huang@xxxxxxx> --- .gitmodules | 3 +++ Makefile | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..2d9e0ac --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "dtc"] + path = dtc + url = git://git.kernel.org/pub/scm/utils/dtc/dtc.git diff --git a/Makefile b/Makefile index a03621e..afa14a8 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,13 @@ include Config.mk # Symlinks and headers that must be created before building the C files GENERATED_HEADERS := include/list.h $(ARCH_LINKS) include/mini-os include/$(TARGET_ARCH_FAM)/mini-os +ifeq ($(TARGET_ARCH_FAM),arm) +GENERATED_HEADERS += include/fdt.h include/libfdt.h + +include/%.h: dtc/libfdt/%.h + ln -s ../$^ $@ +endif + EXTRA_DEPS += $(GENERATED_HEADERS) # Include common mini-os makerules. @@ -36,6 +43,14 @@ TARGET := mini-os # Subdirectories common to mini-os SUBDIRS := lib xenbus console +ifeq ($(TARGET_ARCH_FAM),arm) +SUBDIRS += dtc/libfdt +# Device tree support +FDT_SRC := dtc/libfdt/fdt.c dtc/libfdt/fdt_ro.c dtc/libfdt/fdt_strerror.c + +src-y += ${FDT_SRC} +endif + src-$(CONFIG_BLKFRONT) += blkfront.c src-$(CONFIG_TPMFRONT) += tpmfront.c src-$(CONFIG_TPM_TIS) += tpm_tis.c -- 2.7.4 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |