Commit Graph

126 Commits (d22adb1b064eef2ee878f357e99589e30437ff31)

Author SHA1 Message Date
Jo-Philipp Wich cbe164a295 rules.mk: provide a LIBGCC_A variable
SVN-Revision: 28175
2011-09-05 19:29:22 +00:00
Felix Fietkau 5820306407 only export GCC_HONOUR_COPTS for the built-in toolchain, fixes missing-fhonour-copts warnings with external toolchains
SVN-Revision: 27771
2011-07-25 10:32:38 +00:00
John Crispin 4551f2bfcc add menuconfig option to enable log files during build process
SVN-Revision: 27403
2011-07-03 17:37:31 +00:00
Jo-Philipp Wich a66b496001 rules.mk: properly populate $(LIBGCC_S) for external toolchains
SVN-Revision: 26593
2011-04-11 16:06:46 +00:00
Felix Fietkau 21ff098352 set TOOLCHAIN_DIR var when using external toolchain
This patch allows to use the openwrt toolchain as external toolchain for the
same project. See bug #9131 for details.

Signed-off-by: Sven Bachmann <dev@mcbachmann.de>

SVN-Revision: 26405
2011-04-02 14:27:51 +00:00
Felix Fietkau 6c7170b923 Revert "kernel: remove all local symbols from kernel modules at link time to reduce their size" Use -x when stripping kernel modules instead
SVN-Revision: 26305
2011-03-26 15:29:53 +00:00
Felix Fietkau 596d89b331 strip .gnu.attributes and .reginfo from kernel modules
SVN-Revision: 26304
2011-03-26 15:22:14 +00:00
Felix Fietkau 791641db07 strip .note.gnu.build-id from kernel modules
SVN-Revision: 26217
2011-03-18 03:13:38 +00:00
Felix Fietkau 73c1dd9473 build: move the CCACHE_DIR to the build targets so that it doesn't interfere with a host ccache setup
SVN-Revision: 26181
2011-03-15 19:58:32 +00:00
Imre Kaloz b74308c433 only support EABI on ARM targets
SVN-Revision: 25928
2011-03-07 12:59:19 +00:00
Jo-Philipp Wich 260652bf8f add an abstract $(LIBRPC_DEPENDS) variable for feed packages to rely on
SVN-Revision: 25841
2011-03-03 01:45:36 +00:00
Imre Kaloz a3989e3dbd We use different toolchain directories for different ARM archs, so we should set the default arch of gcc to reflect this.
This enables EABI support for armv4 CPUs.

Signed-off-by: Jochen Friedrich <jochen@scram.de>

SVN-Revision: 25705
2011-02-25 16:52:25 +00:00
Felix Fietkau 85c44cafab add a variable LIBRPC to refer to the external librpc if used
SVN-Revision: 25497
2011-02-13 01:45:07 +00:00
Jo-Philipp Wich 3052dfbb85 remove support for disabling large file support, it is broken, breaks compatibility to anything and has no effect on most packages
SVN-Revision: 25208
2011-01-28 17:00:43 +00:00
Felix Fietkau 8740549c57 mpc85xx: add a new 'spe_fpu' feature flag for the FPU used on freescale powerpc cpus The SPE FPU is ABI-incompatible with the regular powerpc FPU, this needs to be reflected in the toolchain target name. Fixes floating point crashes in user space
SVN-Revision: 25018
2011-01-16 01:25:06 +00:00
Jo-Philipp Wich dbf8d9c516 - implement hooks for hostbuilds - use host build hooks to implement fixups for host build - move separator declaration to rules.mk
SVN-Revision: 24551
2010-12-13 19:04:33 +00:00
Felix Fietkau 97b3d9688c remove an obsolete comment for the flock template
SVN-Revision: 23744
2010-10-31 15:36:47 +00:00
Felix Fietkau b34a0b3282 fix usage of flock - use the command mode instead of locking a file descriptor to fix build issues on mac os x
SVN-Revision: 23743
2010-10-31 15:33:48 +00:00
Michael Büsch e396e33ad2 Add macro for locking of recipe commands.
SVN-Revision: 23708
2010-10-29 14:53:16 +00:00
Michael Büsch a46c332411 Add HOST_FPIC. It currently always is -fPIC, because that should work on all platforms, even if it may generate slightly inefficient code on some arches.
SVN-Revision: 23598
2010-10-23 20:30:43 +00:00
Jo-Philipp Wich 10f5101af3 Add two debug rules the examine the values of runtime make variables. Based on patch by Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 23389
2010-10-10 22:40:44 +00:00
Jo-Philipp Wich d3f412f4ec rename PATCH to KPATCH
SVN-Revision: 23286
2010-10-07 11:32:09 +00:00
Jo-Philipp Wich 19421b6732 drop the usr/ prefix when scanning for libgcc.a
SVN-Revision: 23042
2010-09-12 22:19:29 +00:00
Jo-Philipp Wich 064e7c8f00 Implement an ARCH_PACKAGES variable which defaults to BOARD but can be overridden on a per-subtarget basis. This is intended for targets such as adm5120 and malta which support both big and little endianess and will replace the target specific exceptions in package-defaults and Image Builder.
SVN-Revision: 23029
2010-09-12 20:49:54 +00:00
Florian Fainelli 3992d44428 ccache TARGET_CXX
Signed-off-by: Alam Arias <Alam.GBC@gmail.com>

