Commit Graph

68 Commits

Author SHA1 Message Date
Felix Fietkau
4170267f5a build: pass $(STAGING_DIR_HOST) to Host/Install
makes it more consistent with package builds

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-08-23 11:56:13 +02:00
Matthias Schiffer
6fb212f293
build: don't add -j for parallel builds with Make 4.2+
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>
2016-06-15 19:26:17 +02:00
Felix Fietkau
03bc8d94f0 host-build.mk: change default installation prefix of package/* host builds to staging_dir/target-*/host
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48401
2016-01-20 19:12:13 +00:00
Felix Fietkau
48374a3a9c build: include homebrew include/library directory in cflags/ldflags on mac os x
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47139
2015-10-05 14:11:30 +00:00
Felix Fietkau
c99c9f875e build: set CCACHE_DIR for host builds
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45427
2015-04-14 00:00:55 +00:00
Jo-Philipp Wich
60eef7aefd include: use SHELL, not BASH for HOST_CONFIGURE_VARS
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44295
2015-02-06 13:14:29 +00:00
Jo-Philipp Wich
971ec0283c include: remove static tool linking support
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44286
2015-02-06 00:00:47 +00:00
Felix Fietkau
f6f0984c43 build: prevent spurious host-build re-builds by touching .built after the install command before touching .installed
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43721
2014-12-15 20:14:27 +00:00
Felix Fietkau
1f77bfff96 build: BSD compile fixes
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>

