[Skiboot] [PATCH] pflash: Allow building under yocto.

Stewart Smith stewart at linux.vnet.ibm.com
Mon Apr 18 13:47:53 AEST 2016

Patrick Williams <patrick at stwcx.xyz> writes:
> The makefiles under external/* utilize the $(CROSS_COMPILE) variable
> to determine the cross-compiler prefix.  In a few places,
> $(CROSS_COMPILE)gcc is called instead of $(CC).  The issue with this is
> that yocto build passes some compile flags as part of $(CC) instead of
> $(CFLAGS), the most important of these is '--sysroot=...'.  Without the
> proper --sysroot flag, pflash compile fails to find critical libc
> headers like stdio.h.
> This change delegates setting of $(CC) and $(LD) to
> external/common/rules.mk, which is widely used in the external tree, and
> ensures that:
>     1) $(CC) is used instead of $(CROSS_COMPILE)gcc.
>     2) CC is only set when not passed from the environment.
> Signed-off-by: Patrick Williams <patrick at stwcx.xyz>

Sweet, merged to master as of 3137d249ba10ad6fa7a52486cdacddfab7419189

Stewart Smith
OPAL Architect, IBM.

More information about the Skiboot mailing list