Skip to contentSkip to conversation

lib: Makefile: build fdtdec_common.c when OF_LIBFDT selected

PATCH New Peng Fan 2 participants 3 messages May 31, 2019 – Jun 6, 2019 Library code

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

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
index 09c45b8122..66ab6295a5 100644
@@ -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
#1 lore raw

PATCH 1/1 lib: Makefile: build fdtdec_common.c when OF_LIBFDT selected

Quoted 14 lines · Peng Fan

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 +0 -0
index 09c45b8122..66ab6295a5 100644

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 -0
  obj-y += hang.o
  obj-y += linux_compat.o
  obj-y += linux_string.o
author
#2 lore raw

PATCH 1/1 lib: Makefile: build fdtdec_common.c when OF_LIBFDT selected

Quoted 13 lines

Subject: Re: [PATCH] lib: Makefile: build fdtdec_common.c when OF_LIBFDT selected

Quoted 9 lines · Peng Fan

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(-)
Quoted 12 lines

lib/Makefile obj-y += crc32.o · line 91

Quoted 10 lines
lib/Makefile index 09c45b8122..66ab6295a5 renamed from lib/Makefile +0 -0

100644

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?

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 -0
  obj-y += hang.o
  obj-y += linux_compat.o
  obj-y += linux_string.o