[Buildroot] [PATCH v4 01/11] pkg-cmake.mk: refactor the toolchainfile.cmake generation

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Jun 1 10:54:50 UTC 2014


Dear Samuel Martin,

On Sun,  1 Jun 2014 11:24:23 +0200, Samuel Martin wrote:
> This patch introduces a toolchainfile.cmake.in template which is filled
> by Buildroot.
> 
> Using a toolchainfile.cmake.in template file allows to avoid overloading
> quoting and/or escaping and it becomes much more similar to the
> resulting file.
> 
> This patch also cleans up the quoting style.
> 
> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
> Cc: Baruch Siach <baruch at tkos.co.il>

Reviewed-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

> +	sed \
> +		-e 's:@@HOST_DIR@@:$(call qstrip,$(HOST_DIR)):' \
> +		-e 's:@@STAGING_DIR@@:$(call qstrip,$(STAGING_DIR)):' \
> +		-e 's:@@TARGET_CFLAGS@@:$(call qstrip,$(TARGET_CFLAGS)):' \
> +		-e 's:@@TARGET_CXXFLAGS@@:$(call qstrip,$(TARGET_CXXFLAGS)):' \
> +		-e 's:@@TARGET_CC_NOCCACHE@@:$(call qstrip,$(TARGET_CC_NOCCACHE)):' \
> +		-e 's:@@TARGET_CXX_NOCCACHE@@:$(call qstrip,$(TARGET_CXX_NOCCACHE)):' \
> +		< $(TOPDIR)/support/misc/toolchainfile.cmake.in \

The stdin redirection here is not strictly needed: as argument, sed
takes an input file. But it's not necessary to do another post of the
patch series just for this, I believe.

Thanks,

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


More information about the buildroot mailing list