[Buildroot] [PATCH 11/13] cmake: move creation of toolchain file to package/pkg-cmaketargets.mk

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Mar 9 07:53:30 UTC 2012


Le Fri, 9 Mar 2012 07:54:32 +0100,
Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> a écrit :

> Currently, BASE_TARGETS is still:
> $(BASE_TARGETS): dirs
> $(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake
> 
> Now that the recipe for toolchainfile.cmake has moved, I find it a bit
> strange that the 'magic' path to this file still appears here.
> What about creating a nicer name and using that in BASE_TARGETS, and
> let the pkg-cmaketargets.mk file resolve the nice name into the actual
> path?

Something like:

CMAKE_TOOLCHAIN_FILE=$(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake

in pkg-cmaketargets.mk

and then in the main Makefile:

$(BASE_TARGETS): dirs $(CMAKE_TOOLCHAIN_FILE)

Is this what you're suggesting?

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list