From ab80e3f2ae5541ad5788daf8041af3bdababd176 Mon Sep 17 00:00:00 2001 From: liaoao Date: Mon, 21 Aug 2023 11:23:23 +0800 Subject: [PATCH] libfdt: modify makefile update LIBFDT to LIBC_FDT move version_gen.h and place it under nuttx/libs/libc/fdt/ change include path to nuttx/libs/libc/fdt/dtc/ Signed-off-by: liaoao --- system/fdt/Kconfig | 4 ++-- system/fdt/Makefile | 8 ++++---- system/fdt/version_gen.h | 28 ---------------------------- 3 files changed, 6 insertions(+), 34 deletions(-) delete mode 100644 system/fdt/version_gen.h diff --git a/system/fdt/Kconfig b/system/fdt/Kconfig index 6c81f5ba56..0d3af5e549 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 38583caa86..a0e656e188 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 56fd9a32b3..0000000000 --- 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 */