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 <liaoao@xiaomi.com>
This commit is contained in:
parent
a3dfef117b
commit
1243c0ba4d
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 */
|
Loading…
Reference in New Issue
Block a user