aboutsummaryrefslogtreecommitdiffstats
path: root/include/package.mk
Commit message (Collapse)AuthorAgeFilesLines
* build: use -iremap feature to replace __FILE__ absolute path names in ↵Felix Fietkau2016-01-251-0/+5
| | | | | | | | | | packages with ones relative to $(BUILD_DIR) improves reproducible builds Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48489 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: use directory name instead of PKG_NAME for staging files and package ↵Felix Fietkau2016-01-041-14/+14
| | | | | | | | metadata Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48110 3c298f89-4303-0410-b956-a3cf2f4a3e73
* buildroot: move hardening options into separate fileSteven Barth2015-06-201-46/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46070 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package.mk: replicate SSP and relro in both CFLAGS and LDFLAGSSteven Barth2015-06-181-0/+4
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46035 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: clean package staging dir files before configureJo-Philipp Wich2015-05-261-10/+14
| | | | | | | | | | | | | This is required to allow packages to ship libraries with a different API. Previously the linker would favor the old shared libraries in STAGING_DIR instead of the just compiled ones in PKG_BUILD_DIR. Avoid that problem by clearing the package staging files right after prepare. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45759 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: include variant name in STAMP_INSTALLEDFelix Fietkau2015-04-031-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45253 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: remove trailing whitespacesLuka Perkov2015-03-291-2/+2
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45127 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: clean up sitefiles, make them per-archFelix Fietkau2015-03-281-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45090 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: define STAMP_CONFIGURED recursivelyJohn Crispin2015-03-211-1/+1
| | | | | | | | | | | | | | | Defining STAMP_CONFIGURED statically caused it not to reflect changes to PKG_CONFIG_DEPENDS made after including package.mk, like the additional options added by feeds.mk for all packages. Furthermore, as STAMP_CONFIGURED_WILDCARD was already defined recursively, the patsubst in its definition would never match, and in consequence, the stamps were never removed. This caused packages not to be rebuilt when they should have been. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44927 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: explicitly unexport CONFIG_SITEFelix Fietkau2015-01-181-1/+1
| | | | | | | | | | | | | | | On systems with CONFIG_SITE in the environment (e.g. OpenSUSE) make will export the CONFIG_SITE set in include/package.mk by default. This will cause host builds to get the target site configuration, leading to all kinds of weirdness (wrong pointer size, wrong endianess). Fix this by explicitly unexporting CONFIG_SITE. The explicit export for the target builds overrides the unexport, so the target builds will still correctly get the site config. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44019 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Support for building an hardened OpenWRTJohn Crispin2015-01-171-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce configuration options to build an "hardened" OpenWRT. Options to enable Stack-Smashing Protection, FORTIFY_SOURCE and RELRO have been introduced. uClibc makefile now automatically detects if SSP support is necessary. hostapd makefile has been fixed to use "^" as sed separator since using a comma was problematic when using "-Wl,-z,now" and the like in TARGET_CFLAGS. Currently enabling SSP on user space depends on enabling SSP kernel side, this is due to the fact that TARGET_CFLAGS are used to build kernel modules (at least). Suggestions on how to avoid this are welcome. Using "select" instead of "depends on" doesn't seem to work with choice entries. Tested with a lantiq (WBMR) router, GCC 4.8, uClibc and a subset of the available packages. Needs to be tested with GCC 4.9 and the remaining packages. PIE not currently included. Signed-off-by: Alessandro Di Federico <ale+owrt@clearmind.me> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44005 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: clean up and optimize ipkg control generator codeFelix Fietkau2014-10-221-3/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43017 3c298f89-4303-0410-b956-a3cf2f4a3e73
* PKG_CHECK_FORMAT_SECURITY: add a menuconfig option, disable by defaultJohn Crispin2014-08-251-3/+5
| | | | | | | | | | | The idea is still to enable it by default at some point I've tested all ar71xx packages (except oldpackages) using CONFIG_ALL=y Failing packages have been marked with PKG_CHECK_FORMAT_SECURITY:=0 for now I can test more targets but i have no idea which are the most used Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42282 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: temporarily disable PKG_CHECK_FORMAT_SECURITY until after the releaseFelix Fietkau2014-07-041-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41504 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: Introduce PKG_CHECK_FORMAT_SECURITYFelix Fietkau2014-06-301-0/+4
| | | | | | | | | | The idea is to get rid of http://en.wikipedia.org/wiki/Uncontrolled_format_string by using "-Wformat -Werror=format-security" by default Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41412 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: reimplement package build directory overrideFelix Fietkau2014-04-181-15/+15
| | | | | | | | | Remove leftover pieces from package-version-override.mk support Add a new variable USE_SOURCE_DIR to use a custom build directory. Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40527 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add alternative PKG_CONFIG_PATHFelix Fietkau2014-03-071-1/+1
| | | | | | | | | | | | | | | | | | This is a cryptographically signed message in MIME format. udev Makefile.am has two different .pc files and put them into two locations. Don't know if changing the udev Makefile or changing the pkgconfig paths is the right way - someone has to decide :) udev and vala use an additional pkg-config dir add it to the path discovered because openobex did not find udev.pc Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39792 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: allow packages to declare ABI versions to detect necessary package ↵Felix Fietkau2014-02-231-0/+12
| | | | | | | | | | | | | | | rebuilds If a package directly depends on another package that recently changed its ABI version, it will be cleaned up and rebuilt (assuming quilt is not used). This helps with packages that have no stable ABI, e.g. libubox, ubus, etc. Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39720 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: fix typo in mips16 changesFelix Fietkau2013-08-141-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37776 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: decouple the mips16 support flag from the toolchainFelix Fietkau2013-08-141-0/+7
| | | | | | | | | Add the flags from package.mk instead, and leave libc and gcc unaffected. Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37770 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: clean up stale files from a previous build when installing a package ↵Felix Fietkau2013-05-291-0/+5
| | | | | | | | build to the staging dir Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36755 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: reduce the size of package metadata a bit to keep package list files ↵Felix Fietkau2012-12-221-1/+1
| | | | | | smaller git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34871 3c298f89-4303-0410-b956-a3cf2f4a3e73
* buildroot: isolate the .install stamp files for build variants (#12279)Jo-Philipp Wich2012-11-071-2/+3
| | | | | | | | This fixes missing embedded packages if multiple build variants are selected in the build config, e.g. missing ppp if CONFIG_PACKAGE_ppp=y and CONFIG_PACKAGE_ppp-multilink=m . git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34106 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: create pkginfo dir earlier to avoid build breakageFelix Fietkau2012-10-061-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33633 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: rework the package/install step - collect package install lists ↵Felix Fietkau2012-10-061-3/+9
| | | | | | during package/compile, then install all packages at once git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33631 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: move the -j flag to package.mk instead of grabbing it from makeflags, ↵Felix Fietkau2012-09-151-1/+1
| | | | | | otherwise it occasionally gets omitted on full builds git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33422 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add a config option for passing the top-level make jobserver to ↵Felix Fietkau2012-09-151-1/+7
| | | | | | 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
* [include] use autoreconf hook instead of manual callJohn Crispin2012-07-251-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32837 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add a config option for choosing the prefered standard c++ library ↵Felix Fietkau2012-06-141-0/+2
| | | | | | 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
* build: add a variable for injecting config variable dependencies for the ↵Felix Fietkau2012-06-141-1/+1
| | | | | | .prepared stamp git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32368 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package.mk: unexport the QUIET variable, it affects some packages like ↵Felix Fietkau2012-06-111-0/+1
| | | | | | xapian-bindings git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32196 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: generate a list of provided libraries for each ipkg file (includes ↵Felix Fietkau2012-06-101-0/+1
| | | | | | 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
* build: improve reliability of PKG_CONFIG_DEPENDS, remove old .configured_* ↵Felix Fietkau2011-11-051-0/+2
| | | | | | stamps before creating a new one git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28770 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix a small logic error in package downloadFelix Fietkau2011-10-091-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28395 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build system: add a feature that allows you to pull sources from a git tree ↵Felix Fietkau2011-10-091-1/+13
| | | | | | instead of the usual tarball git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28394 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build system: add support for download-time make hooksFelix Fietkau2011-09-301-0/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28322 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add support for md5sum checks for mirrored tarballs of packages with version ↵Felix Fietkau2011-03-211-0/+1
| | | | | | control source urls git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26260 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: move the CCACHE_DIR to the build targets so that it doesn't interfere ↵Felix Fietkau2011-03-151-0/+1
| | | | | | with a host ccache setup git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26181 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add a stamp that can forcibly disable autorebuild for a specific package - ↵Felix Fietkau2011-03-031-1/+8
| | | | | | 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
* use := instead of = for PKG_CONFIG_PATH to prevent recursionFelix Fietkau2011-02-061-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25388 3c298f89-4303-0410-b956-a3cf2f4a3e73
* allow packages to override/extend PKG_CONFIG_PATHFelix Fietkau2011-02-061-2/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25386 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [include] Jo-Philipp Wich2010-12-131-4/+0
| | | | | | | | | - 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
* InstallDev: Move the "find" out of the lock critical section.Michael Büsch2010-11-041-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23858 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Lock copying of directory trees to the staging dir with the "staging-dir" ↵Michael Büsch2010-11-041-2/+4
| | | | | | 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
* 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
* Support parallel build of certain packagesMichael Büsch2010-08-181-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22696 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add build variants support to InstallDevLars-Peter Clausen2010-08-161-4/+6
| | | | | | | | 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