summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* scripts: add tool for generating redboot scriptsJonas Gorski2015-07-251-0/+111
| | | | | | | | | | This tool avoids generating the redboot script directly from Makefile, which can get really complicated when adapting image/Makefile to the new IB system. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46488
* scripts/ipkg-build: fix a build regression introduced in r46360 (fixes #20082)Felix Fietkau2015-07-151-1/+1
| | | | | | | | go to the $TOPDIR directory before trying to extract a git/svn timestamp Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46383
* scripts/feeds: return error status from feed updateJo-Philipp Wich2015-07-141-4/+4
| | | | | | | | | | | | | | | | This patch is a modified version of the patch being discussed at here: https://patchwork.ozlabs.org/patch/471303/ from Martin Strbacka <martin.strbacka@nic.cz> My version modifies scripts/feeds so that an error with one of the feeds just raises the error flag, but script continues and tries to update the other feeds. After all feeds have been updated, the script returns 1 if at least one feed failed, and 0 on success with all feeds. The user can then utilise the status in his build script, if he wants. signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 46374
* scripts: fix 64bit uclibc external toolchain detectionJohn Crispin2015-07-141-1/+1
| | | | | | | | according to gcc, UCLIBC_DYNAMIC_LINKER64 Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> SVN-Revision: 46362
* ipkg-build: use deterministic timestamps in ipk tarballsJohn Crispin2015-07-141-3/+14
| | | | | | | | | | | As a follow-up to r46026, this commit sets the modification times of files inside the tarballs to deterministic values. It uses the date of the last git or svn commit and falls back to the old behavior if those are not available. Signed-off-by: Reiner Herrmann <reiner@reiner-h.de> SVN-Revision: 46360
* scripts/feeds: print the source of packages installedSteven Barth2015-07-071-2/+2
| | | | | | | | | Can be helpful in diagnosing unexpected package overlaps between feeds/core. Signed-off-by: Karl Palsson <karlp@remake.is> SVN-Revision: 46255
* scripts/feeds: observe -p flag for preferential feedsSteven Barth2015-06-241-3/+3
| | | | | | | | | | | lookup_target was trampling the $feed variable, resulting in the -p flag no longer preferentially installing from the named feed. Make sure to use a local variable for this instead. Signed-off-by: Karl Palsson <karlp@remake.is> SVN-Revision: 46120
* ipkg-build: suppress timestamps in gzip headersFelix Fietkau2015-06-181-0/+1
| | | | | | | | | | | | | | | | When creating control.tar.gz, data.tar.gz and $package.ipk tar compresses them with default gzip options. This includes build timestamps in their gzip headers. By setting the GZIP env variable to -n, gzip no longer embeds them, which is a step towards reproducibility. See also [1] for more detailed motivations. [1]: https://wiki.debian.org/ReproducibleBuilds/About Signed-off-by: Reiner Herrmann <reiner@reiner-h.de> SVN-Revision: 46026
* scripts: add srecimage.pl, a script to convert binaries to SREC formatJo-Philipp Wich2015-05-281-0/+57
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 45808
* scripts/arm-magic.sh: make the generated kernels also include $IMG_PREFIXJonas Gorski2015-05-281-4/+4
| | | | | | | | | | | | In r45785 ixp4xx was changed to use a common image prefix also for kernels, but the script creating them was not updated to generate the expected filenames. Fix this by letting arm-magic.sh respect $IMG_PREFIX for the output kernel file names as well. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45803
* scripts/feeds: fix typo in copied codeFelix Fietkau2015-05-271-1/+1
| | | | | | | | | do_install_target copied code from do_install_package, but didn't replace all text. Signed-off-by: Karl Palsson <karlp@remake.is> SVN-Revision: 45784
* scripts: ensure that ipkg-make-index.sh exits successfullyJo-Philipp Wich2015-05-271-0/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 45771
* build: allow creating empty package feedsFelix Fietkau2015-05-261-0/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45757
* scripts/feeds: Delete package/feeds folder in the clean procedure to prevent ↵John Crispin2015-05-231-1/+1
| | | | | | | | | | | | | | | | | dangling links. Hello, if you run: ./scripts/feeds clean It removes ./feeds folder but not ./package/feeds/ which is full of dangling links then. This patch fixes it. Best Regards, Martin Strbačka Signed-off-by: Martin Strbacka <martin.strbacka@nic.cz> SVN-Revision: 45738
* scripts/feeds: add support for optionally using a full clone of git repositoriesFelix Fietkau2015-05-101-1/+8
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45668
* build: make device-tree arg optional in mkits.shFelix Fietkau2015-05-101-19/+21
| | | | | | | | | | | | mkits.sh help currently shows dtb file as optional, but generates an invalid its file when this option is unspecified. We're fixing this problem by removing the use of the sed command and just including variables instead. Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> SVN-Revision: 45659
* env: allow passing a commit message on saveJo-Philipp Wich2015-05-011-2/+3
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 45592
* scripts/ipkg: remove file, it is obsoleteFelix Fietkau2015-03-291-1183/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45130
* tools: replace ipkg-utils with a reduced ipkg-build variant in scripts/Felix Fietkau2015-03-291-0/+148
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45129
* scripts/metadata.pl: do not emit ARCH selection for a target if it has ↵Felix Fietkau2015-03-291-3/+3
| | | | | | | | subtargets Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45112
* buildroot: make it easier to build all kmodsJonas Gorski2015-03-161-1/+5
| | | | | | | | | Split out kmods from ALL to make it easier to create local builds that are compatible kmod-wise with releases. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44830
* scripts/feeds: add support for uninstalling targetsFelix Fietkau2015-03-151-0/+22
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44782
* scripts/feeds: add support for installing targetsFelix Fietkau2015-03-151-0/+57
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44781
* scripts/metadata.pm: save target makefile namesFelix Fietkau2015-03-151-0/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44780
* scripts/feeds: get rid of redundant feed cache copyFelix Fietkau2015-03-151-8/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44779
* scripts/feeds: remove useless install_method abstractionFelix Fietkau2015-03-151-18/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44778
* scripts/feeds: add support for searching for targetsFelix Fietkau2015-03-151-1/+44
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44777
* scripts/metadata.pl: move parse_target_metadata() to metadata.pmFelix Fietkau2015-03-152-86/+87
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44776
* scripts/feeds: scan for target metadataFelix Fietkau2015-03-151-0/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44775
* scripts/feeds: remove a few trailing tabsFelix Fietkau2015-03-151-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44773
* scripts: fix ubinize-image on OS XFelix Fietkau2015-03-151-2/+5
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 44761
* scripts: fix getver git dir checkJohn Crispin2015-02-141-1/+1
| | | | | | | | | | | | | | | | | | | Git internals are referenced by .git which isn't necessarily a directory. It may also be a file that references the actual .git directory using the gitdir directive. If .git is assumed to be a directory the build will not be able to get the correct version when openwrt is included as a git submodule because when used as a submodule .git will actually be a file referencing to a subdirectory in the parent's git dir. When the correct version is not detected some image generation tools will fail because the OpenWrt string will be 'OpenWrtunknown' which is too long for some header formats. Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> SVN-Revision: 44452
* scripts: extend rstrip.sh to remove bad rpathsJo-Philipp Wich2015-02-101-1/+11
| | | | | | | | | Remove all rpath entries which do not point to a location below /lib or /usr/lib and which do not begin with '$ORIGIN'. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44377
* build: propagate override information to .config fileJohn Crispin2015-02-092-1/+18
| | | | | | | | | | | | | | With this change, override information is now parsed from the metadata and put in the %packages hash. A new hash - %overrides - is created and exported, to be used during the .config-package.in generation. If an override is detected, a new option CONFIG_OVERRIDE_PKGS will be created in the .config, and will contain a space-separated list of all the overridden packages. Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> SVN-Revision: 44336
* build: allow openwrt.git packages to be replaced by feedsJohn Crispin2015-02-091-8/+22
| | | | | | | | | | | | | | | | | | | | | Currently, replacing a package available in openwrt.git requires modifications in openwrt.git, or requires duplicating the package in a feed but with a different name, which causes all kind of problems related to dependencies (all packages selecting it would have to be modified accordingly to select the new package). With this change, if a package with the same name is present both in feeds/ and package/ folders, the one in feeds/ can override the one in package/, both in the menuconfig and during the build, by passing the "-f" option to "./scripts/feeds install" This mechanism is particularly useful for vendor tree, or in general for application which needs to replace one particular package which exists within openwrt.git by a custom/newer version. Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> SVN-Revision: 44334
* scripts: avoid outputting empty lines in gen-dependencies.shJo-Philipp Wich2015-01-291-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44208
* scripts: gen-dependencies.sh: fix kmod dependency generationJo-Philipp Wich2015-01-291-3/+1
| | | | | | | | | | Do not output faulty ".ko" dependency if a scanned .ko file has an empty "depends=" specification, also replace the `grep | sed | awk` chain with a single sed program. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44206
* scripts: add version_filter command to metadata.plJo-Philipp Wich2015-01-291-9/+59
| | | | | | | | Also support version annotated Kconfig symbols in the kconfig subcommand. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44188
* scripts: remote-gdb: fix target / libc matching on directory namesJo-Philipp Wich2015-01-231-2/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44088
* build: revert r44076John Crispin2015-01-221-18/+7
| | | | | | | | the patch causes issues when installing feeds Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44078
* build: allow openwrt.git packages to be replaced by feedsJohn Crispin2015-01-221-7/+18
| | | | | | | | | | | | | | | | | | | | | Currently, replacing a package available in openwrt.git requires modifications in openwrt.git, or requires duplicating the package in a feed but with a different name, which causes all kind of problems related to dependencies (all packages selecting it would have to be modified accordingly to select the new package). With this change, if a package with the same name is present both in feeds/ and package/ folders, the one in feeds/ can override the one in package/, both in the menuconfig and during the build, by passing the "-f" option to "./scripts/feeds install" This mechanism is particularly useful for vendor tree, or in general for application which needs to replace one particular package which exists within openwrt.git by a custom/newer version. Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> SVN-Revision: 44076
* scripts/config: sync with linux upstreamFelix Fietkau2015-01-0824-239/+627
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43873
* scripts/config: fix segfault introduced in r43652Felix Fietkau2014-12-132-0/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43695
* scripts/config: remove debug statementJo-Philipp Wich2014-12-121-1/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 43655
* scripts/download.pl: add support for adding mirrors through an environment ↵Felix Fietkau2014-12-121-0/+3
| | | | | | | | variable Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43654
* scripts/config: support includes relative to the currently processed fileJo-Philipp Wich2014-12-122-0/+21
| | | | | | | | | | | | | When the initial glob() attempt on a path specified with "source" statement yields no result, then retry the globbing on the same path with the directory part of the currently processed file prepended. This allows us to reference Config.in files relative to their parent instead of relative to the top dir. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 43652
* scripts: use extended-remote for greater compatibilityJohn Crispin2014-12-101-1/+1
| | | | | | | | | | Plain "remote" results in failure to connect using the gdb built with the toolchain. (On atheros target at least) extended-remote also allows "run" to restart the target process. Signed-off-by: Karl Palsson <karlp@remake.is> SVN-Revision: 43596
* packages: fix typo in OpenWrt nameJohn Crispin2014-12-071-2/+2
| | | | | | Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> SVN-Revision: 43542
* scripts/config.sub: add back musl support that was accidentally dropped in ↵Felix Fietkau2014-11-281-2/+2
| | | | | | | | r43353 Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43417
* aarch64: add initial supportFlorian Fainelli2014-11-242-179/+250
| | | | | | | | Add initial support for the AArch64 architecture Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 43353