SVN-Revision: 35900
2013-03-07 17:32:29 +00:00
Felix Fietkau
6d1884c583 build: fix host build stampfile usage, fixes spurious errors with missing opkg host binary after deleting the staging dir
SVN-Revision: 33776
2012-10-15 13:19:41 +00:00
Felix Fietkau
ed2bf29be5 build: add the + token to any commands that can pass through the jobserver, fixes parallel build on some systems
SVN-Revision: 33523
2012-09-23 09:50:01 +00:00
Felix Fietkau
1c108d3318 host-build: add HOST_MAKE_FLAGS similar to package MAKE_FLAGS
SVN-Revision: 33509
2012-09-22 20:10:28 +00:00
Felix Fietkau
b086475e1e build: ensure that package/host-build build system code does not run in parallel, fixes rare spurious parallel build failures
SVN-Revision: 33445
2012-09-17 11:17:26 +00:00
Felix Fietkau
f19dbfff91 build: add jobserver support for host builds
SVN-Revision: 33423
2012-09-15 12:34:48 +00:00
Jo-Philipp Wich
8726a422cd do not pass optimization flags in HOST_CPPFLAGS (#12153)
SVN-Revision: 33351
2012-09-09 21:35:42 +00:00
Jo-Philipp Wich
29b91ef01a introduce a menuconfig option to turn off static linking of host utilities
SVN-Revision: 33154
2012-08-13 00:26:34 +00:00
Jo-Philipp Wich
94a96244f6 host-build.mk: define a variable HOST_STATIC_LINKING which is set to "-static" on non-Darwin systems
SVN-Revision: 33138
2012-08-12 12:34:25 +00:00
Felix Fietkau
b50cfbb179 build: add PKG_MIRROR_MD5SUM support for host builds
SVN-Revision: 32082
2012-06-06 14:08:47 +00:00
John Crispin
ccb6b0a063 tools: clean up Makefiles / make ccache work
SVN-Revision: 29754
2012-01-15 11:43:13 +00:00
Felix Fietkau
d288f855e3 add a missing wrapper for the refresh target for host builds
SVN-Revision: 25193
2011-01-28 12:13:58 +00:00
Jo-Philipp Wich
dbf8d9c516 - implement hooks for hostbuilds - use host build hooks to implement fixups for host build - move separator declaration to rules.mk
SVN-Revision: 24551
2010-12-13 19:04:33 +00:00
Felix Fietkau
380ea005e1 use PREFIX/bin instead of PREFIX/sbin for all host builds (fixes e2fsprogs path)
SVN-Revision: 24103
2010-11-22 18:49:18 +00:00
Michael Büsch
050902efd7 deptest: Install of host tools has to be forced for every test, because the host staging dir is cleaned prior a test.
SVN-Revision: 23825
2010-11-03 14:58:32 +00:00
Michael Büsch
dc7a68165d Fix typo
SVN-Revision: 23482
2010-10-16 18:46:22 +00:00
Michael Büsch
d4807cf557 Support force-disabling per-package parallel build with {PKG,HOST}_BUILD_PARALLEL:=0
SVN-Revision: 23480
2010-10-16 18:42:58 +00:00
Michael Büsch
fde498904f Add an option to default the default build rule to parallel build.
SVN-Revision: 22737
2010-08-20 14:48:59 +00:00
Michael Büsch
f4daa84832 Also support parallel build for host-packages
SVN-Revision: 22698
2010-08-18 14:23:06 +00:00
Travis Kemen
cf7199f48b this patch fixes toolchain parallel build, which reduces build time.
In order to enable parallel build, change line 21 of
include/host-build.mk from:

override MAKEFLAGS=

to:

override MAKEFLAGS=$(MAKE_JOBS)

-Raphael

SVN-Revision: 19995
2010-03-05 20:15:12 +00:00
Lars-Peter Clausen
144fd07cd8 Prevent unnecessary host package rebuilds.
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.

SVN-Revision: 19021
2010-01-03 18:00:28 +00:00
Andy Boyett
1141aecd2a use $(HOST_CFLAGS) when not cross-compiling. Thanks Daniel Gimpelevich
SVN-Revision: 18232
2009-10-30 22:52:27 +00:00
Felix Fietkau
7de1e0f116 host build: do not hide the configure command
SVN-Revision: 17716
2009-09-25 09:28:14 +00:00
Felix Fietkau
e3fc6c9b88 fix a typo that prevented host build specific variable exports from working
SVN-Revision: 15512
2009-04-30 14:15:45 +00:00
Nicolas Thill
f0a3d4d501 add missing bits from [15451]
SVN-Revision: 15453
2009-04-27 16:02:21 +00:00
Felix Fietkau
63129f9b4c clean up automake/pkg-config handling, move separate host/package variable exports to templates, fix automake path for host builds
SVN-Revision: 15339
2009-04-22 22:05:55 +00:00
Felix Fietkau
729e0fa4d1 move pkg config stuff to per-target exports to prevent interference with host builds
SVN-Revision: 15299
2009-04-20 18:56:57 +00:00
Felix Fietkau
35073025b4 add a default template for Host/Install
SVN-Revision: 15110
2009-04-06 09:56:06 +00:00
Felix Fietkau
0a81b47617 fix calling the update target for host-only builds
SVN-Revision: 14997
2009-03-23 18:33:24 +00:00
Felix Fietkau
9b96b24e32 fix quilt variable and stampfile usage for host builds
SVN-Revision: 14910
2009-03-17 03:21:52 +00:00
Felix Fietkau
7ec4ad271e add PKG_HOST_ONLY variable to prevent target builds
SVN-Revision: 14906
2009-03-17 02:37:04 +00:00
Felix Fietkau
ddcfaeb1e5 move host build in packages into a separate namespace: package/<name>/host/<target> this allows dependencies between host and target packages, and saves unnecessary host builds for packages that contain both variants
SVN-Revision: 14905
2009-03-17 02:20:34 +00:00
Felix Fietkau
b29f9112df make the compile: host-install dependency independent of the order in which the makefiles were included
SVN-Revision: 14853
2009-03-12 14:07:08 +00:00
Felix Fietkau
252c2229f8 enable Host/Install on compile: if package.mk is included
SVN-Revision: 14852
2009-03-12 14:00:26 +00:00
Andy Boyett
4911754522 readd $(HOST_CONFIGURE_VARS) to Host/Configure/Default, missed in r14699
SVN-Revision: 14724
2009-03-02 03:03:21 +00:00
Felix Fietkau
333fc3f7e1 adjust host-build.mk to bring it closer to package.mk
SVN-Revision: 14699
2009-02-28 21:03:17 +00:00
Felix Fietkau
aa0778f77e allow concurrent use of host-build.mk and package.mk as well as their templates
SVN-Revision: 14621
2009-02-22 18:10:05 +00:00
Felix Fietkau
bc6fcb0067 eliminate redundancy by creating the quilt_used stampfile in the right place
SVN-Revision: 14620
2009-02-22 17:50:31 +00:00
Felix Fietkau
7eb1589875 build system refactoring in preparation for allowing packages to do host-build steps
SVN-Revision: 14610
2009-02-22 04:37:20 +00:00
Nicolas Thill
6b392a4f9f allow cvs/git/hg/svn wrap_mirror to work for host tools as well
SVN-Revision: 13313
2008-11-22 04:38:20 +00:00
Felix Fietkau
e2f7a60283 fixes for refresh/update handling
SVN-Revision: 9063
2007-09-29 04:29:11 +00:00
Felix Fietkau
d1933f9761 move a stampfile to make it easier to override the patch template
SVN-Revision: 9062
2007-09-29 03:39:57 +00:00