aboutsummaryrefslogtreecommitdiffstats
path: root/include/host-build.mk
Commit message (Collapse)AuthorAgeFilesLines
* build: fix HOST_CONFIGURE_VARS placementJo-Philipp Wich2017-01-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Instead of passing HOST_CONFIGURE_VARS as arguments to the configure script, pass it as environment variables which brings the logic in line with the behaviour of package-defaults.mk. The change is needed since passing environment variables as configure parameters only works with GNU autoconf which evaluates command line arguments looking like variable assignments. Doing the same with non-autoconf configure scripts is not guaranteed to work since such scripts might terminate due to unknown argument errors. One example case is the cmake configure script which bails out when called as "./configure LDFLAGS=..." but not when called as "LDFLAGS=... ./configure". Also change the SHELL override to CONFIG_SHELL in the default HOST_CONFIGURE_VARS as the former is not properly propagated through the various GNU configure invocations since it gets lost when configure re- executes itself. A prior attempt to change the variable placement had to be reverted due to the missing SHELL -> CONFIG_SHELL change, leading to misgenerated libtool executables in various packages. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* build: remove obsolete parallel build related optionsFelix Fietkau2017-01-101-7/+2
| | | | | | Always use the main make jobserver, which has been the default for ages Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Revert "build: fix HOST_CONFIGURE_VARS placement"Jo-Philipp Wich2017-01-051-1/+1
| | | | | | | | | This reverts commit 8395b63aac616f72fd835c59240fc2a4a6b28106. Various host builds currently rely on the broken behaviour of HOST_CONFIGURE_VARS so roll back to the previous state. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* build: fix HOST_CONFIGURE_VARS placementJo-Philipp Wich2017-01-051-1/+1
| | | | | | | | | | Ensure that HOST_CONFIGURE_VARS are set before the actual configure command instead of passing them as configure command arguments. This change brings host-build.mk in line with package-defaults.mk and makes host configure environment variables work as expected. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* host-build: remove openssl include path from host cflagsFelix Fietkau2017-01-051-5/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: add defaults for PKG_SOURCE, PKG_SOURCE_SUBDIR, PKG_VERSIONFelix Fietkau2016-12-221-1/+2
| | | | | | | | This makes it easier to unify versioning of git based package downloads. PKG_SOURCE_DATE along with an 8-character abbreviation of the git hash is used as PKG_VERSION, PKG_RELEASE should be used like normal packages. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: implement make check and make package/X/checkFelix Fietkau2016-12-171-2/+6
| | | | | | | | | | | | | | | | This is intended to be used for a wide array of package sanity checks. The first check that is implemented is for the hash of downloaded files. It checks: - Missing hash - Use of SHA256 instead of MD5 - dl/<file> hash not matching hash in makefile - deprecated MD5SUM variable The deprecated MD5SUM variable check is skipped for feeds/ until OpenWrt is updated as well Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: remove duplicate Download/default definition from include/host-build.mkFelix Fietkau2016-12-161-10/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* include/host-build.mk: use STAGING_DIR_HOSTPKGJo-Philipp Wich2016-11-011-1/+1
| | | | | | | Instead of hardcoding $(STAGING_DIR)/host, use the new $(STAGING_DIR_HOSTPKG) variable to refer to the directory. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* build: copy contents of 'src' folder to build dirs (if present)Alexandru Ardelean2016-10-151-0/+1
| | | | | | | | | | | | | | | | | | | | | The normal Prepare step for a build is unpack, apply patches. But for certain packages, patches contain whole files, which would be nice to have separately and copied over as a last step in the Prepare phase. We need it for some other packages + patches, but I think the 'hostapd' package can be used as a test for this. As a quick note: the reason the condition is being evaluated as `[ ! -d ./src/ ] || $(CP) ./src/* $(HOST_BUILD_DIR)` and not with `[ -d ./src/ ] && $(CP) ./src/* $(HOST_BUILD_DIR)` is that the latter would translate in a build failure if the `src` folder is not present (the exit code would be 1). The first one, succeeds for both cases (if `src` present or not). Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* 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
| | | | | | | | | | Using HOST_BUILD_PREFIX instead of STAGING_DIR_HOST will make the argument work as expected from packages. Nothing changes for tools, for which HOST_BUILD_PREFIX and STAGING_DIR_HOST are equivalent. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* build: pass $(STAGING_DIR_HOST) to Host/InstallFelix Fietkau2016-08-231-2/+2
| | | | | | makes it more consistent with package builds Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: don't add -j for parallel builds with Make 4.2+Matthias Schiffer2016-06-151-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> SVN-Revision: 48401
* 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> SVN-Revision: 47139
* build: set CCACHE_DIR for host buildsFelix Fietkau2015-04-141-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45427
* include: use SHELL, not BASH for HOST_CONFIGURE_VARSJo-Philipp Wich2015-02-061-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44295
* include: remove static tool linking supportJo-Philipp Wich2015-02-061-6/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44286
* 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> SVN-Revision: 43721
* 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> SVN-Revision: 35900
* 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 SVN-Revision: 33776
* 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 SVN-Revision: 33523
* host-build: add HOST_MAKE_FLAGS similar to package MAKE_FLAGSFelix Fietkau2012-09-221-1/+5
| | | | SVN-Revision: 33509
* 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 SVN-Revision: 33445
* build: add jobserver support for host buildsFelix Fietkau2012-09-151-1/+7
| | | | SVN-Revision: 33423
* do not pass optimization flags in HOST_CPPFLAGS (#12153)Jo-Philipp Wich2012-09-091-1/+1
| | | | SVN-Revision: 33351
* introduce a menuconfig option to turn off static linking of host utilitiesJo-Philipp Wich2012-08-131-1/+3
| | | | SVN-Revision: 33154
* host-build.mk: define a variable HOST_STATIC_LINKING which is set to ↵Jo-Philipp Wich2012-08-121-0/+4
| | | | | | "-static" on non-Darwin systems SVN-Revision: 33138
* build: add PKG_MIRROR_MD5SUM support for host buildsFelix Fietkau2012-06-061-0/+1
| | | | SVN-Revision: 32082
* tools: clean up Makefiles / make ccache workJohn Crispin2012-01-151-0/+1
| | | | SVN-Revision: 29754
* add a missing wrapper for the refresh target for host buildsFelix Fietkau2011-01-281-0/+1
| | | | SVN-Revision: 25193
* - implement hooks for hostbuilds - use host build hooks to implement fixups ↵Jo-Philipp Wich2010-12-131-1/+11
| | | | | | for host build - move separator declaration to rules.mk SVN-Revision: 24551
* use PREFIX/bin instead of PREFIX/sbin for all host builds (fixes e2fsprogs path)Felix Fietkau2010-11-221-1/+2
| | | | SVN-Revision: 24103
* 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. SVN-Revision: 23825
* Fix typoMichael Büsch2010-10-161-2/+2
| | | | SVN-Revision: 23482
* Support force-disabling per-package parallel build with ↵Michael Büsch2010-10-161-1/+7
| | | | | | {PKG,HOST}_BUILD_PARALLEL:=0 SVN-Revision: 23480
* Add an option to default the default build rule to parallel build.Michael Büsch2010-08-201-1/+1
| | | | SVN-Revision: 22737
* Also support parallel build for host-packagesMichael Büsch2010-08-181-1/+3
| | | | SVN-Revision: 22698
* 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 SVN-Revision: 19995
* 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. SVN-Revision: 19021
* use $(HOST_CFLAGS) when not cross-compiling. Thanks Daniel GimpelevichAndy Boyett2009-10-301-0/+1
| | | | SVN-Revision: 18232
* host build: do not hide the configure commandFelix Fietkau2009-09-251-1/+1
| | | | SVN-Revision: 17716
* fix a typo that prevented host build specific variable exports from workingFelix Fietkau2009-04-301-2/+2
| | | | SVN-Revision: 15512
* add missing bits from [15451]Nicolas Thill2009-04-271-2/+2
| | | | SVN-Revision: 15453
* 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 SVN-Revision: 15339
* move pkg config stuff to per-target exports to prevent interference with ↵Felix Fietkau2009-04-201-0/+2
| | | | | | host builds SVN-Revision: 15299
* add a default template for Host/InstallFelix Fietkau2009-04-061-0/+9
| | | | SVN-Revision: 15110
* fix calling the update target for host-only buildsFelix Fietkau2009-03-231-0/+1
| | | | SVN-Revision: 14997