The problem I think is here

Makefile contents lines 337 to 343:

> 
> # This comment is on line 337
> ifeq ($(call try-build,$(SOURCE_STATIC),$(CFLAGS),$(LDFLAGS) -static),y)
> CFLAGS += -DCONFIG_GUEST_INIT
> GUEST_INIT := guest/init
> GUEST_OBJS = guest/guest_init.o
> ifeq ($(ARCH_PRE_INIT),)
> GUEST_INIT_FLAGS += -static $(PIE_FLAGS)
> 

Hunk 2 of external-crosscompiler.patch

> 
> @@ -343,7 +337,7 @@ $(warning No static libc found. Skipping guest init)
> endif
> 
> ifeq (y,$(ARCH_WANT_LIBFDT))
> - ifneq ($(call try-build,$(SOURCE_LIBFDT),$(CFLAGS),-lfdt),y)
> + ifneq ($(call try-build,$(SOURCE_LIBFDT),$(CPPFLAGS) $(CFLAGS),-lfdt),y)
> 
> $(error No libfdt found. Please install libfdt-dev package)
> else
> CFLAGS_DYNOPT += -DCONFIG_HAS_LIBFDT
> 
> 
> 

Would the issue here be that the patch is trying to remove a line that is not 
present?
Closest I can find to what the patch file alludes to is more around line 370:

> 
> else ifeq ($(call try-build,$(SOURCE_LIBFDT),$(CFLAGS),-lfdt),y)
> LIBFDT_STATIC :=
> CFLAGS_DYNOPT += -DCONFIG_HAS_LIBFDT
> CFLAGS_STATOPT += -DCONFIG_HAS_LIBFDT
> LIBS_DYNOPT += -lfdt
> LIBS_STATOPT += -lfdt
> else
> $(error No libfdt found. Please install libfdt-dev package or set
> LIBFDT_DIR)
> 

Except the patch is looking for an ifneq instead of an ifeq/else ifeq
(Note the ifneq at line 370 is the only place where the string "$(call 
try-build,$(SOURCE_LIBFDT),$(CFLAGS),-lfdt),y" exists in the makefile)

If my build environment may be at fault, my host machine is running ubuntu 
20.04 (x86) and I'm building for a device using an AMD embedded processor 
(AMD64)
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7744): 
https://lists.yoctoproject.org/g/meta-virtualization/message/7744
Mute This Topic: https://lists.yoctoproject.org/mt/95519084/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to