diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-06-06 07:59:16 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-06-21 10:07:11 -0400 |
commit | d3329f09c7ab6f38a5b481d244f7e96af4a429e8 (patch) | |
tree | ab78e7f60874829fcd23a281251fcef98ee4b722 /lib/Makefile | |
parent | 5fafd7e35f03a28748456fe2277f073846946b2f (diff) | |
download | u-boot-d3329f09c7ab6f38a5b481d244f7e96af4a429e8.zip u-boot-d3329f09c7ab6f38a5b481d244f7e96af4a429e8.tar.gz u-boot-d3329f09c7ab6f38a5b481d244f7e96af4a429e8.tar.bz2 |
lib: Makefile: build fdtdec_common.c when OF_LIBFDT selected
When build SPL_OF_PLATDATA on i.MX6, meet issue the fdtdec_get_int
not defined, however fdtdec.c will use fdtdec_get_int, so let's
compile fdtdec_common.c when OF_LIBFDT selected.
Since there is also SPL_OF_LIBFDT, so need to use
CONFIG_$(SPL_TPL_)OF_LIBFDT.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile index 09c45b8..2fffd68 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -88,7 +88,7 @@ obj-y += crc32.o obj-$(CONFIG_CRC32C) += crc32c.o obj-y += ctype.o obj-y += div64.o -obj-$(CONFIG_OF_LIBFDT) += fdtdec.o +obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += fdtdec.o fdtdec_common.o obj-y += hang.o obj-y += linux_compat.o obj-y += linux_string.o |