From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Fri, 9 Mar 2012 08:53:30 +0100 Subject: [Buildroot] [PATCH 11/13] cmake: move creation of toolchain file to package/pkg-cmaketargets.mk In-Reply-To: References: Message-ID: <20120309085330.7c5f901b@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Le Fri, 9 Mar 2012 07:54:32 +0100, Thomas De Schampheleire 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