Commit Graph

592 Commits (f70b78ddb485a3f24cf3df90cca273e9ba16010b)

Author SHA1 Message Date
Jonas Gorski 23586bad08 scrips/metadata.pl: fix broken targets with subtargets being selectable
r26926 moved all target features to subtargets if present, which had the
side effect that broken targets are available for selection, just without
any available subtargets (since they are still marked as broken).

Fix this by explicitly letting the top level target also depend on broken.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33892 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-22 22:16:19 +00:00
Jo-Philipp Wich bb31968b55 scripts/config: fix menuconfig segfault in text inputs when format patterns are entered by the user
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33773 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-14 17:11:57 +00:00
Imre Kaloz e1396c49c0 AR71xx/9xxx based routers are the most common these days, select that as the default target
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33590 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-28 20:54:35 +00:00
Jo-Philipp Wich cfac78fcdc [scripts] fix library bundling when host libraries reside in /lib/tls/ or similar
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33353 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-09 22:37:32 +00:00
Jo-Philipp Wich 81fa3831f8 [scripts] add a helper script to bundle required libraries for host utilities
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33195 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-15 13:28:23 +00:00
Felix Fietkau e5ddfdef84 build: ensure that reordering of KCONFIG lines are handled properly and that the final result does not depend on the package scan order
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32788 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-22 21:00:07 +00:00
Felix Fietkau 034fbb7af3 scripts/feeds: redirect stderr of the which call to /dev/null to avoid potentially confusing error messages on some systems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32499 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-25 00:27:03 +00:00
Jo-Philipp Wich 0362b77a24 [scripts] gen-dependencies.sh: only include lib*.so* files in dependency list, to match the filtering of provides lists
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32272 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-12 22:02:41 +00:00
Felix Fietkau 9141e1f560 package/index: filter out the libc package from the index
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32187 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-11 01:29:11 +00:00
Felix Fietkau bee3dd6a1b build: add checks for missing package dependencies
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32185 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-11 00:57:36 +00:00
Felix Fietkau d73794f9a2 target: add a feature flag for RTC support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31777 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-17 15:28:09 +00:00
Felix Fietkau 42fa7d020e scripts/ipkg-make-index.sh: use bash instead of /bin/sh to fix use of [[ ]]
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31708 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-13 16:29:39 +00:00
Felix Fietkau ddad7c18a1 build: prevent the virtual "kernel" package from leaking into the package index to make dependency checks fail on kernel config mismatch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31704 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-13 12:31:53 +00:00
Jo-Philipp Wich 20e29580ae [scripts] download.pl:
- cleanup cache handling code
	- use alternative m// and s/// delimiters to get rid of tedious slash escaping
	- use multi-argument form of system() where possible to avoid quoting & escaping issues
	- avoid a temporary variable

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31677 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-11 18:17:15 +00:00
Felix Fietkau a263dc5a12 add further countermeasures against the git core.autocrlf option (fixes #9075)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31650 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-08 13:30:54 +00:00
Jo-Philipp Wich 05e668d206 [scripts] ext-toolchain.sh: don't pass CFLAGS when wrapping ld
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31549 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-01 22:45:55 +00:00
Felix Fietkau b5f3dda123 build: rework verbosity level selection
V=99 and V=1 are now deprecated in favor of a new verbosity class system,
though the old flags are still supported.
You can set the V variable on the command line (or OPENWRT_VERBOSE in the
environment) to one or more of the following characters:

- s: stdout+stderr (equal to the old V=99)
- c: commands (for build systems that suppress commands by default, e.g. kbuild)
- w: warnings/errors only (equal to the old V=1)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31484 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-26 17:53:56 +00:00
Mirko Vogt cad43b2476 [scripts/feeds] re-enable shallow git clones ('--depth 1')
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31469 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-24 18:19:16 +00:00
Mirko Vogt 4ef95be3d1 [scripts/feeds] include revisions of feeds when listing them
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31467 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-24 12:56:18 +00:00
John Crispin d1918e0f5b [scripts] allow arbitary folder layout when using localmirrors
Make the download script follow symlinks and search subfolders when looking for
a file in a local download mirror.

Signed-off-by: Tathagata Das <tathagata@alumnux.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31240 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-10 14:11:45 +00:00
Felix Fietkau c1339030e1 kernel: fix stripping of modules with duplicate symbol names
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31031 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-19 21:09:47 +00:00
Felix Fietkau 7fd4ed413f kernel: improve profiling support, keep static symbols when profiling is enabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30964 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-17 13:03:14 +00:00
Felix Fietkau d8d82fb79d kernel: keep more symbols in the kernel modules when doing profiling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30762 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-01 15:13:26 +00:00
Felix Fietkau 81f11f6976 kernel: do not rename module symbols with kallsyms enabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30759 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-01 09:58:03 +00:00
Felix Fietkau 0a48bb3437 Revert "scripts/download.pl: fix sourceforge url"
To use the new url, the project name would need to be appended multiple times,
let's hope the old redirect will continue to work in the future

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30730 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-26 09:29:53 +00:00
Felix Fietkau d2d9abec24 scripts/download.pl: fix sourceforge url
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30726 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-25 20:44:02 +00:00
Felix Fietkau 32a6974781 strip kernel modules more aggressively: make all global symbols local, rename all symbols in the symbol table to make them compress better
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30662 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-20 17:38:26 +00:00
Florian Fainelli 6851911ccd [scripts] env: colorize git output
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30602 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-16 19:24:34 +00:00
Jo-Philipp Wich c10c357a74 [scripts] patch-specs.sh: gcc 3.4.6 has an additional "(OpenWrt-2.0)" after the version tag, cope with that
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29948 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-29 20:19:06 +00:00
Jo-Philipp Wich acd9bb6f8d [scripts] download.pl: remove ftp.geo.kernel.org mirror, it does not resolve
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29947 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-29 19:28:12 +00:00
Jo-Philipp Wich 8f49540aa7 [scripts] ext-toolchain.sh: rework generated gcc wrapper
Only append -L and -Wl,-rpath-link flags if the command line contains -l, -L, -shared or -static flags;
this is needed to suppress "-rpath-link: linker input file unused because linking not done" on each cc invocation.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29946 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-29 18:53:12 +00:00
Jo-Philipp Wich 2c6847fa45 [scripts] patch-specs.sh: fallback to ext-toolchain.sh --wrap if spec file patching is not possible (gcc < 4.3.0)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29945 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-29 17:42:58 +00:00
Jo-Philipp Wich 5da516bb55 [scripts] ext-toolchain.sh: support --wrap with src == dest
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29944 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-29 17:42:10 +00:00
Jo-Philipp Wich c071f2b90b [scripts] ext-toolchain.sh: CONFIG_NLS -> CONFIG_BUILD_NLS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29782 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-19 00:03:52 +00:00
Jo-Philipp Wich f24b74fc72 [scripts] ext-toolchain.sh: fix typo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29781 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-19 00:01:54 +00:00
Jo-Philipp Wich 4926d6074e [scripts] ext-toolchain.sh: add option to write .config
Add a new --config option to generate a .config from a given toolchain,
this allows for easy integration of external toolchains, e.g.

  ./scripts/ext-toolchain.sh --toolchain /opt/mips-2011.03 --cflags "-muclibc" --config atheros

to setup a ready-to-compile atheros target using the external CodeSourcery toolchain.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29780 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-18 23:46:06 +00:00
Jo-Philipp Wich 838e920855 [scripts] ext-toolchain.sh: properly handle toolchains without sysroot support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29772 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-18 04:03:15 +00:00
Jo-Philipp Wich 20a5105819 [scripts] ext-toolchain.sh:
- use GCC's own idea of the target name (-dumpmachine)
	- display help if called without args
	- add copyright foo
	- remove some leftover flag handling code


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29769 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-18 03:32:30 +00:00
Jo-Philipp Wich c9fe1a096b [scripts] add patch-specs.sh, a utility for modifying GCC specs
The patch-specs.sh utility dumps the GCC specs of a given toolchain
and modifies them to always include $STAGING_DIR in the link and 
compiler command lines, this makes most -I and -L flags unnecessary
and lets the compiler automatically find libraries and headers in
the staging dir, also solves the majority of -rpath issues.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29767 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-18 03:11:45 +00:00
Jo-Philipp Wich 39407a1e6e [scripts] add ext-toolchain.sh, a utility for external toolchains
The ext-toolchain.sh utility script implements various external toolchain tasks:
  * Testing of available features, like c++, soft-float or ipv6 support
  * Finding the libc implementation (uclibc or eglibc/glibc)
  * Inferring the GNU target name
  * Finding shared objects for packaging (libc, libpthread, ...)
  * Finding executables for packaging (ldd, gdbserver, ...)
  * Generating wrapper scripts for toolchain commands


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29765 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-18 03:03:24 +00:00
Jo-Philipp Wich c4e84eb3f8 [scripts] metadata.pl: filter direct recursive depends like "select PACKAGE_kmod-ipv6 if PACKAGE_kmod-ipv6"
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-08 15:49:20 +00:00
Gabor Juhos e5d1afc6e3 scripts: add a script for generating fwupgrade config for the OM2P board
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29396 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-01 22:49:03 +00:00
Nicolas Thill 98ad18d6f0 scripts: add script to generate combined extended image format
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29358 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-30 07:43:58 +00:00
Felix Fietkau 96285ef8bd scripts/env: improve the wording of the question when starting repository (patch by Rolf Leggewie)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29262 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-19 17:15:53 +00:00
Felix Fietkau e9d65e1e2b scripts/env: make mv and cp operations more robust (treat dotfiles appropriately) (based on patch by Rolf Leggewie)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29261 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-19 17:15:50 +00:00
Felix Fietkau eeba5feb8d scripts/env: fix indentation (patch by Rolf Leggewie)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29260 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-19 17:15:45 +00:00
Michael Büsch f1f34a5169 mconf: Fix compile warning:
"warning: conflicting types for ‘sym_set_all_changed’"


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29190 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-16 17:27:36 +00:00
Felix Fietkau 141e0902dc scripts/config: merge fixes for various issues, including recursive dependency detection/handling (patch by mbm)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28658 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-28 14:09:12 +00:00
Jo-Philipp Wich 80c2325031 [scripts] getver.sh: cope with varying "git log" line formats to reliably extract the git-svn rev (#10268)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28604 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-26 14:54:57 +00:00
Felix Fietkau f7606791e3 scripts/feeds: override the OPENWRT_BUILD variable when calling internal targets (based on patch from #10212)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28503 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-21 13:03:37 +00:00
John Crispin 076d58c2cb allow targets to define a default subtarget when using automatic subtarget detection from r27407
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27444 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-04 11:21:37 +00:00
John Crispin 2e3b0f7f91 ignore empty lines in scripts/localmirrors
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27416 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-03 19:33:24 +00:00
Jo-Philipp Wich 32523a2688 [scripts] download.pl: cope with potential two-digit linux versions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27376 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-03 15:00:24 +00:00
Felix Fietkau c163347f4b add support for hidden packages that get selected/built but do not show up in menuconfig
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27344 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-07-02 06:49:09 +00:00
Jo-Philipp Wich 70f62578d9 [scripts] metadata.pl: fix handling of multiple conditional depends that reference the same package (exposed by previous hotplug2 changes), also kill duplicate dependency specs while we're at it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27267 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-23 19:28:16 +00:00
Jo-Philipp Wich aa3bc1d684 [PATCH] scripts/config/.gitignore omits source files
scripts/config/.gitignore aims to avoid checking binaries in to git.
Unfortunately it also omits conf.c, confdata.c, and all source files
in lxdialog. An OpenWRT tree pulled from a git repository will not
build, and I suspect this was not the intention.

Signed-off-by: Denton Gentry <denny@geekhold.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27244 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-20 10:41:02 +00:00
Hauke Mehrtens a4194f58c6 Fix CONFIG_LINUX_ for linux 3.0
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27184 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-15 21:11:05 +00:00
Felix Fietkau f07b8453db remove the now unused Target-Kernel field from the target metadata
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27033 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-30 23:07:53 +00:00
Jo-Philipp Wich 4f4013df57 [PATCH] Add support for git-svn package feeds
Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26988 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-24 09:30:24 +00:00
Felix Fietkau f7beb0c7a6 metadata: do not emit feature flag selects for targets which have subtargets - fixes a buildbot error cause by ssb not being blacklisted for lantiq falcon
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26926 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-17 12:54:45 +00:00
Hamish Guthrie 2a22d86e63 Correct libc path
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26885 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-13 11:52:40 +00:00
Felix Fietkau d269a8077e add a new package metadata variable MDEPENDS for specifying local menuconfig dependencies that do not propagate to other packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26491 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-05 19:03:51 +00:00
John Crispin 4cde95913b [scripts/env]
path expansion was broken due to a badly quoted *

Signed-of-by: Benjamin Cama <benoar@dolka.fr>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26391 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-01 11:07:27 +00:00
Felix Fietkau 7252c35ef1 scripts/diffconfig.sh: handle CONFIG_ALL, CONFIG_DEVEL and CONFIG_TOOLCHAINOPTS properly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26349 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-28 23:25:18 +00:00
Felix Fietkau ee7fa78bed base-files: relink uclibc and libgcc libraries to remove leftovers of the statically linked initial libgcc
saves a few kb and gets rid of unused not exported functions as well
should also improve the reliability of mklibs

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25800 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-01 05:40:38 +00:00
Jo-Philipp Wich 7fcc8371c6 [buildroot] add config.rpath and link it in autotools.mk if missing, some packages might need it, especially users of lib-link.m4 or iconv.m4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25753 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-27 15:39:27 +00:00
Jo-Philipp Wich 0081e14ade [PATCH 1/2] Never write errors to stdout from ipkg-make-index.sh
Since the output of ipkg-make-index.sh is unconditionally used to create
the Packages file, sending the errors into this file is unacceptable
(both because they are not shown to users and because they make an
invalid Packages file).

For incorrect invocation, write to stderr.
For errors from which, send to /dev/null with stdout.

Signed-off-by: Kevin Locke <klocke@digitalenginesoftware.com>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25677 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-23 22:58:58 +00:00
Jo-Philipp Wich dc90adbe1f [scripts] download.pl: adjust kernel download urls for longterm and testing releases
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25589 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-19 15:41:00 +00:00
Felix Fietkau f9db725f5c metadata: fix handling of multiple build dependencies with different conditions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25505 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-13 02:52:22 +00:00
Felix Fietkau 4d75ce69d2 scripts/diffconfig.sh: use the new kconfig mode to remove some more unnecessary entries in the generated output
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25233 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-29 02:35:28 +00:00
Felix Fietkau c7c7837117 scripts/kconfig.pl: add a mode to generate a config diff that ignores added undefined config values
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25232 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-29 02:35:24 +00:00
Felix Fietkau 73ea5d23f2 add scripts/diffconfig.sh: a tool for making reduced .config files
these files contain only the target selection and options that differ from the default settings
this makes it much easier to review .config files

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25231 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-29 02:22:45 +00:00
Felix Fietkau a6091580c3 scripts/config: add an option for making the conf tool write to a different file
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25230 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-29 02:22:40 +00:00
Felix Fietkau a916879574 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
Jo-Philipp Wich 4ccce484c2 [scripts] download.pl: pass --no-check-certificate to wget
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24686 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-18 20:54:53 +00:00
Michael Büsch a329e45c13 deptest: Also accept stamps that are broken links.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24350 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-08 16:08:14 +00:00
Felix Fietkau 40786544ee scripts/feeds: support checking out git trees with different branches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24285 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-06 16:57:25 +00:00
Michael Büsch 1a715e419f deptest: Make stamps be symlinks to logs.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24277 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-06 10:49:37 +00:00
Imre Kaloz c1725149e1 switch from ext2 to ext4 (w/o) journaling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24084 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-22 12:12:39 +00:00
Michael Büsch ad339e0d82 deptest: Capitalize failure message. Makes it easier to spot in the logs.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23855 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-04 11:30:10 +00:00
Michael Büsch b914812321 deptest: Do not clobber the base build and staging dirs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23835 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 18:48:03 +00:00
Michael Büsch 208df9da51 deptest: --force also overrides blacklist stamps
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23827 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 15:18:53 +00:00
Michael Büsch a1b02b7ee0 deptest: Add --force to force a test
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23826 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 15:01:03 +00:00
Michael Büsch 99abe56d08 deptest: Install of host tools has to be forced for every test, because the host staging dir is cleaned prior a test.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23825 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 14:58:32 +00:00
Michael Büsch 31d0d69841 deptest: Add option for lean test
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23821 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 14:44:31 +00:00
Michael Büsch b964989f75 deptest: Add sanity check to avoid trouble with illegal package names
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23819 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 12:49:38 +00:00
Michael Büsch e0ef43b324 deptest: Support specifying certain packages to test on the commandline.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23818 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 12:41:28 +00:00
Michael Büsch 286a9a67ee deptest: Add optional blacklisting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23811 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 01:10:52 +00:00
Michael Büsch 9e13ee5627 deptest: Check for .config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23810 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 00:27:50 +00:00
Michael Büsch 01a4d924f0 deptest: Install the kernel at init stage
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23809 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 00:24:12 +00:00
Michael Büsch 6249f03131 deptest: Better detection of base directory
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23807 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-02 23:22:34 +00:00
Michael Büsch 686a035a49 deptest: Also make sure the toolchain is built in the initialization step. This makes it possible to run the script from within a fresh tree.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23806 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-02 22:48:29 +00:00
Michael Büsch d4d4d268ba deptest: Also create "failed" stamps. This makes it easier to check what failed after the script finished.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23805 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-02 22:36:32 +00:00
Michael Büsch e81f40a3ad deptest: Add shbang
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23804 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-02 21:58:24 +00:00
Michael Büsch 26dd03e83f deptest: Fix indent
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23803 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-02 21:57:03 +00:00
Florian Fainelli 176fcbe9d8 [feeds] add support for darcs-based feeds
The following patch adds support for darcs-based feeds.
It is tested and works well for my purpose.  I wish it
were committed upstream so that I can share my feed with
other users without converting it to svn/git/whatever.

Best regards,

Signed-off-by: Gabriel Kerneis <kerneis@pps.jussieu.fr>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23616 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-24 12:36:51 +00:00
Michael Büsch ed2fe1cf2d Fix typo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23524 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-18 21:43:50 +00:00
Jo-Philipp Wich 76b017e355 [scripts] remote-gdb: fix parsing of arch and libc from given path as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23407 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-12 03:07:07 +00:00
Jo-Philipp Wich 461f29cb46 [scripts] remote-gdb:
- fix parsing of arch-libc tuples
	- automatically add sysroot to executable if needed


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23406 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-12 01:15:55 +00:00
Jo-Philipp Wich f91962bddd [scripts] metadata.pl: don't emit LINUX_2_6 selects anymore
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23375 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-10 12:27:44 +00:00
Jo-Philipp Wich 1115bcc62c [scripts] patch-kernel.sh: utilize --force (#7745), also use the PATCH env var and fallback to "patch" if unset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23314 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-08 09:21:01 +00:00
Jo-Philipp Wich 36dc978a0e [scripts] feeds: restore previously active feed after install_package(), fixes install all case for packages with inter-feed dependencies
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23171 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-02 02:37:27 +00:00
Felix Fietkau 32b6ebf57c fix build dependencies on packages with multiple variants but no selected virtual packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23102 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-20 20:17:28 +00:00
Michael Büsch 12eda380d1 dl_cleanup: Add support for GIT-SHASUM
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23084 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-18 19:19:34 +00:00
Jo-Philipp Wich 69c9cad2a1 [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
Jo-Philipp Wich d069b1594f [scripts] metadata.pl: fix handling of HOST_BUILD_DEPENDS if a package is referenced that only exists as source pkg, e.g. libtool
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22946 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-06 01:43:20 +00:00
Felix Fietkau e3b691c96c add a command for printing a cleaned up make target database - will be used to analyze package dependencies at some point
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22871 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-01 17:51:36 +00:00
Felix Fietkau 3320327bad scripts/feeds: fix a bug in the metadata caching change
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22819 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-26 21:40:16 +00:00
Felix Fietkau 85bd82d06f scripts/feeds: switch to the right feed metadata when installing a package to fix dependency handling (patch by matthijs from #5891)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22815 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-26 15:13:47 +00:00
Felix Fietkau 5ec934567a scripts/feeds: cache feed metadata instead of re-reading it on every get_feed() call
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22814 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-26 15:13:42 +00:00
Michael Büsch 55bd749a6c Add usb gadget feature flag
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22798 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-25 17:35:34 +00:00
Michael Büsch aa03772b7f Fix dl_cleanup.py
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22578 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-10 15:08:02 +00:00
Felix Fietkau 3d492106cd scripts/env: fix initialization of files/ when creating a new environment (patch from #7603)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22336 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-21 17:49:52 +00:00
Imre Kaloz 81db1e7929 upgrade the config.* scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22312 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-20 13:21:00 +00:00
Hamish Guthrie 96e9790a87 Revert r22094 and r22095
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22096 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-08 16:15:57 +00:00
Hamish Guthrie 2f2cf51c25 Added --non-interactive flag to svn package downloads
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22095 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-08 15:44:24 +00:00
Hamish Guthrie 79e21b2ea4 add --trust-server-cert to svn checkout of feeds
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22094 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-08 15:27:33 +00:00
Felix Fietkau 341feb2a3f set the default target to brcm47xx, now that brcm-2.4 is gone
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21960 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26 23:47:25 +00:00
Florian Fainelli d4ca5e4999 [scripts] make flashing scripts executable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21958 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26 22:18:15 +00:00
Nicolas Thill 8b1974bdad buildsystem: rename tgz/TGZ "feature" and matching options to targz/TARGZ
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21238 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-28 14:47:43 +00:00
Felix Fietkau ddfb8c51db metadata.pl: fix recursive handling of conditional dependencies
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21088 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-22 15:39:20 +00:00
Felix Fietkau da1d443c2c fix timestamp checks for build system paths which have '.svn' in their directory name
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20856 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-14 22:21:15 +00:00
Nicolas Thill 18b6a66394 target/ixp4xx: fix image building after r20834 (closes: #7157)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20854 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-14 14:36:41 +00:00
Florian Fainelli 8c0fa2b8a9 [rdc] rework board detection
Rework board detection, separate board specific code into its own file. As a
result we also change the way rdc images are generated.
Support for board which required binary tools, like AMIT are dropped. Patch by
Bernhard Loos.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20294 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 23:35:21 +00:00
Jo-Philipp Wich eb5d7e74b5 [scripts] remote-gdb:
* use sysroot instead of solib search paths
	* don't query arch if there's only one choice


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20290 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 21:10:56 +00:00
Felix Fietkau 6ac33df3ad scripts/metadata.pl: fix handling of multiple conditional depends on the same package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20085 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09 15:51:40 +00:00
Jo-Philipp Wich 3e0dc48650 [scripts] ipkg:
strip directory entries from package file list when offline installing .ipk archives,
this prevents opkg from removing directories like /usr later on when trying to
uninstall preinstalled packages (partial fix for #6772)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19936 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-01 18:01:33 +00:00
Jo-Philipp Wich 6c48ebd0a4 [scripts] remote-gdb: change library paths after r19849, swap usr/lib/ and lib/
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19850 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-24 23:51:50 +00:00
Jo-Philipp Wich 93aae29643 [scripts] remote-gdb: add build_dir/target-*/debug-* to solib-search-path
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19845 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-24 22:56:36 +00:00
Lars-Peter Clausen 76f39fa3a7 Add audio feature flag.
There are targets which neither have usb host nor pci support but do have audio
capabilities. Those targets should expliclitly specifiy that they support audio
through the new feature flag. The audio feature flag is also implicitly selected
by the usb and pci feature flags.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19643 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-15 20:03:18 +00:00
Travis Kemen 6bc3f81729 add geodns addresses for the kernel, closes #6574
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19621 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-13 01:07:44 +00:00
Hauke Mehrtens 2fcc620c06 preinit: fix #6596
Setting LAN IP Address in menuconfig is ignored


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19384 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-29 20:30:21 +00:00
Felix Fietkau b90f1fe190 kconfig.pl: fix handling of multiple kmod-* package referencing the same KCONFIG symbols
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19366 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-28 19:27:43 +00:00
Felix Fietkau fd4ddfd240 add preinit modularization work by Daniel Dickinson (cshore)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19331 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-25 17:11:17 +00:00
Felix Fietkau a41a411af7 metadata: allow build variants to contain "-"
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19284 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-23 08:28:15 +00:00
Lars-Peter Clausen 2710572b04 Add support for building ubifs images.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19097 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-11 01:10:45 +00:00
Michael Büsch 7a9a0ea725 dl_cleanup: Show it to the user, if file extension or version pattern is unknown
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19085 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-09 18:58:28 +00:00
Michael Büsch 3239b197f1 dl_cleanup: Add regex for foo_1_2_3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19084 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-09 18:45:05 +00:00
Michael Büsch 97d8f16046 dl_cleanup: Allow removing items from blacklist
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19083 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-09 18:31:29 +00:00
Michael Büsch 5497d9adef dl_cleanup: Add linux and gcc to blacklist
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19082 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-09 18:19:29 +00:00
Michael Büsch eec44e4549 dl_cleanup: Add dry-run option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19081 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-09 18:06:54 +00:00
Florian Fainelli bab9153d71 [scripts] adjust svn:ignore for cygwin builds
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19040 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-05 11:06:21 +00:00
Lars-Peter Clausen ef8c9c1555 [scripts] update-package-md5sum: A tool to update the md5sum of openwrt packages.
Useful when upgrading a set of packages.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19019 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-03 17:06:06 +00:00
Michael Büsch 980f02f41e dl_cleanup: Utility to delete all but the very last version of the tarballs in the download directory.
The tool does currently have a few false positives (probably below 1%), but this is harmless, because buildroot will just redownload them.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19018 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-03 13:26:30 +00:00
Felix Fietkau b97c4008bd scripts/combined-image.sh: remove the use of mktemp to make it more portable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18920 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-24 10:34:37 +00:00
Felix Fietkau efa764f2f0 menuconfig: allow wildcard includes to return no match (#6339)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18743 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 04:41:56 +00:00
Felix Fietkau d8c10735b7 add a simple script for symlinking one tree into another for doing builds with separate build dirs, but the same source dir
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18734 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-10 20:52:45 +00:00
Felix Fietkau cdd55b59a1 metadata.pl: fix menuconfig code for package features
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18386 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-12 00:06:35 +00:00
Felix Fietkau 8075ad2ef5 build system: introduce a new feature called build variants.
it allows building a package multiple times in one pass with different build dirs,
based on the same build settings.
replaces templating hacks like the one used in the hostapd package

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18357 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-10 22:00:54 +00:00
Felix Fietkau 565d7138d9 metadata: process dependencies for targets that have subtargets as well - hides the ramips target unless the user has requested to play with broken packages/targets (related to #6051)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18306 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-05 01:24:30 +00:00