SVN-Revision: 23008
2010-09-11 18:37:15 +00:00
Felix Fietkau b3c871375b fix compile errors by forcing bash to be used as a shell in all submake processes
SVN-Revision: 22726
2010-08-19 13:32:47 +00:00
Felix Fietkau 62c1740676 toolchain: fix the sysroot mess by getting rid of $(TOOLCHAIN_DIR)/usr and moving it back to $(TOOLCHAIN_DIR), this change makes the toolchain relocatable again, which should fix the SDK
SVN-Revision: 22723
2010-08-19 12:49:51 +00:00
Felix Fietkau a9136c0892 speed up the build system by including include/shell.sh on shell commands only where necessary
SVN-Revision: 22720
2010-08-19 12:49:37 +00:00
Florian Fainelli 7fc192e9a5 fix for GREP_OPTIONS
When using GREP_OPTIONS to supply default options to grep, the buildsystem might get broken (For example adding --color=always breaks it)
This patch will empty the GREP_OPTIONS to prevent the described (and any other) problems related to GREP_OPTIONS

Signed-off-by: Maarten Bezemer <m.m.bezemer@utwente.nl>

SVN-Revision: 22443
2010-07-31 22:32:21 +00:00
Nicolas Thill 18035964c7 fix path to libgcc.a in LIBGCC_S
SVN-Revision: 20593
2010-03-30 04:04:47 +00:00
Felix Fietkau dd046f4759 use lazy evaluation for TARGET_CONFIGURE_OPTS to make it possible to override TARGET_CC and TARGET_CXX
SVN-Revision: 20566
2010-03-29 00:05:48 +00:00
Felix Fietkau 80d6e3b245 add an arch suffix for handling different variants of arm/mips for the toolchain/target directories
SVN-Revision: 20215
2010-03-14 18:24:05 +00:00
Travis Kemen 137c26b7cb there are quite a lot of package using ln -sf in their Makefile, so this patch adds
LN:=ln -sf

to rules.mk

-Raphael

SVN-Revision: 19998
2010-03-05 20:26:14 +00:00
Nicolas Thill 9899fbb148 use distinct build/staging dirs for EABI/OABI builds
SVN-Revision: 19885
2010-02-27 18:27:48 +00:00
Nicolas Thill c0f8b43b17 use a DIR_SUFFIX variable to hold libc/version and use it in build/staging dir names
SVN-Revision: 19884
2010-02-27 18:14:24 +00:00
Felix Fietkau 15fecc9e6c remove support for DEBUG_DIR, it has lost its purpose since STAGING_DIR_ROOT was added
SVN-Revision: 19849
2010-02-24 23:43:05 +00:00
Lars-Peter Clausen 001736d848 Add include_mk template which makes it a bit more convienient to include package installed mk files.
SVN-Revision: 19847
2010-02-24 23:07:56 +00:00
Nicolas Thill 0f3c406bdb add a config item to specify arguments to strip
SVN-Revision: 19270
2010-01-22 08:12:20 +00:00
Felix Fietkau 6c57203836 oops, forgot one small change in the last commit
SVN-Revision: 18640
2009-12-04 22:18:36 +00:00
Felix Fietkau b647c168de remove the redundant subdirectory from the packages directory variable
SVN-Revision: 18639
2009-12-04 22:17:26 +00:00
Florian Fainelli ee8018ef11 output firmware files in bin/$(BOARD) instead of bin/
SVN-Revision: 18624
2009-12-03 18:21:03 +00:00
Felix Fietkau d648a0827b fix a typo
SVN-Revision: 18122
2009-10-22 16:39:39 +00:00
Felix Fietkau 9bd710e050 add some extra stripping options for kernel modules to reduce size even more (thx, matteo)
SVN-Revision: 18121
2009-10-22 16:26:12 +00:00
Nicolas Thill c9bc7c504c add external toolchain support, enhance native toolchain support (special thanks to Luigi Mantellini for his help... and patience ;)
SVN-Revision: 17682
2009-09-23 02:27:38 +00:00
Felix Fietkau 2982f7ef79 move the package dir to bin/packages/$(BOARD)_$(LIBC)-$(LIBCV) to prevent multiple configs with the same arch from deleting each others' packages
SVN-Revision: 17329
2009-08-20 15:31:17 +00:00
Felix Fietkau 4169a2e834 add a staging directory for unstripped package files, useful for debugging, will be used for mklibs integration later
SVN-Revision: 17167
2009-08-07 21:58:35 +00:00
Felix Fietkau f8097687d1 add -L$(TOOLCHAIN_DIR)/lib to the LIBGCC_S variable, if necessary
SVN-Revision: 17082
2009-08-01 21:29:00 +00:00
Florian Fainelli 28efbbc87f do not set anything in DISABLE_IPV6 when set, let the package pick up the defaults
SVN-Revision: 17077
2009-08-01 12:12:48 +00:00
Florian Fainelli 11e1304ca0 globally define IPv6 support or not in OpenWrt, just like for largefiles, ipv6 disabled by default (#4857)
SVN-Revision: 16983
2009-07-25 21:45:51 +00:00
Nicolas Thill 4702698c68 add a config option to select the binary stripping method to use (between none, strip & sstrip)
SVN-Revision: 16728
2009-07-07 02:34:58 +00:00