lib: Makefile: build fdtdec_common.c when OF_LIBFDT selected
authorPeng Fan <peng.fan@nxp.com>
Thu, 6 Jun 2019 07:59:16 +0000 (07:59 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 21 Jun 2019 14:07:11 +0000 (10:07 -0400)
commitd3329f09c7ab6f38a5b481d244f7e96af4a429e8
treeab78e7f60874829fcd23a281251fcef98ee4b722
parent5fafd7e35f03a28748456fe2277f073846946b2f
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>
lib/Makefile