build: disable the use of -iremap for UML (#21851) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48718
rules.mk: add TARGET_INIT_PATH toplevel variables Add a new variable TARGET_INIT_PATH which holds the default $PATH variable value configured in menuconfig. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48676
build: filter out -fno-plt for the kernel build, fixes #21712 Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48515
build: use -iremap feature to replace __FILE__ absolute path names in packages with ones relative to $(BUILD_DIR) improves reproducible builds Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48489
rules.mk: make the locked template available even if flock has not been built yet (fall back to unlocked shell command) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48414
build: use a separate variable checking the subdir path (for host packages) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48410
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
build: move host build directories of package/* to build_dir/target-*/host/ Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48400
build: add pure make tolower/toupper funtions that do not require shell calls Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48105
gcc: remove version 4.6, it is no longer needed Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47443
build: add -Wno-error=unused-result to target cflags Many glibc functions have __warn_unused_result__ in so many different core functions, and failing the build for all of those simply does not make any sense Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47440
rules.mk: export STAGING_DIR_HOST to sub-makefiles and shells Certains host packages (like quilt) need to know the previously used install location at run-time. They currently use $STAGING_DIR, which causes issues on cleaned environment, where $STAGING_DIR doesn't exist yet. Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> SVN-Revision: 47409
build: Allow kernel modules to set build ID debug symbol This change adds support for specifying a build ID for kernel modules. This is done by setting PKG_BUILD_ID to a hexadecimal string, which will then be passed to the kernel linker. In addition, when this flag is set, the build ID debug symbol (.note.gnu.build-id) will not be stripped from the kernel module. This symbol is exported in sysfs by the kernel (if the kernel is compiled with CONFIG_KALLSYMS) and so can be used to uniquely identify a version of a kernel module in a running kernel. This is useful for keeping track of different versions of a module when doing experiments and development. Modules that specify the build ID will be ~100 bytes larger (depending on the length of the build ID specified). There is no size difference for kernel modules that do not set this variable. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk> SVN-Revision: 47290
rules.mk: remove GCC 4.4 and GCC 4.5 conditional gcc 4.4 was removed in r44957 gcc: remove 4.4.7 (only used by avr32) gcc 4.5 was removed in r36149 Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> SVN-Revision: 46722
toolchain: only use fortify-headers for musl Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46138
toolchain: add fortify-headers, enable FORTIFY_SOURCE by default Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46117
toolchain: switch to musl by default, except for mips64 Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45995
build: add integration for managing opkg package feed keys Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45286
rules.mk: add newline definition To be used for stuff like $(subst $(space),$(newline),$(SOME_VAR)) Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> SVN-Revision: 44796
rules.mk: don't add staging_dir/host/bin/ path again Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44379