Felix Fietkau
5df4ff2973
build: create pkginfo dir earlier to avoid build breakage
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33633 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-06 22:42:57 +00:00
Felix Fietkau
6683f47568
build: rework the package/install step - collect package install lists during package/compile, then install all packages at once
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33631 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-06 16:01:06 +00:00
Felix Fietkau
1281f1c74c
build: ensure that package/host-build build system code does not run in parallel, fixes rare spurious parallel build failures
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33445 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-17 11:17:26 +00:00
Felix Fietkau
d5e0222429
build: move the -j flag to package.mk instead of grabbing it from makeflags, otherwise it occasionally gets omitted on full builds
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33422 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-15 12:16:14 +00:00
Felix Fietkau
397d1a3496
build: add a config option for passing the top-level make jobserver to packages that have parallel build enabled, significantly improves parallelization and gets rid of CPU overcommit during intra-package parallel builds
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33414 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-15 10:21:24 +00:00
John Crispin
3f157df8b9
[include] use autoreconf hook instead of manual call
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32837 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-25 10:34:06 +00:00
Felix Fietkau
0ec23389f8
build: add a config option for choosing the prefered standard c++ library and add uclibc++.mk to make this easy to handle in packages
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32369 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-14 20:26:04 +00:00
Felix Fietkau
8ef94e67c3
build: add a variable for injecting config variable dependencies for the .prepared stamp
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32368 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-14 20:26:00 +00:00
Felix Fietkau
4cd7614715
package.mk: unexport the QUIET variable, it affects some packages like xapian-bindings
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32196 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-11 15:07:51 +00:00
Felix Fietkau
9db9b0ede7
build: generate a list of provided libraries for each ipkg file (includes provided libraries from packages that the exporting package depends on)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32172 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-10 20:27:41 +00:00
Felix Fietkau
01c3f30680
build: improve reliability of PKG_CONFIG_DEPENDS, remove old .configured_* stamps before creating a new one
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28770 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-05 19:09:40 +00:00
Felix Fietkau
cb87d20a4c
fix a small logic error in package download
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28395 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-09 16:54:03 +00:00
Felix Fietkau
0102ad4ea0
build system: add a feature that allows you to pull sources from a git tree instead of the usual tarball
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28394 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-09 16:33:59 +00:00
Felix Fietkau
06088681bd
build system: add support for download-time make hooks
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28322 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-30 11:12:13 +00:00
Felix Fietkau
17057a805e
add support for md5sum checks for mirrored tarballs of packages with version control source urls
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26260 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-21 23:02:06 +00:00
Felix Fietkau
8ca99461fe
build: move the CCACHE_DIR to the build targets so that it doesn't interfere with a host ccache setup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26181 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-15 19:58:32 +00:00
Felix Fietkau
a6c30ea49b
add a stamp that can forcibly disable autorebuild for a specific package - useful for testing changes to packages with extremely long recompilation times
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25838 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-03 00:17:08 +00:00
Felix Fietkau
973bcfc5ac
use := instead of = for PKG_CONFIG_PATH to prevent recursion
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25388 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-06 16:04:33 +00:00
Felix Fietkau
9ee4a2204f
allow packages to override/extend PKG_CONFIG_PATH
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25386 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-06 15:18:30 +00:00
Jo-Philipp Wich
853ff77a2c
[include]
...
- 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
2010-12-13 19:04:33 +00:00
Michael Büsch
09f68e4a53
InstallDev: Move the "find" out of the lock critical section.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23858 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-04 12:42:37 +00:00
Michael Büsch
8238fd3971
Lock copying of directory trees to the staging dir with the "staging-dir" lock. This lock probably has to be taken elsewhere, too.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23857 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-04 12:28:55 +00:00
Michael Büsch
c6fd9b8697
Fix typo
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23482 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-16 18:46:22 +00:00
Michael Büsch
1718894846
Support force-disabling per-package parallel build with {PKG,HOST}_BUILD_PARALLEL:=0
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23480 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-16 18:42:58 +00:00
Michael Büsch
d8f3c30df1
Add an option to default the default build rule to parallel build.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22737 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-20 14:48:59 +00:00
Michael Büsch
78ae653e01
Support parallel build of certain packages
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22696 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-18 13:57:58 +00:00
Lars-Peter Clausen
e091bb591e
Add build variants support to InstallDev
...
Before building a build variant would have removed the staging files installed
by the previous build variant from the same makefile.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22668 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-16 09:45:21 +00:00
Felix Fietkau
67fbcc7bd4
remove linux 2.4 specific build system code
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21951 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26 20:42:38 +00:00
Felix Fietkau
031909ed63
remove support for DEBUG_DIR, it has lost its purpose since STAGING_DIR_ROOT was added
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19849 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-24 23:43:05 +00:00
Felix Fietkau
9ddb6d845c
hostapd: fix rebuild checks ( #6210 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18497 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-23 17:12:54 +00:00
Felix Fietkau
b57af5044a
add experimental support for a new menuconfig submenu "Package features".
...
allows selection between multiple packages providing the same feature, which affects dependencies of other packages.
will be used e.g. for choosing between DirectFB and X.org for libraries like GTK2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18056 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-17 22:11:21 +00:00
Felix Fietkau
b070e258c2
add support for build system overlays that alter package build instructions
...
currently unused, will probably be managed by the feeds system later
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17445 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-31 01:11:25 +00:00
Ralph Hempel
42554ac0fb
[package] add dist and distcheck target (to create new source balls)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16230 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-31 12:01:05 +00:00
Ralph Hempel
3fc6b41df7
[package] add package source path override
...
- use external source tree instead of source ball
- the external package source tree will be included as symlink
- make package/<name>/clean will delete the symlink instead of whole source tree
- usefull in conjunction with external SCM like ClearCase
- package-version-override.mk has to be included before package.mk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16227 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-31 11:35:13 +00:00
Nicolas Thill
414ea4bc49
add missing bits from [15451]
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15453 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-27 16:02:21 +00:00
Nicolas Thill
07f45e3a7d
introduce a generic PKG_CONFIG_DEPENDS for packages that need to be reconfigured when certain CONFIG options changed, rename PKG_BUILD_DEPEND to PKG_BUILD_DEPENDS
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15451 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-27 15:53:00 +00:00
Felix Fietkau
3195be7429
clean up automake/pkg-config handling, move separate host/package variable exports to templates, fix automake path for host builds
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15339 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-22 22:05:55 +00:00
Felix Fietkau
6937a43f9b
move pkg config stuff to per-target exports to prevent interference with host builds
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15299 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-20 18:56:57 +00:00
Felix Fietkau
5bdd866100
get rid of $Id$ - it has never helped us and it has broken too many patches ;)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-17 14:09:46 +00:00
Felix Fietkau
fb5f864919
add PKG_HOST_ONLY variable to prevent target builds
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14906 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-17 02:37:04 +00:00
Felix Fietkau
353386a643
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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14905 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-17 02:20:34 +00:00
Felix Fietkau
eee4fc3e80
fix the target-local CONFIG_SITE export. apparently make can't do more than one of them in a single line
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14863 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-13 16:16:54 +00:00
Felix Fietkau
3be17f26d5
move the CONFIG_SITE export to target-local exports
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14851 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-12 13:57:56 +00:00
Felix Fietkau
1eb7b2098d
prepend $(STAGING_DIR)/host to the PATH only in target-package stampfile targets, should fix usage of cross tools with host builds
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14800 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-09 01:15:59 +00:00
Felix Fietkau
eaf4095327
fix the host vs native stampfile dependencies to improve quilt support
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14629 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-22 23:54:05 +00:00
Felix Fietkau
506037412e
allow concurrent use of host-build.mk and package.mk as well as their templates
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14621 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-22 18:10:05 +00:00
Felix Fietkau
67c9c212e6
fix typo
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14609 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-22 04:36:56 +00:00
Felix Fietkau
e12489a3e2
add support for an optional staging directory for debug binaries
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14018 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-13 03:21:25 +00:00
Nicolas Thill
3b75e47f8f
[massive] add support for alternative C libraries (currently only glibc/eglibc)
...
other (related) changes:
- kernel headers are now installed using "make headers_install" on 2.6
- target names now contain an openwrt "vendor" tag (e.g. mips-openwrt-linux-gnu)
- build directory names now contain gcc/libc name/version
- default cpu for x86 is now i486 (required to build glibc/eglibc)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13931 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-08 01:49:11 +00:00
Felix Fietkau
3df1f49e84
fix inotify detection for linux 2.4 (fixes glib2 and packages that depend on it on brcm-2.4)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12896 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-08 12:07:14 +00:00