lib: Makefile: build fdtdec_common.c when OF_LIBFDT selected
PATCH 1/1 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.
--- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/Makefile +1 -1
@@ -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_OF_LIBFDT) += fdtdec.o fdtdec_common.o obj-y += hang.o obj-y += linux_compat.o obj-y += linux_string.o
Signature · 1 line
2.16.4
PATCH 1/1 lib: Makefile: build fdtdec_common.c when OF_LIBFDT selected
Quoted 14 lines · Peng Fan
When build
SPL_OF_PLATDATAon i.MX6, meet issue thefdtdec_get_intnot defined, howeverfdtdec.cwill usefdtdec_get_int, so let's compilefdtdec_common.cwhenOF_LIBFDTselected.Signed-off-by Peng Fan <[email protected]>--- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/Makefile +0
-0
lib/Makefile obj-y += crc32.o · line 91
Quoted 5 lines
lib/Makefile +1
-1@@ -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_OF_LIBFDT) += fdtdec.o fdtdec_common.o
Shouldn't this be CONFIG_$(SPL_TPL_)OF_LIBFDT?
Regards
Heinrich
Quoted 4 lines
lib/Makefile +0
-0obj-y += hang.o obj-y += linux_compat.o obj-y += linux_string.o
PATCH 1/1 lib: Makefile: build fdtdec_common.c when OF_LIBFDT selected
Quoted 13 lines
Subject: Re: [PATCH] lib:
Makefile: buildfdtdec_common.cwhenOF_LIBFDTselectedQuoted 9 lines · Peng Fan
When build
SPL_OF_PLATDATAon i.MX6, meet issue thefdtdec_get_intnot defined, howeverfdtdec.cwill usefdtdec_get_int, so let's compilefdtdec_common.cwhenOF_LIBFDTselected.Signed-off-by Peng Fan <[email protected]>--- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines
lib/Makefile obj-y += crc32.o · line 91
Quoted 10 lines
lib/Makefile index 09c45b8122..66ab6295a5 renamed from lib/Makefile +0
-0100644
lib/Makefile +1
-1@@ -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_OF_LIBFDT) += fdtdec.o fdtdec_common.oShouldn't this be CONFIG_$(SPL_TPL_)OF_LIBFDT?
You are right. I'll use this and do a CI build. If no issue, I'll post out v2.
Thanks,
Peng
Quoted 9 lines
Regards
Heinrich
Quoted 4 lines
lib/Makefile +0
-0obj-y += hang.o obj-y += linux_compat.o obj-y += linux_string.o