build: disable the use of -iremap for UML (#21851) Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48718 3c298f89-4303-0410-b956-a3cf2f4a3e73
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48676 3c298f89-4303-0410-b956-a3cf2f4a3e73
build: filter out -fno-plt for the kernel build, fixes #21712 Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48515 3c298f89-4303-0410-b956-a3cf2f4a3e73
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48489 3c298f89-4303-0410-b956-a3cf2f4a3e73
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48414 3c298f89-4303-0410-b956-a3cf2f4a3e73
build: use a separate variable checking the subdir path (for host packages) Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48410 3c298f89-4303-0410-b956-a3cf2f4a3e73
host-build.mk: change default installation prefix of package/* host builds to staging_dir/target-*/host Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48401 3c298f89-4303-0410-b956-a3cf2f4a3e73
build: move host build directories of package/* to build_dir/target-*/host/ Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48400 3c298f89-4303-0410-b956-a3cf2f4a3e73
build: add pure make tolower/toupper funtions that do not require shell calls Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48105 3c298f89-4303-0410-b956-a3cf2f4a3e73
gcc: remove version 4.6, it is no longer needed Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47443 3c298f89-4303-0410-b956-a3cf2f4a3e73
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47440 3c298f89-4303-0410-b956-a3cf2f4a3e73
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47409 3c298f89-4303-0410-b956-a3cf2f4a3e73
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47290 3c298f89-4303-0410-b956-a3cf2f4a3e73
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46722 3c298f89-4303-0410-b956-a3cf2f4a3e73
toolchain: only use fortify-headers for musl Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46138 3c298f89-4303-0410-b956-a3cf2f4a3e73
toolchain: add fortify-headers, enable FORTIFY_SOURCE by default Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46117 3c298f89-4303-0410-b956-a3cf2f4a3e73
toolchain: switch to musl by default, except for mips64 Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45995 3c298f89-4303-0410-b956-a3cf2f4a3e73
build: add integration for managing opkg package feed keys Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45286 3c298f89-4303-0410-b956-a3cf2f4a3e73
rules.mk: add newline definition To be used for stuff like $(subst $(space),$(newline),$(SOME_VAR)) Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44796 3c298f89-4303-0410-b956-a3cf2f4a3e73
rules.mk: don't add staging_dir/host/bin/ path again Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44379 3c298f89-4303-0410-b956-a3cf2f4a3e73