aboutsummaryrefslogtreecommitdiffstats
path: root/include/host-build.mk
Commit message (Collapse)AuthorAgeFilesLines
* include/host-build.mk: set Host/Exports for Host/Install stepMatthias Schiffer2016-10-061-0/+1
| | | | | | | | | Having a different PATH in Host/Install than in other steps like Host/Build is confusing and easily leads to mistakes. Setting all of Host/Exports makes host builds match target builds (Build/Install is part of $(STAMP_BUILT), which has Build/Exports set). Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* include/host-build.mk: fix ACLOCAL_INCLUDEMatthias Schiffer2016-10-061-1/+1
| | | | | | | | It seems the intention was to add both $(STAGING_DIR_HOST)/... and $(STAGING_DIR)/host/... instead of passing $(STAGING_DIR_HOST) twice. This makes the definition match HOST_CPPFLAGS and HOST_LDFLAGS. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* include/host-build.mk: pass HOST_BUILD_PREFIX to Host/installMatthias Schiffer2016-10-061-2/+2
| | | | | | | Makes it more consistent with package builds. Based-on-patch-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* build: don't add -j for parallel builds with Make 4.2+Matthias Schiffer2016-07-071-1/+1
| | | | | | | | | | | | | | | | | | Make usually passes -j and jobserver arguments as part of MAKEFLAGS. LEDE removes MAKEFLAGS to have better control of the build, and re-adds the jobserver arguments with -j to the Make commandline where desired. Make 4.2+ behave differently with these arguments passed on the commandline than in MAKEFLAGS: -j will override the jobserver argument and the job count will be unlimited. Moving the flags to MAKEFLAGS will need many packages to be changed and tested; therefore, we opt for a less invasive change for now and just remove -j for Make 4.2+, as the jobserver argument alone is enough to enable parallel builds for these Make versions. Signed-off-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* host-build.mk: change default installation prefix of package/* host builds ↵Felix Fietkau2016-01-201-10/+12
| | | | | | | | to staging_dir/target-*/host Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48401 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: include homebrew include/library directory in cflags/ldflags on mac os xFelix Fietkau2015-10-051-0/+5
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47139 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: set CCACHE_DIR for host buildsFelix Fietkau2015-04-141-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45427 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: use SHELL, not BASH for HOST_CONFIGURE_VARSJo-Philipp Wich2015-02-061-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44295 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: remove static tool linking supportJo-Philipp Wich2015-02-061-6/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44286 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: prevent spurious host-build re-builds by touching .built after the ↵Felix Fietkau2014-12-151-0/+1
| | | | | | | | install command before touching .installed Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43721 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: BSD compile fixesFelix Fietkau2013-03-071-1/+1
| | | | | | | | | | | | | | | | following patch allows to build images for Qemu ARM on OpenBSD 5.2 amd64 and FreeBSD 9.1 amd64. Mostly small pieces of code changes to get things right on the specific platform. Updated the README to describe better, which tools on the host are required. Added some kind of prepare scripts to install needed tools on BSD via packages. Signed-off-by: Waldemar Brodkorb <mail@waldemar-brodkorb.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35900 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: fix host build stampfile usage, fixes spurious errors with missing ↵Felix Fietkau2012-10-151-24/+13
| | | | | | opkg host binary after deleting the staging dir git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33776 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add the + token to any commands that can pass through the jobserver, ↵Felix Fietkau2012-09-231-2/+2
| | | | | | fixes parallel build on some systems git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33523 3c298f89-4303-0410-b956-a3cf2f4a3e73
* host-build: add HOST_MAKE_FLAGS similar to package MAKE_FLAGSFelix Fietkau2012-09-221-1/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33509 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: ensure that package/host-build build system code does not run in ↵Felix Fietkau2012-09-171-0/+2
| | | | | | parallel, fixes rare spurious parallel build failures git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33445 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add jobserver support for host buildsFelix Fietkau2012-09-151-1/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33423 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [buildroot] do not pass optimization flags in HOST_CPPFLAGS (#12153)Jo-Philipp Wich2012-09-091-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33351 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [buildroot] introduce a menuconfig option to turn off static linking of host ↵Jo-Philipp Wich2012-08-131-1/+3
| | | | | | utilities git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33154 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] host-build.mk: define a variable HOST_STATIC_LINKING which is set ↵Jo-Philipp Wich2012-08-121-0/+4
| | | | | | to "-static" on non-Darwin systems git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33138 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add PKG_MIRROR_MD5SUM support for host buildsFelix Fietkau2012-06-061-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32082 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools: clean up Makefiles / make ccache workJohn Crispin2012-01-151-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29754 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add a missing wrapper for the refresh target for host buildsFelix Fietkau2011-01-281-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25193 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] Jo-Philipp Wich2010-12-131-1/+11
| | | | | | | | | - implement hooks for hostbuilds - use host build hooks to implement fixups for host build - move separator declaration to rules.mk git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24551 3c298f89-4303-0410-b956-a3cf2f4a3e73
* use PREFIX/bin instead of PREFIX/sbin for all host builds (fixes e2fsprogs path)Felix Fietkau2010-11-221-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24103 3c298f89-4303-0410-b956-a3cf2f4a3e73
* deptest: Install of host tools has to be forced for every test, because the ↵Michael Büsch2010-11-031-2/+2
| | | | | | host staging dir is cleaned prior a test. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23825 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Fix typoMichael Büsch2010-10-161-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23482 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Support force-disabling per-package parallel build with ↵Michael Büsch2010-10-161-1/+7
| | | | | | {PKG,HOST}_BUILD_PARALLEL:=0 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23480 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add an option to default the default build rule to parallel build.Michael Büsch2010-08-201-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22737 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Also support parallel build for host-packagesMichael Büsch2010-08-181-1/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22698 3c298f89-4303-0410-b956-a3cf2f4a3e73
* this patch fixes toolchain parallel build, which reduces build time.Travis Kemen2010-03-051-2/+2
| | | | | | | | | | | | | | | In order to enable parallel build, change line 21 of include/host-build.mk from: override MAKEFLAGS= to: override MAKEFLAGS=$(MAKE_JOBS) -Raphael git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19995 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Prevent unnecessary host package rebuilds.Lars-Peter Clausen2010-01-031-11/+14
| | | | | | | | | Sometimes `make install` touches a file inside the build directory, so it is betterr to create the build stamp after calling `make install` otherwise the package is going to be rebuild even though nothing really changed. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19021 3c298f89-4303-0410-b956-a3cf2f4a3e73
* use $(HOST_CFLAGS) when not cross-compiling. Thanks Daniel GimpelevichAndy Boyett2009-10-301-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18232 3c298f89-4303-0410-b956-a3cf2f4a3e73
* host build: do not hide the configure commandFelix Fietkau2009-09-251-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17716 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix a typo that prevented host build specific variable exports from workingFelix Fietkau2009-04-301-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15512 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add missing bits from [15451]Nicolas Thill2009-04-271-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15453 3c298f89-4303-0410-b956-a3cf2f4a3e73
* clean up automake/pkg-config handling, move separate host/package variable ↵Felix Fietkau2009-04-221-2/+10
| | | | | | exports to templates, fix automake path for host builds git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15339 3c298f89-4303-0410-b956-a3cf2f4a3e73
* move pkg config stuff to per-target exports to prevent interference with ↵Felix Fietkau2009-04-201-0/+2
| | | | | | host builds git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15299 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add a default template for Host/InstallFelix Fietkau2009-04-061-0/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15110 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix calling the update target for host-only buildsFelix Fietkau2009-03-231-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14997 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix quilt variable and stampfile usage for host buildsFelix Fietkau2009-03-171-3/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14910 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add PKG_HOST_ONLY variable to prevent target buildsFelix Fietkau2009-03-171-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14906 3c298f89-4303-0410-b956-a3cf2f4a3e73
* move host build in packages into a separate namespace: ↵Felix Fietkau2009-03-171-5/+11
| | | | | | | | package/<name>/host/<target> this allows dependencies between host and target packages, and saves unnecessary host builds for packages that contain both variants git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14905 3c298f89-4303-0410-b956-a3cf2f4a3e73
* make the compile: host-install dependency independent of the order in which ↵Felix Fietkau2009-03-121-2/+3
| | | | | | the makefiles were included git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14853 3c298f89-4303-0410-b956-a3cf2f4a3e73
* enable Host/Install on compile: if package.mk is includedFelix Fietkau2009-03-121-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14852 3c298f89-4303-0410-b956-a3cf2f4a3e73
* readd $(HOST_CONFIGURE_VARS) to Host/Configure/Default, missed in r14699Andy Boyett2009-03-021-5/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14724 3c298f89-4303-0410-b956-a3cf2f4a3e73
* adjust host-build.mk to bring it closer to package.mkFelix Fietkau2009-02-281-19/+25
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14699 3c298f89-4303-0410-b956-a3cf2f4a3e73
* allow concurrent use of host-build.mk and package.mk as well as their templatesFelix Fietkau2009-02-221-15/+20
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14621 3c298f89-4303-0410-b956-a3cf2f4a3e73
* eliminate redundancy by creating the quilt_used stampfile in the right placeFelix Fietkau2009-02-221-1/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14620 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build system refactoring in preparation for allowing packages to do ↵Felix Fietkau2009-02-221-48/+48
| | | | | | host-build steps git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14610 3c298f89-4303-0410-b956-a3cf2f4a3e73
* allow cvs/git/hg/svn wrap_mirror to work for host tools as wellNicolas Thill2008-11-221-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13313 3c298f89-4303-0410-b956-a3cf2f4a3e73