aboutsummaryrefslogtreecommitdiffstats
path: root/include/cmake.mk
Commit message (Collapse)AuthorAgeFilesLines
* include/cmake.mk: Add helper macro to handle conditionals for CMake boolean ↵Vasilis Tsiligiannis2016-04-131-0/+2
| | | | | | | | type variables Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49164 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include/cmake.mk: search in $(STAGING_DIR)/usr instead of plain ↵Felix Fietkau2016-01-251-1/+1
| | | | | | | | $(STAGING_DIR) to avoid picking up stuff from host/ Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48492 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include/cmake.mk: adjust for STAGING_DIR_HOST splitFelix Fietkau2016-01-251-3/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48491 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: for cmake, always use ccache from staging dir instead of relying on ↵Felix Fietkau2016-01-031-4/+1
| | | | | | | | the host Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48079 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cmake.mk: enable -Bsymbolic-functions by default for linking shared libs, ↵Felix Fietkau2015-04-191-2/+3
| | | | | | | | slightly improves performance and compression Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45508 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cmake.mk: add host build supportFelix Fietkau2015-04-061-0/+26
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45282 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: fix CMake assembly builds with ccacheFelix Fietkau2015-03-291-0/+2
| | | | | | | | | | | | CMAKE_ASM_COMPILER is automatically set to CMAKE_C_COMPILER by CMake, but CMAKE_C_COMPILER_ARG1 is lost. This causes assembly builds to fail when ccache is enabled (for example the package fastd on x86). Fix this by explicitly defining CMAKE_ASM_COMPILER and CMAKE_ASM_COMPILER_ARG1. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45119 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cmake: include external toolchain directory in CMAKE_FIND_ROOT_PATH (fixes ↵Felix Fietkau2015-03-161-1/+3
| | | | | | | | #19074) Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44825 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: cmake: prevent inclusion of rpath in binariesJo-Philipp Wich2015-02-081-0/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44328 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: use gcc-provided ar, nm and ranlib where appropriateFelix Fietkau2014-12-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since GCC 4.7, GCC provides its own wrappers around ar, nm and ranlib, which should be used for builds with link-time optimization. Since GCC 4.9, using them actually necessary for LTO builds using convenience libraries to succeed. There are some packages which try to automatically detect if gcc-{ar,nm,ranlib} exist (one example is my package "fastd" in the package repository, which tries to use LTO). This breaks because the OpenWrt build system explicitly sets the binutils versions of these tools. As it doesn't cause any issues to use gcc-{ar,nm,ranlib} instead of {ar,nm,ranlib} even without LTO, this patch just makes OpenWrt use the GCC-provided versions by default, which fixes the build of such packages with GCC 4.9. (I know that builds fail though when clang is used with -flto and gcc-{ar,nm,ranlib}, but as all OpenWrt toolchains are based on GCC, this isn't a real issue.) Completely cleaning the tree (or at least `make clean toolchain/clean`) is necessary to get a consistent state after the binutils plugins support patch and this one (as trying to use gcc-{ar,nm,ranlib} with a binutils built without plugin support will definitely lead to a build failure). Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43784 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include/cmake.mk: fix indentationFelix Fietkau2014-06-111-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41144 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include/cmake.mk: define CMAKE_AR and CMAKE_RANLIB to fix build errorsFelix Fietkau2014-05-301-11/+14
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40885 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cmake.mk: fix support for ccacheFelix Fietkau2013-11-181-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38853 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: cmake: pass toolchain directory to default root find path as wellJo-Philipp Wich2013-08-071-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37737 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cmake.mk: add support for overriding the source dir, and define the cmake ↵Felix Fietkau2012-12-291-1/+4
| | | | | | prefix path to avoid picking up host libraries for target builds (patch by Henning Rogge) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34914 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cmake: add support for V=csFelix Fietkau2012-04-261-1/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31485 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] cmake.mk: fix passing of LDFLAGSJo-Philipp Wich2012-01-091-3/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29701 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cmake: fix ccache command when using host ccache (patch from #9611)Felix Fietkau2011-07-241-2/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27742 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] cmake.mk: fix bogus values for FIND_ROOT_PATH_MODE_*; kept plplot ↵Jo-Philipp Wich2011-06-221-3/+3
| | | | | | from compiling (#9573) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27256 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add LD_LIBRARY to cmake.mkFelix Fietkau2011-05-201-0/+1
| | | | | | | | Otherwise cmake programs try to link with host ld.so Signed-off-by: Jan Willies <jan@willies.info> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26963 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] cmake.mk: don't assume toolchain binaries in .../bin/ if an ↵Jo-Philipp Wich2011-04-111-0/+7
| | | | | | external toolchain is used, rely on `which` instead git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26584 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cmake: Fix ccacheMichael Büsch2011-03-051-2/+16
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25878 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cmake: Pass VERBOSE=1 to the generated makefile to reveal flags and commands ↵Michael Büsch2011-02-051-0/+2
| | | | | | in a verbose openwrt build. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25376 3c298f89-4303-0410-b956-a3cf2f4a3e73
* cmake: Remove -O3 from release CFLAGS. Honor the OpenWRT -Os flag instead.Michael Büsch2011-02-051-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25372 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add a template for cmake packagesFelix Fietkau2011-01-311-0/+33
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25265 3c298f89-4303-0410-b956-a3cf2f4a3e73