Commit graph

44 commits

Author SHA1 Message Date
Felix Fietkau
7a315b0b5d build: implement make check and make package/X/check
This is intended to be used for a wide array of package sanity checks.

The first check that is implemented is for the hash of downloaded files.
It checks:
  - Missing hash
  - Use of SHA256 instead of MD5
  - dl/<file> hash not matching hash in makefile
  - deprecated MD5SUM variable

The deprecated MD5SUM variable check is skipped for feeds/ until OpenWrt
is updated as well

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-12-17 10:36:25 +01:00
Daniel Golle
c08651226f toolchain: include yasm in x86 toolchain
Some libraries require yasm to build with in-line assembly for x86
targets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-08-19 17:53:50 +02:00
Felix Fietkau
74c9b9cfeb toolchain: skip gcc/minimal for musl
No extra libc header build step is done, so no extra toolchain is needed
for preparing it.
This saves a significant amount of build time and disk space

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-07 15:13:40 +02:00
Steven Barth
2738526a16 toolchain: add fortify-headers, enable FORTIFY_SOURCE by default
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 46117
2015-06-23 14:38:03 +00:00
Felix Fietkau
808c460250 toolchain: remove leftovers from old llvm-gcc experiments
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44783
2015-03-15 12:03:01 +00:00
Felix Fietkau
35a9cb833c build: ensure tools are built before building the toolchain
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43693
2014-12-13 11:57:14 +00:00
Nicolas Thill
6c511ed529 toolchain: update build steps doc
SVN-Revision: 39631
2014-02-18 22:15:58 +00:00
Florian Fainelli
e032922266 toolchain: allow choosing the MIPS64 user-land ABI
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 36205
2013-04-05 12:36:23 +00:00
Luka Perkov
c0de55b32c toolchain: stop generating broken symlink in TOOLCHAIN_DIR/lib
It turns out that the symlink may exists already by the time the toolchain
Makefile gets an opportunity to run. While we asked to replace the target, ln
doesn't do so until after dereferencing the existing symlink. This results in
an unintended symlink that refers to itself. Instead, create the link without
dereferencing any symlinks by using the -n option.

Signed-off-by: John Szakmeister <john@szakmeister.net>

SVN-Revision: 36140
2013-03-28 12:16:39 +00:00
Felix Fietkau
5d19a38d80 toolchain: sync eglibc headers/build split with uclibc changes
SVN-Revision: 32584
2012-07-03 14:23:32 +00:00
Felix Fietkau
f1a1d0a262 toolchain: fix libc headers dependency on kernel headers + minimal gcc
SVN-Revision: 32582
2012-07-03 10:43:59 +00:00
Felix Fietkau
c3caa1b768 uClibc: split the package into the main directory and the headers/ and utils/ subdirectories to clean up build order and fix quilt support
SVN-Revision: 32557
2012-06-30 21:44:05 +00:00
Mirko Vogt
334fd4199b purge support for glibc - use eglibc instead!
for reference: http://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg13425.html

