Re: [OpenWrt-Devel] [PATCH] Add CMake host tool support

2010-11-18 Thread Bas Mevissen
On 11/18/2010 06:53 PM, Jan Willies wrote: > Unfortunately cmake picks up the host-gcc: > > (cd > /var/tmp/swjawill/openwrt-dockstar/build_dir/target-arm_v5te_uClibc-0.9.30.1_eabi/weechat-0.3.3; > /var/tmp/swjawill/openwrt-dockstar/staging_dir/host/bin/cmake . || exit 1 ); > -- The C compiler id

Re: [OpenWrt-Devel] [PATCH] Add CMake host tool support

2010-11-18 Thread Jan Willies
2010/11/18 Bas Mevissen > On Thu, 18 Nov 2010 15:18:52 +0100, Jan Willies > wrote: > > > define Build/Configure > > > > cd $(PKG_BUILD_DIR) > > $(STAGING_DIR)/../host/bin/cmake . > > endef > > > > The host bin dir is already in the path, so you should be able to call > cmake with

Re: [OpenWrt-Devel] [PATCH] Add CMake host tool support

2010-11-18 Thread Bas Mevissen
On Thu, 18 Nov 2010 15:18:52 +0100, Jan Willies wrote: > define Build/Configure > >         cd $(PKG_BUILD_DIR) >         $(STAGING_DIR)/../host/bin/cmake . > endef > The host bin dir is already in the path, so you should be able to call cmake without defining a patch We could also define $CM

[OpenWrt-Devel] [PATCH] Add CMake host tool support [V2]

2010-11-18 Thread Bas Mevissen
Hi all, The attached patch against trunk adds CMake host tool support. When CONFIG_CMAKE is set in .config, the CMake tools will be build and installed in staging_dir/host/bin. To enable CONFIG_CMAKE, select "Advanced configuration options (for developers) in the main menu and select "Build CMak

Re: [OpenWrt-Devel] [PATCH] Add CMake host tool support

2010-11-18 Thread Jan Willies
Hi Bas, 2010/11/18 Bas Mevissen > On Thu, 18 Nov 2010 14:32:36 +0100, Jan Willies > wrote: > > > The CFLAGS from target/linux/kirkwood/Makefile are > > overriding include/host-build.mk [3]. So removing "include > > $(INCLUDE_DIR)/target.mk [4]" from tools/cmake/Makefile did it for me. > > Did y

Re: [OpenWrt-Devel] [PATCH] Add CMake host tool support

2010-11-18 Thread Bas Mevissen
On Thu, 18 Nov 2010 14:32:36 +0100, Jan Willies wrote: > The CFLAGS from target/linux/kirkwood/Makefile are > overriding include/host-build.mk [3]. So removing "include > $(INCLUDE_DIR)/target.mk [4]" from tools/cmake/Makefile did it for me. > Did you include it on purpose? > Ah, great. That i

Re: [OpenWrt-Devel] [PATCH] Add CMake host tool support

2010-11-18 Thread Jan Willies
2010/11/18 Bas Mevissen > On Thu, 18 Nov 2010 13:49:46 +0100, Bas Mevissen > wrote: > > It looks you are trying to cross compile something that needs to be > > compiled for the host. Is there something defined in your environment > > for cross compiling? > The mail escaped before being finished.

Re: [OpenWrt-Devel] [PATCH] Add CMake host tool support

2010-11-18 Thread Bas Mevissen
On Thu, 18 Nov 2010 13:49:46 +0100, Bas Mevissen wrote: > On Thu, 18 Nov 2010 13:37:25 +0100, Jan Willies > wrote: >> Hi Bas, >> >> 2010/11/17 Bas Mevissen >> The attached patch against trunk adds CMake host tool support. >> >> Thanks for your patch, I hope we can finally update Weechat (which >

Re: [OpenWrt-Devel] [PATCH] Add CMake host tool support

2010-11-18 Thread Bas Mevissen
On Thu, 18 Nov 2010 13:37:25 +0100, Jan Willies wrote: > Hi Bas, > > 2010/11/17 Bas Mevissen > The attached patch against trunk adds CMake host tool support. > > Thanks for your patch, I hope we can finally update Weechat (which > kinda depends on cmake) to something recent. > > I applied you

Re: [OpenWrt-Devel] [PATCH] Add CMake host tool support

2010-11-18 Thread Jan Willies
Hi Bas, 2010/11/17 Bas Mevissen > The attached patch against trunk adds CMake host tool support. > Thanks for your patch, I hope we can finally update Weechat (which kinda depends on cmake) to something recent. I applied your patch but building fails however: (cd /var/tmp/swjawill/openwrt-doc

[OpenWrt-Devel] [PATCH] Add CMake host tool support

2010-11-17 Thread Bas Mevissen
Hi all, The attached patch against trunk adds CMake host tool support. When CONFIG_CMAKE is set in .config, the CMake tools will be build and installed in staging_dir/host/bin. To enable CONFIG_CMAKE, select "Advanced configuration options (for developers) in the main menu and select "Build CMake