aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* scripts: feeds: fix version detection for Make >= 4.2.1Jo-Philipp Wich2016-10-051-1/+4
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* scripts/om-fwupgradecfg-gen.sh: add support for the OM5P-ACSven Eckelmann2016-09-211-2/+2
| | | | | | Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com> Backport of r49143
* scripts/om-fwupgradecfg-gen.sh: Generate sha256sum for uboot verificationSven Eckelmann2016-09-211-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> Backport of r49140
* scripts/om-fwupgradecfg-gen.sh: Fix u-boot image md5sum checkSven Eckelmann2016-09-211-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.eckelmann@open-mesh.com> Backport of r46925
* scripts/om-fwupgradecfg-gen.sh: add support for the MR1750Sven Eckelmann2016-09-211-2/+2
| | | | | | Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com> Backport of r46928
* build: add support for choosing a different url filename part than the ↵Felix Fietkau2016-02-291-2/+6
| | | | | | | | | | output file Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r47591 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48823 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/config: fix handling of CONFDEFAULT on oldconfigFelix Fietkau2016-02-291-2/+2
| | | | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r47372 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48816 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/diffconfig.sh: reduce config output with CONFIG_BUSYBOX_CUSTOMFelix Fietkau2015-11-181-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> Backport of r47463 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47497 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/diffconfig.sh: reduce config output with CONFIG_ALL_KMODSFelix Fietkau2015-11-181-0/+1
| | | | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r47461 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47496 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/feeds: observe -p flag for preferential feedsSteven Barth2015-07-071-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> git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46213 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45808 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45803 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45784 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts: ensure that ipkg-make-index.sh exits successfullyJo-Philipp Wich2015-05-271-0/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45771 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: allow creating empty package feedsFelix Fietkau2015-05-261-0/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45757 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45738 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45668 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45659 3c298f89-4303-0410-b956-a3cf2f4a3e73
* env: allow passing a commit message on saveJo-Philipp Wich2015-05-011-2/+3
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45592 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/ipkg: remove file, it is obsoleteFelix Fietkau2015-03-291-1183/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45130 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45129 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45112 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44830 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/feeds: add support for uninstalling targetsFelix Fietkau2015-03-151-0/+22
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44782 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/feeds: add support for installing targetsFelix Fietkau2015-03-151-0/+57
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44781 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/metadata.pm: save target makefile namesFelix Fietkau2015-03-151-0/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44780 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/feeds: get rid of redundant feed cache copyFelix Fietkau2015-03-151-8/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44779 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/feeds: remove useless install_method abstractionFelix Fietkau2015-03-151-18/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44778 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/feeds: add support for searching for targetsFelix Fietkau2015-03-151-1/+44
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44777 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/metadata.pl: move parse_target_metadata() to metadata.pmFelix Fietkau2015-03-152-86/+87
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44776 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/feeds: scan for target metadataFelix Fietkau2015-03-151-0/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44775 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/feeds: remove a few trailing tabsFelix Fietkau2015-03-151-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44773 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts: fix ubinize-image on OS XFelix Fietkau2015-03-151-2/+5
| | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44761 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44452 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44377 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44336 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44334 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts: avoid outputting empty lines in gen-dependencies.shJo-Philipp Wich2015-01-291-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44208 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44206 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44188 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44088 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: revert r44076John Crispin2015-01-221-18/+7
| | | | | | | | the patch causes issues when installing feeds Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44078 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44076 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/config: sync with linux upstreamFelix Fietkau2015-01-0824-239/+627
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43873 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/config: fix segfault introduced in r43652Felix Fietkau2014-12-132-0/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43695 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts/config: remove debug statementJo-Philipp Wich2014-12-121-1/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43655 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43654 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43652 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43596 3c298f89-4303-0410-b956-a3cf2f4a3e73
* packages: fix typo in OpenWrt nameJohn Crispin2014-12-071-2/+2
| | | | | | Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43542 3c298f89-4303-0410-b956-a3cf2f4a3e73