[Buildroot] [PATCH 02/30] toolchain-external: pass CC and CFLAGS as arguments

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Oct 25 12:48:43 UTC 2016


Hello,

On Tue, 25 Oct 2016 14:46:01 +0200, Arnout Vandecappelle wrote:

> >  toolchain-external: TOOLCHAIN_EXTERNAL_CREATE_*_LIB_SYMLINK: use arguments instead of global variables
> >  toolchain-external: TOOLCHAIN_EXTERNAL_INSTALL_*_LIBS: use arguments instead of global variables
> >  toolchain-external: TOOLCHAIN_EXTERNAL_INSTALL_WRAPPER: use arguments instead of global variables
> >  toolchain-external: TOOLCHAIN_EXTERNAL_INSTALL_TARGET_GDBSERVER: use arguments instead of global variables
> > 
> > I find this split a lot more logical than a split by argument being
> > added, as the latter would mean a given function gets modified in two
> > different patches.  
> 
>  Sure, but then it would have been 4 patches instead of 2. The way it was split
> up now was completely illogical IMHO.

There are four patches in the current patch series:

  toolchain-external: pass CC and CFLAGS as arguments
  toolchain-external: pass CC and CFLAGS as arguments
  toolchain-external: pass arguments CROSS to install wrapper
  toolchain-external: pass arguments CC, CFLAGS, INSTALL_DIR while
    installing gdbserver

They are split *exactly* like I said above, except that their commit
title and description are not very good.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list