mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2026-07-03 15:28:38 +00:00
Where previously we cherry-picked individual sources from the libfdt project tree, this change instead integrates the entire project tree into the TF-A repository. Doing so reduces the manual overhead of updating libfdt in the future, as we avoid the need to analyse individual source-level dependencies. libfdt, conveniently, also provides a Makefile designed to ease its integration into foreign build systems (like TF-A's), which we also make use of in this change. Source: https://git.kernel.org/pub/scm/utils/dtc/dtc.git/tree/?h=v1.7.2 Change-Id: I8babcfd27019fdd6d255d550491e1bb733745f27 Signed-off-by: Chris Kay <chris.kay@arm.com>
18 lines
449 B
Makefile
18 lines
449 B
Makefile
#
|
|
# Copyright (c) 2016-2025, Arm Limited and Contributors. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
ifndef libfdt-mk
|
|
libfdt-mk := $(lastword $(MAKEFILE_LIST))
|
|
libfdt-root := $(patsubst %/,%,$(dir $(libfdt-mk)))
|
|
|
|
include $(libfdt-root)/Makefile.libfdt
|
|
|
|
LIBFDT_SRCS := $(addprefix $(libfdt-root)/,$(LIBFDT_SRCS))
|
|
INCLUDES += -I$(libfdt-root)
|
|
|
|
$(eval $(call MAKE_LIB,fdt))
|
|
endif
|