Felix Fietkau
c541b31e40
build: override hardcoded paths to bison and m4 to make the SDK more relocatable
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42300
10 years ago
Felix Fietkau
627e974c99
partially revert "build: remove check for nonexistant CONFIG_TAR_VERBOSITY variable and move TAR_OPTIONS to unpack.mk"
...
This complicates the evaluation order for some packages
SVN-Revision: 40006
11 years ago
Felix Fietkau
e71ec4cb55
build: remove GREP_OPTIONS export from rules.mk, defining it in the top-level Makefile is enough
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39982
11 years ago
Felix Fietkau
51ae801ee3
build: remove check to nonexistant CONFIG_ENABLE_LOCALE variable and move DISABLE_NLS to package-defaults.mk
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39980
11 years ago
Felix Fietkau
00bcebeb4c
build: remove check for nonexistant CONFIG_TAR_VERBOSITY variable and move TAR_OPTIONS to unpack.mk
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39979
11 years ago
Felix Fietkau
318052e03c
build: add a variable for the name of the {build,staging}_dir/{target,toolchain}-* directories
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39857
11 years ago
Imre Kaloz
f6b57149af
FPU type should not interfere with the ABI selection. Also make sure we either do real soft-float or hard-float on ARM, with the right options.
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 38943
11 years ago
Imre Kaloz
f0721fa502
allow configuration of the target directory for binaries
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 38890
11 years ago
Felix Fietkau
e0189ccef4
build: include the cpu type as part of the toolchain/target directory name
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38214
11 years ago
Felix Fietkau
a1a5f59ea3
build: decouple the mips16 support flag from the toolchain
...
Add the flags from package.mk instead, and leave libc and gcc
unaffected.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37770
11 years ago
Felix Fietkau
73c4d73d6d
build: unify target independent optimization options
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37600
11 years ago
Felix Fietkau
5d1c80f002
build: add required exports for dependency tracking
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37387
12 years ago
Felix Fietkau
1c742fb388
build: move the XARGS variable out of the host checks, since a working xargs is built in tools/
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37228
12 years ago
Felix Fietkau
e3a28f415b
rules.mk: use qstrip to reduce syntax highlighting issues
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37225
12 years ago
Felix Fietkau
2430e9a4f5
toolchain: eliminate the INSTALL_LIBSTDCPP config symbol and make c++ support mandatory - fixes recursive config symbol dependency issues
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36594
12 years ago
John Crispin
c2c1f9ae73
rules.mk: add _dsp to ARCH_SUFFIX if the dsp ase is used
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36566
12 years ago
Florian Fainelli
e032922266
toolchain: allow choosing the MIPS64 user-land ABI
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36205
12 years ago
Florian Fainelli
348cae15d2
buildroot: factor knowledge of a 64bits architecture
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36204
12 years ago
Florian Fainelli
9e1d2c15d9
buildroot: allow enabling MIPS16 user-space build
...
Enabling MIPS16 is made conditional on advertising the "mips16" feature
for a specific target since it requires support from the CPU
(HAS_MIPS16) and the actual use of MIPS16 for building packages
(USE_MIPS16).
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36202
12 years ago
Florian Fainelli
be5d8e6c87
rules.mk: MIPS16 builds get a different toolchain
...
To be safe, build "m16" into the toolchain and target architecture the
same way mips32r2 does:
target-mips_r2_m16_uClibc-0.9.33.2
toolchain-mips_r2_m16_gcc-4.6-linaro_uClibc-0.9.33.2
Signed-off-by: Jay Carlson <nop@nop.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36198
12 years ago
Florian Fainelli
5b3445c60b
rules.mk: Create TARGET_ASFLAGS; force -mno-mips16
...
Create and use a TARGET_ASFLAGS, defaulting to TARGET_CFLAGS.
MIPS .S files reasonably assume they are not in mips16 mode. Because
"-mips16 -mno-mips16" results in -mno-mips16, I can append that to the
TARGET_ASFLAGS. This should be done with $(filter-out)?
Signed-off-by: Jay Carlson <nop@nop.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36197
12 years ago
Felix Fietkau
3d6093c275
build: add a HOSTCXX variable pointing at the c++ compiler
...
SVN-Revision: 36109
12 years ago
Gabor Juhos
2d9e89b24c
fix ARCH_SUFFIX for mips64{,el}r2
...
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35688
12 years ago
Jo-Philipp Wich
236c369a89
rules.mk: only select latest libgcc.a with wildcard match ( #12798 )
...
SVN-Revision: 35144
12 years ago
Jo-Philipp Wich
993ac4600a
rules.mk: don't use $(realpath) in file_copy, the destination directory might not exist yet - spotted while doing a fresh build
...
SVN-Revision: 34447
12 years ago
Jo-Philipp Wich
828597693e
rules.mk: provide a macro "file_copy" which removes any symlink in the destination dir that would be overwritten
...
SVN-Revision: 34437
12 years ago
Jo-Philipp Wich
2371c6542e
rules.mk: fix misspelled config symbol introduced by r34300
...
SVN-Revision: 34304
12 years ago
Jo-Philipp Wich
a21fbec006
rules.mk: append libc implementation to bin directory name if not using uClibc
...
SVN-Revision: 34300
12 years ago
Felix Fietkau
44cd20b802
build: rework the package/install step - collect package install lists during package/compile, then install all packages at once
...
SVN-Revision: 33631
12 years ago
Felix Fietkau
28665d55cd
rules.mk: add TARGET_AR and TARGET_RANLIB
...
SVN-Revision: 33508
12 years ago
Jo-Philipp Wich
8726a422cd
do not pass optimization flags in HOST_CPPFLAGS ( #12153 )
...
SVN-Revision: 33351
12 years ago
John Crispin
1c53dda443
remove duplicate HOSTCC_NOCACHE
...
SVN-Revision: 33088
12 years ago
Florian Fainelli
fb9023bb8a
move LIB_SUFFIX from base-files to rules.mk
...
Some packages are going to need fixups based on LIB_SUFFIX
SVN-Revision: 33080
12 years ago
John Crispin
370894e594
fix up scons vs ccache
...
SVN-Revision: 32902
12 years ago
John Crispin
f6ef96fab2
add and export HOSTCC_NOCACHE
...
SVN-Revision: 32466
13 years ago
Felix Fietkau
4d8cd3afc0
make librpc compatible with eglibc, unconditionally enable it for packages that need rpc support
...
SVN-Revision: 32129
13 years ago
John Crispin
a53b084e49
add ccache wrapper
...
SVN-Revision: 32075
13 years ago
John Crispin
cc5b3e683e
Use build suffix on build_dir paths
...
Adds BUILD_SUFFIX to STAGING_DIR
Signed-off-by: Tathagata Das <tathagata@alumnux.com>
SVN-Revision: 31233
13 years ago
Felix Fietkau
236dd9d9a2
kernel: keep more symbols in the kernel modules when doing profiling
...
SVN-Revision: 30762
13 years ago
Felix Fietkau
edc3ad9100
build: add TARGET_CXXFLAGS and EXTRA_CXXFLAGS, defaulting to *_CFLAGS via lazy evaluation. this allows adding c++ specific cflags
...
SVN-Revision: 30760
13 years ago
Felix Fietkau
a8ec8ce1ac
kernel: do not rename module symbols with kallsyms enabled
...
SVN-Revision: 30759
13 years ago
Felix Fietkau
c2590fe930
strip kernel modules more aggressively: make all global symbols local, rename all symbols in the symbol table to make them compress better
...
SVN-Revision: 30662
13 years ago
Felix Fietkau
27bb12af0f
build: add -Wno-error=unused-but-set-variable to cflags for gcc 4.6 and newer to avoid stupid -Werror related package breakage
...
SVN-Revision: 30556
13 years ago
Jo-Philipp Wich
1504738c02
rules.mk: filter "." and "./" entries from $PATH, prevents toolchain build issues and likely other problems
...
SVN-Revision: 29951
13 years ago
Jo-Philipp Wich
5b7668ca44
use ext-toolchain.sh to integrate external toolchains Use ext-toolchain.sh to wrap external toolchain commands, abort build if certain features such as CONFIG_SOFT_FLOAT or CONFIG_IPV6 are enabled but not supported by the toolchain.
...
SVN-Revision: 29766
13 years ago
John Crispin
ccb6b0a063
tools: clean up Makefiles / make ccache work
...
SVN-Revision: 29754
13 years ago
Jo-Philipp Wich
cbe164a295
rules.mk: provide a LIBGCC_A variable
...
SVN-Revision: 28175
13 years ago
Felix Fietkau
5820306407
only export GCC_HONOUR_COPTS for the built-in toolchain, fixes missing-fhonour-copts warnings with external toolchains
...
SVN-Revision: 27771
14 years ago
John Crispin
4551f2bfcc
add menuconfig option to enable log files during build process
...
SVN-Revision: 27403
14 years ago
Jo-Philipp Wich
a66b496001
rules.mk: properly populate $(LIBGCC_S) for external toolchains
...
SVN-Revision: 26593
14 years ago