diff --git a/system/fdt/Kconfig b/system/fdt/Kconfig index 6c81f5ba5..0d3af5e54 100644 --- a/system/fdt/Kconfig +++ b/system/fdt/Kconfig @@ -9,7 +9,7 @@ config SYSTEM_FDT ---help--- Enable support for fdt utility tools. -if LIBFDT +if LIBC_FDT config SYSTEM_FDTDUMP bool "system fdtdump command" @@ -103,4 +103,4 @@ config SYSTEM_FDTOVERLAY_PRIORITY endif # SYSTEM_FDTOVERLAY -endif # LIBFDT +endif # LIBC_FDT diff --git a/system/fdt/Makefile b/system/fdt/Makefile index 38583caa8..a0e656e18 100644 --- a/system/fdt/Makefile +++ b/system/fdt/Makefile @@ -52,10 +52,10 @@ ifeq ($(CONFIG_SYSTEM_FDTOVERLAY),y) PRIORITY += $(CONFIG_SYSTEM_FDTOVERLAY_PRIORITY) endif -CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/system/fdt/ -CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)/libs/libc/dtc/libfdt/ +CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)/libs/libc/fdt/ +CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)/libs/libc/fdt/dtc/libfdt/ -VPATH += $(TOPDIR)/libs/libc/dtc/ -DEPPATH += --dep-path $(TOPDIR)/libs/libc/dtc/ +VPATH += $(TOPDIR)/libs/libc/fdt/dtc/ +DEPPATH += --dep-path $(TOPDIR)/libs/libc/fdt/dtc/ include $(APPDIR)/Application.mk diff --git a/system/fdt/version_gen.h b/system/fdt/version_gen.h deleted file mode 100644 index 56fd9a32b..000000000 --- a/system/fdt/version_gen.h +++ /dev/null @@ -1,28 +0,0 @@ -/**************************************************************************** - * apps/system/fdt/version_gen.h - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. The - * ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - ****************************************************************************/ - -#ifndef __SYSTEM_FDT_VERSION_GEN_H -#define __SYSTEM_FDT_VERSION_GEN_H - -/* DTC Version should be same as that in nuttx/libs/libc/dtc/ */ - -#define DTC_VERSION ("DTC "CONFIG_LIBFDT_DTC_VERSION) - -#endif /* __SYSTEM_FDT_VERSION_GEN_H */