nbd
aeb70915fb
only export GCC_HONOUR_COPTS for the built-in toolchain, fixes missing-fhonour-copts warnings with external toolchains
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27771 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-25 10:32:38 +00:00
blogic
913081d31b
add menuconfig option to enable log files during build process
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27403 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-03 17:37:31 +00:00
jow
cf191d929d
[buildroot] rules.mk: properly populate $(LIBGCC_S) for external toolchains
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26593 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-11 16:06:46 +00:00
nbd
076e9f74f8
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26405 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-02 14:27:51 +00:00
nbd
d99103d375
Revert "kernel: remove all local symbols from kernel modules at link time to reduce their size"
...
Use -x when stripping kernel modules instead
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26305 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-26 15:29:53 +00:00
nbd
a2ebc81e18
strip .gnu.attributes and .reginfo from kernel modules
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26304 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-26 15:22:14 +00:00
nbd
1a595b0ec8
strip .note.gnu.build-id from kernel modules
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26217 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-18 03:13:38 +00:00
nbd
63c3f4a351
build: move the CCACHE_DIR to the build targets so that it doesn't interfere with a host ccache setup
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26181 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-15 19:58:32 +00:00
kaloz
c0b7eece82
only support EABI on ARM targets
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25928 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-07 12:59:19 +00:00
jow
c8c9388be1
[buildroot] add an abstract $(LIBRPC_DEPENDS) variable for feed packages to rely on
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25841 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-03 01:45:36 +00:00
kaloz
251a813933
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25705 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-25 16:52:25 +00:00
nbd
ab6c99e0b3
add a variable LIBRPC to refer to the external librpc if used
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25497 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-13 01:45:07 +00:00
jow
1db1d443f3
[toolchain] remove support for disabling large file support, it is broken, breaks compatibility to anything and has no effect on most packages
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25208 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-28 17:00:43 +00:00
nbd
89a10d913b
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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25018 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-16 01:25:06 +00:00
jow
0630427205
[include]
...
- implement hooks for hostbuilds
- use host build hooks to implement fixups for host build
- move separator declaration to rules.mk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24551 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-13 19:04:33 +00:00
nbd
e2a056ae65
remove an obsolete comment for the flock template
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23744 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-31 15:36:47 +00:00
nbd
a9812d96db
fix usage of flock - use the command mode instead of locking a file descriptor to fix build issues on mac os x
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23743 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-31 15:33:48 +00:00
mb
4af18f4363
Add macro for locking of recipe commands.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23708 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-29 14:53:16 +00:00
mb
23f0f29a8e
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.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23598 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-23 20:30:43 +00:00
jow
36d3a76afb
[buildroot] Add two debug rules the examine the values of runtime make variables.
...
Based on patch by Philip Prindeville <philipp@redfish-solutions.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23389 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-10 22:40:44 +00:00
jow
60004bec44
[include] rename PATCH to KPATCH
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23286 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-07 11:32:09 +00:00
jow
df5dee93df
[buildroot] drop the usr/ prefix when scanning for libgcc.a
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23042 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-12 22:19:29 +00:00
jow
ab6e4426b0
[buildroot] 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.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23029 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-12 20:49:54 +00:00
florian
691fd24bf2
[buildroot] ccache TARGET_CXX
...
Signed-off-by: Alam Arias <Alam.GBC@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23008 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-11 18:37:15 +00:00
nbd
d6520c74b8
fix compile errors by forcing bash to be used as a shell in all submake processes
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22726 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-19 13:32:47 +00:00
nbd
dc74adf445
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
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22723 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-19 12:49:51 +00:00
nbd
37b9bb7ce2
speed up the build system by including include/shell.sh on shell commands only where necessary
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-19 12:49:37 +00:00
florian
805beb6cd9
[buildroot] 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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22443 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-31 22:32:21 +00:00
nico
f8877972da
fix path to libgcc.a in LIBGCC_S
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20593 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-30 04:04:47 +00:00
nbd
66bce4ab80
use lazy evaluation for TARGET_CONFIGURE_OPTS to make it possible to override TARGET_CC and TARGET_CXX
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20566 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-29 00:05:48 +00:00
nbd
30c92b3390
add an arch suffix for handling different variants of arm/mips for the toolchain/target directories
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20215 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-14 18:24:05 +00:00
thepeople
9e8f21973d
there are quite a lot of package using ln -sf in their Makefile, so
...
this patch adds
LN:=ln -sf
to rules.mk
-Raphael
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19998 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-05 20:26:14 +00:00
nico
dd0ff5dcad
use distinct build/staging dirs for EABI/OABI builds
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19885 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-27 18:27:48 +00:00
nico
dc58b1f484
use a DIR_SUFFIX variable to hold libc/version and use it in build/staging dir names
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19884 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-27 18:14:24 +00:00
nbd
c993669cc4
remove support for DEBUG_DIR, it has lost its purpose since STAGING_DIR_ROOT was added
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19849 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-24 23:43:05 +00:00
lars
89d4450236
Add include_mk template which makes it a bit more convienient to include package
...
installed mk files.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19847 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-24 23:07:56 +00:00
nico
1bf76dc757
add a config item to specify arguments to strip
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19270 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22 08:12:20 +00:00
nbd
a1ca4142c7
oops, forgot one small change in the last commit
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18640 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-04 22:18:36 +00:00
nbd
b4ebf55c19
remove the redundant subdirectory from the packages directory variable
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18639 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-04 22:17:26 +00:00
florian
392f107e43
output firmware files in bin/$(BOARD) instead of bin/
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18624 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-03 18:21:03 +00:00
nbd
774f3a113c
fix a typo
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18122 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-22 16:39:39 +00:00
nbd
fe3cc5d51c
add some extra stripping options for kernel modules to reduce size even more (thx, matteo)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18121 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-22 16:26:12 +00:00
nico
6a36104faa
[toolchain] add external toolchain support, enhance native toolchain support (special thanks to Luigi Mantellini for his help... and patience ;)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17682 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-23 02:27:38 +00:00
nbd
2b5de05a08
move the package dir to bin/packages/$(BOARD)_$(LIBC)-$(LIBCV) to prevent multiple configs with the same arch from deleting each others' packages
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17329 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-20 15:31:17 +00:00
nbd
b69805034d
add a staging directory for unstripped package files, useful for debugging, will be used for mklibs integration later
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17167 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-07 21:58:35 +00:00
nbd
6f02f68928
add -L$(TOOLCHAIN_DIR)/lib to the LIBGCC_S variable, if necessary
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17082 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-01 21:29:00 +00:00
florian
a31a51e943
[package] do not set anything in DISABLE_IPV6 when set, let the package pick up the defaults
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17077 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-01 12:12:48 +00:00
florian
53ea39ed02
[package] globally define IPv6 support or not in OpenWrt, just like for largefiles, ipv6 disabled by default ( #4857 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16983 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-25 21:45:51 +00:00
nico
9a319f4c47
add a config option to select the binary stripping method to use (between none, strip & sstrip)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16728 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-07 02:34:58 +00:00
lars
e1f39cadfc
Set TARGET_CXX to 'no' if c++ is not enabled in the toolchain.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16213 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-30 15:48:44 +00:00