diff options
| author | Atish Patra <[email protected]> | 2019-01-09 00:42:37 -0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2019-01-18 10:05:12 +0530 |
| commit | e2ce15cb3be93c3ba8d380a1f0348a6df8606e2a (patch) | |
| tree | ae7f60e268d84662523ee4ea0321c0dffa010d3a /platform/common/libfdt/objects.mk | |
| parent | 1901e8a287bcf7edeeb7aeef05df00675754f2a9 (diff) | |
platform: Add libfdt support.
Some of the platform (i.e. SiFive FU540) requires Device
Tree modification before it is passed to higher stages.
Add libfdt support now to help this process. Libfdt should
only be included per platform basis.
Signed-off-by: Atish Patra <[email protected]>
Diffstat (limited to 'platform/common/libfdt/objects.mk')
| -rw-r--r-- | platform/common/libfdt/objects.mk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/platform/common/libfdt/objects.mk b/platform/common/libfdt/objects.mk new file mode 100644 index 00000000..1ae1cacd --- /dev/null +++ b/platform/common/libfdt/objects.mk @@ -0,0 +1,15 @@ +# +# Copyright (c) 2018 Western Digital Corporation or its affiliates. +# +# Authors: +# Atish Patra<[email protected]> +# +# SPDX-License-Identifier: BSD-2-Clause +# + +libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \ + fdt_empty_tree.o +$(foreach file, $(libfdt_files), \ + $(eval CFLAGS_$(file) = -I$(src)/../../common/libfdt)) + +platform-common-objs-$(PLATFORM_INCLUDE_LIBFDT) += $(addprefix libfdt/,$(libfdt_files)) |
