diff options
author | Simon Glass <sjg@chromium.org> | 2016-02-22 22:55:45 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-14 19:18:26 -0400 |
commit | aa34fbc087f246cbd83223bed499ca62694787d8 (patch) | |
tree | 2702c73e51f50fc822d347b629582f7232873f4d /lib/Makefile | |
parent | 70d41093c5d6d378a8e750d1829063890a3c7ca5 (diff) | |
download | u-boot-imx-aa34fbc087f246cbd83223bed499ca62694787d8.zip u-boot-imx-aa34fbc087f246cbd83223bed499ca62694787d8.tar.gz u-boot-imx-aa34fbc087f246cbd83223bed499ca62694787d8.tar.bz2 |
fdt: Allow libfdt to be used in SPL
Add an option to enable libfdt in SPL. This can be useful when decoding
FIT files in SPL.
We need to make sure this option is not enabled in SPL by this change.
Also this option needs to be enabled in host builds. Si add a new
IMAGE_USE_LIBFDT #define which can be used in files that are built on the
host but must also build for U-Boot and SPL.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Makefile b/lib/Makefile index 1e21bcc..d49ee62 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -14,8 +14,6 @@ obj-$(CONFIG_LZO) += lzo/ obj-$(CONFIG_ZLIB) += zlib/ obj-$(CONFIG_BZIP2) += bzip2/ obj-$(CONFIG_TIZEN) += tizen/ -obj-$(CONFIG_OF_LIBFDT) += libfdt/ -obj-$(CONFIG_FIT) += libfdt/ obj-$(CONFIG_FIT) += libfdt/ obj-$(CONFIG_CMD_DHRYSTONE) += dhry/ @@ -50,9 +48,7 @@ obj-$(CONFIG_BITREVERSE) += bitrev.o obj-y += list_sort.o endif -ifndef CONFIG_SPL_BUILD -obj-$(CONFIG_OF_LIBFDT) += libfdt/ -endif +obj-$(CONFIG_$(SPL_)OF_LIBFDT) += libfdt/ ifdef CONFIG_SPL_OF_CONTROL obj-$(CONFIG_OF_LIBFDT) += libfdt/ endif |