SVN-Revision: 31503
2012-04-28 22:24:12 +00:00
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
2012-01-18 03:08:09 +00:00
Felix Fietkau
830282cc89 build: add a lib64 symlink in staging_dir/host and staging_dir/toolchain* for systems that prefer this as library path (e.g. current SuSE), fixes mpfr and gcc build
SVN-Revision: 29352
2011-11-28 19:19:33 +00:00
Felix Fietkau
d637ae2fc8 make the build system a bit more silent without V=99
SVN-Revision: 26460
2011-04-04 00:54:37 +00:00
Jo-Philipp Wich
26616b18a4 add explicit dependencies between gcc prepare stages, fixes source download race with make -j (#8596)
SVN-Revision: 24969
2011-01-12 15:44:53 +00:00
Felix Fietkau
00d1e599d7 add a command for printing a cleaned up make target database - will be used to analyze package dependencies at some point
SVN-Revision: 22871
2010-09-01 17:51:36 +00:00
Felix Fietkau
5149ed151d gcc: split up the build process into three distinct stages (minimal, initial, final), to clean up the dependency handling nastiness and to improve support for rebuilding parts of the toolchain
SVN-Revision: 22319
2010-07-20 20:57:21 +00:00
Felix Fietkau
215ccb66e6 gcc: add llvm-gcc and llvm from trunk (does not successfully compile a target yet, but gets close)
SVN-Revision: 18019
2009-10-10 19:25:48 +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
Florian Fainelli
3eedb2a791 add the insight gdb frontend (#4701)
SVN-Revision: 17019
2009-07-26 17:55:50 +00:00
Felix Fietkau
7dc435ea29 move the toolchain_install stampfile to the right place to fix spurious missing toolchain errors after cleaning stuff
SVN-Revision: 16776
2009-07-11 12:48:59 +00:00
Nicolas Thill
a3edea1b91 add support for alternative C libraries (currently only glibc/eglibc) other (related) changes: - kernel headers are now installed using "make headers_install" on 2.6 - target names now contain an openwrt "vendor" tag (e.g. mips-openwrt-linux-gnu) - build directory names now contain gcc/libc name/version - default cpu for x86 is now i486 (required to build glibc/eglibc)
SVN-Revision: 13931
2009-01-08 01:49:11 +00:00
Felix Fietkau
8b41afa584 add some sanity checking
SVN-Revision: 11473
2008-06-15 14:34:00 +00:00
Felix Fietkau
a9d683ca91 major target cleanup. it is now possible to have subtargets that can override many target settings, including arch - merge adm5120, adm5120eb. target profiles still need to be adapted for subtargets
SVN-Revision: 8694
2007-09-08 19:55:42 +00:00
Felix Fietkau
c6bc77ea36 build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
SVN-Revision: 8362
2007-08-07 00:04:25 +00:00
Felix Fietkau
a37c85d5fe no need to call compile,install on the kernel-headers dir - this gets rid of another unnecessary autorebuild check
SVN-Revision: 8247
2007-07-30 21:57:14 +00:00
Felix Fietkau
d7f2cb1642 next round of cleanup, convert target/ - make -j works now ;)
SVN-Revision: 8242
2007-07-30 21:14:08 +00:00
Felix Fietkau
49e628f765 next round of build system cleanup - convert package/ to new structure
SVN-Revision: 8236
2007-07-30 18:22:01 +00:00
Felix Fietkau
7e21008ee2 remove leftover stuff
SVN-Revision: 8234
2007-07-30 16:04:23 +00:00
Felix Fietkau
f1ac6cf7ec fix compile errors with make 3.80
SVN-Revision: 8230
2007-07-30 15:00:27 +00:00
Felix Fietkau
d6a0242404 use $(curdir) again
SVN-Revision: 8208
2007-07-28 13:44:04 +00:00
Felix Fietkau
e143bed1f1 build system fixes, more cleanup
SVN-Revision: 8207
2007-07-28 13:29:03 +00:00
Felix Fietkau
333244441e add update target to toolchain/
SVN-Revision: 7754
2007-06-28 08:45:59 +00:00
Felix Fietkau
f6a92d6ffe enable the refresh target in toolchain/
SVN-Revision: 7751
2007-06-28 07:20:02 +00:00
Felix Fietkau
1099e2d679 the default_subtargets template was a bad idea, since different makefiles require different types of dependencies for subtargets. nuke it...
SVN-Revision: 7003
2007-04-18 17:35:46 +00:00
Felix Fietkau
fd0969ba61 remove remaining unnecessary dependency
SVN-Revision: 6423
2007-02-28 02:40:19 +00:00
Felix Fietkau
f1a91c2f71 move ccache to tools/ and fix potential dependency issue
SVN-Revision: 6413
2007-02-27 23:46:34 +00:00
Felix Fietkau
ced1277147 clean up stampfile mess for tools/ and toolchain/
SVN-Revision: 6357
2007-02-25 17:49:25 +00:00
Felix Fietkau
f74dd32cba fix ccache build order
SVN-Revision: 5783
2006-12-14 05:10:23 +00:00
Florian Fainelli
b492e69bd2 Add ccache if not installed/installable on the host-system
SVN-Revision: 5758
2006-12-11 16:42:57 +00:00
Nicolas Thill
8ec5b1d614 oops, forgot to remove references to libnotimpl
SVN-Revision: 5356
2006-10-31 11:33:34 +00:00
Felix Fietkau
60c1f0f64d finally move buildroot-ng to trunk 2016-03-20 17:29:15 +01:00