aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* scripts: feeds: fix version detection for Make >= 4.2.1Jo-Philipp Wich2016-07-071-1/+4
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* scripts/ipkg-build: fix deprecated GZIP environment variable warningSyrone Wong2016-06-261-4/+4
| | | | | | | | | | | | According to gzip 1.7 release note: The GZIP environment variable is now obsolescent; gzip now warns if it is used, and rejects attempts to use dangerous options or operands. You can use an alias or script instead. Fix this warning by using pipe instead Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
* scripts: add dirtyhack to getver.shZoltan HERPAI2016-06-241-1/+2
| | | | | | | | Add hack to account for the missing commits in the git tree, and try to roughly match the revision numbers continued from the SVN tree. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* scripts/getver.sh: generate revision relative to the trunk tag.Zoltan HERPAI2016-06-231-3/+2
| | | | | | | | | | | | The first commit was tagged as "trunk". As there are missing commits for some reason in the tree, the relative number of commits to the tag is now 37507. This will mean some confusion to the users when reflecting to the revision numbers, so the git commit ID is added to the revision to clearly indicate it's from the nrew github tree. Example is r37487-g441a9c8. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* global: introduce ALL_NONSHARED symbolJo-Philipp Wich2016-06-222-3/+7
| | | | | | | | Introduce a new symbol ALL_NONSHARED which selects all non-sharable packages by default. This option is mainly intented for buildbot setups to build the target dependant software subset only. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: fix replace nbd@openwrt.org with nbd@nbd.nameFelix Fietkau2016-06-191-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49379 3c298f89-4303-0410-b956-a3cf2f4a3e73
* metadata.pl: add support for selecting packages available only via PROVIDESLuka Perkov2016-06-191-20/+30
| | | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49346 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts: metadata: add CONFIG_TARGET_SUBTARGET symbolLuka Perkov2016-06-191-0/+12
| | | | | | | | | Add a new string symbol "CONFIG_TARGET_SUBTARGET" which contains the name of the chosen subtarget or "generic" if there are no subtargets available. Signed-off-by: Jo-Philipp Wich <jo@mein.io> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49323 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts: avoid hard-coded paths in scriptsJohn Crispin2016-06-197-7/+7
| | | | | | Signed-off-by: Iblis Lin <e196819@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49267 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/getver.sh: Use 'git-rev-parse' to detect if tree lies in Git repositoryVasilis Tsiligiannis2016-04-131-1/+1
| | | | | | | | | | | Path to the Git repository directory can be overriden by using the '$GIT_DIR' environment variable. This patch improves detection of Git repository by using 'git-rev-parse', which respects '$GIT_DIR' environment variable, instead of just checking the existence of '.git' directory. Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49165 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/om-fwupgradecfg-gen.sh: add support for the OM5P-ACJohn Crispin2016-04-091-2/+2
| | | | | | Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49143 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/om-fwupgradecfg-gen.sh: Generate sha256sum for uboot verificationJohn Crispin2016-04-091-0/+4
| | | | | | | | | | Future Open Mesh u-boot versions are changing the check of the image files (vmlinux, rootfs) from md5 to sha256. Having both in them should be enough to ensure backward and forward compatibility. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49140 3c298f89-4303-0410-b956-a3cf2f4a3e73
* download: add @GITHUB download facilityJohn Crispin2016-04-091-0/+5
| | | | | | | | Define a new alias (@GITHUB) for downloading raw github repository files Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49138 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/download.pl: fix sha256 hash command (#21931)Felix Fietkau2016-02-271-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48809 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/strip-kmod.sh: remove a few extra sections to slightly reduce kernel ↵Felix Fietkau2016-02-011-0/+2
| | | | | | | | module size Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48608 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts: fix GNU data invocationJo-Philipp Wich2016-02-011-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48594 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/get_source_date_epoch.sh: for SVN use a variant that is compatible ↵Felix Fietkau2016-02-011-1/+1
| | | | | | | | with older versions Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48593 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/portable_date.sh: fix parsing of date strings on non-GNU systemsFelix Fietkau2016-02-011-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48592 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build system: have tar use $SOURCE_DATE_EPOCH for --mtimeFelix Fietkau2016-01-311-1/+6
| | | | | | | | | | | | | | | | The --mtime argument to 'tar' sets the modification time for all files within the archive, which determines the timestamp files will get when they are extracted. In this case, rootfs and other tarballs will get mtimes which correspond to the last commit timestamp of the build system, as reported by git/subversion. This is a step towards reproducible image builds. Signed-off-by: bryan newbold <bnewbold@robocracy.org> Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48586 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: introduce SOURCE_DATE_EPOCH variableFelix Fietkau2016-01-311-0/+31
| | | | | | | | | | | SOURCE_DATE_EPOCH is the date of the last modified file using git/svn as date source. See https://reproducible-builds.org/specs/source-date-epoch/ Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48584 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add scripts/portable_date: wrapper around date for bsd/linuxFelix Fietkau2016-01-311-0/+11
| | | | | | | | | | | | date -r $unix_timestamp on bsd is equal to date -d @$unix_timestamp on linux. To support reproducible builds and not loosing every timestamp it's required to convert a unix timestamp into human readable timestamp ./scripts/portable_date $unix_timstamp +%T Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48583 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: group kmod ipk files into a "kernel" subdirectoryJo-Philipp Wich2016-01-242-6/+6
| | | | | | | | | | This is useful to just use the kmods from an official build while supplying base packages from a custom feed or the other way around; for just overriding the kmods with a local repo while using official repos for the rest. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48475 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add @APACHE download facilityFelix Fietkau2016-01-171-0/+6
| | | | | | | | | | The Apache Software Foundation offers diverse download mirros. For packaging Apache software a new alias @APACHE is defined. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48270 3c298f89-4303-0410-b956-a3cf2f4a3e73
* download.pl: fix openssl sha256 digest outputFelix Fietkau2016-01-161-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48259 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/download.pl: add SHA-256 supportFelix Fietkau2016-01-161-20/+38
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48253 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/metadata.pl: add support for ignoring source packages when ↵Felix Fietkau2016-01-102-1/+8
| | | | | | | | generating metadata Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48170 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/download.pl: cleanup GNOME source location definitionsFelix Fietkau2015-12-101-7/+2
| | | | | | | | | | | Cleanup the @GNOME source download location definitions: * remove dead and stale mirrors * adjust to changes at directory structure * add one new working mirror Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47825 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add support for choosing a different url filename part than the ↵Felix Fietkau2015-11-221-2/+6
| | | | | | | | output file Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47591 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/diffconfig.sh: reduce config output with CONFIG_BUSYBOX_CUSTOMFelix Fietkau2015-11-131-0/+1
| | | | | | | | | | | | | | | Use similar approach as r47461 to reduce output for busybox config. Since r39435 CONFIG_BUSYBOX_CUSTOM=y has caused the addition of all ~260 busybox config options to the diffconfig output even if only one option has been changed. This patch eliminates the unchanged busybox config options from the output and leaves only the actually modified options. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47463 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/diffconfig.sh: reduce config output with CONFIG_ALL_KMODSFelix Fietkau2015-11-121-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47461 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/config: fix handling of CONFDEFAULT on oldconfigFelix Fietkau2015-11-031-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47372 3c298f89-4303-0410-b956-a3cf2f4a3e73
* update config.guess & config.subFelix Fietkau2015-11-022-290/+238
| | | | | | | | | | | | | | | | These are from today's master branch of: http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree In particular it adds support for ARC architecture plus some more improvements and fixes. This patch is built-tested against NetGear WNDR3800. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Florian Fainelli <florian@openwrt.org> Cc: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47360 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/checkpatch.pl: Fix deprecation warningsJohn Crispin2015-11-021-5/+5
| | | | | | | | In perl version v5.22, use of unescaped opening braces is deprecated Signed-off-by: Javier Domingo Cansino <javierdo1@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47342 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: Allow kernel modules to set build ID debug symbolFelix Fietkau2015-10-301-1/+4
| | | | | | | | | | | | | | | | | | | | This change adds support for specifying a build ID for kernel modules. This is done by setting PKG_BUILD_ID to a hexadecimal string, which will then be passed to the kernel linker. In addition, when this flag is set, the build ID debug symbol (.note.gnu.build-id) will not be stripped from the kernel module. This symbol is exported in sysfs by the kernel (if the kernel is compiled with CONFIG_KALLSYMS) and so can be used to uniquely identify a version of a kernel module in a running kernel. This is useful for keeping track of different versions of a module when doing experiments and development. Modules that specify the build ID will be ~100 bytes larger (depending on the length of the build ID specified). There is no size difference for kernel modules that do not set this variable. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47290 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dl_cleanup: Fix linux blacklistMichael Büsch2015-10-071-2/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47157 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dl_cleanup: Port to Python 3Michael Büsch2015-10-071-26/+29
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47156 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/om-fwupgradecfg-gen.sh: add support for the MR1750John Crispin2015-09-141-2/+2
| | | | | | Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46928 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/om-fwupgradecfg-gen.sh: Fix u-boot image md5sum checkJohn Crispin2015-09-141-0/+3
| | | | | | | | | | | The u-boot on Open Mesh devices checks the whole transfered image against a md5sum. This is stored inside the option filemd5sum inside the fwupgrade.cfg. The bootloader will not check it when this setting is missing and could therefore write invalid images to the flash. Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46925 3c298f89-4303-0410-b956-a3cf2f4a3e73
* script: downlaod: change mirror for kernel.orgHauke Mehrtens2015-09-111-2/+2
| | | | | | | | | | kernel.org now suggests a different mirror address. this one also support IPv6 connections and was faster for me. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46875 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ipkg-build: add ogargs to outer tar/ipkFelix Fietkau2015-09-111-1/+1
| | | | | | | | prevent name:uid leaks of build system Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46863 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include/image.mk: make tar reproducibleFelix Fietkau2015-09-111-3/+3
| | | | | | | | | several packages reported different file order between builds make binutils, kmod-sched reproducible Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46859 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add a build step for generic sysupgrade nand imageJonas Gorski2015-09-041-0/+68
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46784 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/patch-kernel.sh: remove -E flag to preserve empty files touched by ↵Felix Fietkau2015-08-251-1/+1
| | | | | | | | patches Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46723 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/feeds: allow export of feeds with static revisionsJonas Gorski2015-08-231-1/+10
| | | | | | | | | | | | Add a switch to scripts/feeds that allows listing the feeds with their currently checked out revisions in feeds.conf compatible format. This allows providing a feeds.conf for public builds to make replication of the build easier. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46706 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46488 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46383 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46374 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46362 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46360 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46255 3c298f89-4303-0410-b956-a3cf2f4a3e73