On Fri, Oct 20, 2023 at 12:59:57PM -0700, Richard Cochran wrote:
> On Fri, Oct 20, 2023 at 07:15:59PM +0200, Erez wrote:
> 
> > And we can change CC to
> > CC ?= ...
> > 
> > In case CC comes from the build, like in Yocto and Debian.
> 
> Nah, build systems that don't want to use gcc can and should dial what
> they want on the command line:
> 
>    make CC=abcxyz

Or maybe ?= will solve the issue of passing CC into the shell script...


commit d3dd51ba611802d7cbb28631cb943cb882fa4aac
Author: Changqing Li <changqing...@windriver.com>
Date:   Wed Nov 23 08:23:46 2022 +0800

    makefile: use conditional assignment for KBUILD_OUTPUT
    
    Refer [1],from make 4.4, all variables that are marked as export will
    also be passed to the shell started by the shell function. use "=" will
    make KBUILD_OUTPUT always empty for shell function, use "?=" to make
    "export KBUILD_OUTPUT" in enrironment can work.
    
    [snip of 4.4 NEWS]
    * WARNING: Backward-incompatibility!
       Previously makefile variables marked as export were not exported to 
commands
       started by the $(shell ...) function.  Now, all exported variables are
       exported to $(shell ...).
    [snip]


Thanks,
Richard


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to