aboutsummaryrefslogtreecommitdiffstats
path: root/include/package.mk
Commit message (Collapse)AuthorAgeFilesLines
* 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> SVN-Revision: 48110
* buildroot: move hardening options into separate fileSteven Barth2015-06-201-46/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46070
* package.mk: replicate SSP and relro in both CFLAGS and LDFLAGSSteven Barth2015-06-181-0/+4
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46035
* 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> SVN-Revision: 45759
* build: include variant name in STAMP_INSTALLEDFelix Fietkau2015-04-031-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45253
* include: remove trailing whitespacesLuka Perkov2015-03-291-2/+2
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 45127
* build: clean up sitefiles, make them per-archFelix Fietkau2015-03-281-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45090
* 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> SVN-Revision: 44927
* 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> SVN-Revision: 44019
* 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> SVN-Revision: 44005
* build: clean up and optimize ipkg control generator codeFelix Fietkau2014-10-221-3/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43017
* 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> SVN-Revision: 42282
* build: temporarily disable PKG_CHECK_FORMAT_SECURITY until after the releaseFelix Fietkau2014-07-041-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41504
* 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> SVN-Revision: 41412
* 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> SVN-Revision: 40527
* 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> SVN-Revision: 39792
* 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> SVN-Revision: 39720
* build: fix typo in mips16 changesFelix Fietkau2013-08-141-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37776
* 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> SVN-Revision: 37770
* 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> SVN-Revision: 36755
* build: reduce the size of package metadata a bit to keep package list files ↵Felix Fietkau2012-12-221-1/+1
| | | | | | smaller SVN-Revision: 34871
* 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 . SVN-Revision: 34106
* build: create pkginfo dir earlier to avoid build breakageFelix Fietkau2012-10-061-0/+1
| | | | SVN-Revision: 33633
* 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 SVN-Revision: 33631
* 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: 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 SVN-Revision: 33422
* 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 SVN-Revision: 33414
* use autoreconf hook instead of manual callJohn Crispin2012-07-251-0/+3
| | | | SVN-Revision: 32837
* 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 SVN-Revision: 32369
* build: add a variable for injecting config variable dependencies for the ↵Felix Fietkau2012-06-141-1/+1
| | | | | | .prepared stamp SVN-Revision: 32368
* package.mk: unexport the QUIET variable, it affects some packages like ↵Felix Fietkau2012-06-111-0/+1
| | | | | | xapian-bindings SVN-Revision: 32196
* 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) SVN-Revision: 32172
* build: improve reliability of PKG_CONFIG_DEPENDS, remove old .configured_* ↵Felix Fietkau2011-11-051-0/+2
| | | | | | stamps before creating a new one SVN-Revision: 28770
* fix a small logic error in package downloadFelix Fietkau2011-10-091-1/+1
| | | | SVN-Revision: 28395
* 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 SVN-Revision: 28394
* build system: add support for download-time make hooksFelix Fietkau2011-09-301-0/+5
| | | | SVN-Revision: 28322
* add support for md5sum checks for mirrored tarballs of packages with version ↵Felix Fietkau2011-03-211-0/+1
| | | | | | control source urls SVN-Revision: 26260
* 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 SVN-Revision: 26181
* 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 SVN-Revision: 25838
* use := instead of = for PKG_CONFIG_PATH to prevent recursionFelix Fietkau2011-02-061-2/+2
| | | | SVN-Revision: 25388
* allow packages to override/extend PKG_CONFIG_PATHFelix Fietkau2011-02-061-2/+3
| | | | SVN-Revision: 25386
* - implement hooks for hostbuilds - use host build hooks to implement fixups ↵Jo-Philipp Wich2010-12-131-4/+0
| | | | | | for host build - move separator declaration to rules.mk SVN-Revision: 24551
* InstallDev: Move the "find" out of the lock critical section.Michael Büsch2010-11-041-1/+2
| | | | SVN-Revision: 23858
* 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. SVN-Revision: 23857
* 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
* Support parallel build of certain packagesMichael Büsch2010-08-181-0/+2
| | | | SVN-Revision: 22696
* 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. SVN-Revision: 22668
* remove linux 2.4 specific build system codeFelix Fietkau2010-06-261-3/+0
| | | | SVN-Revision: 21951