Commit Graph

485 Commits (dc9000ba82579d4842cc19e84a437b76798e7b63)

Author SHA1 Message Date
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