Commit Graph

51 Commits

Author SHA1 Message Date
Petr Štetiar
1dcedbaea4 scripts/env: fix remaining shellcheck warning
Fixes following shellcheck warning:

 In scripts/env line 25:
 	exit ${1:-1}
             ^-----^ SC2086: Double quote to prevent globbing and word splitting.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-07-12 12:16:41 +08:00
Rosen Penev
322d67e4b7 scripts/env: use read -r instead of read
read mangles backslashes.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-12 12:15:49 +08:00
Rosen Penev
ec7fae6712 scripts/env: exit in case of failure to cd
Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-12 12:15:28 +08:00
Rosen Penev
6ddfe9204a scripts/env: replace \! with !
The latter is more standard. The former throws an error under
shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-12 12:15:07 +08:00
Rosen Penev
8cacc08351 scripts/env: use command -v instead of which
Simpler and built in to the shell.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-12 12:14:39 +08:00
Sergio E. Nemirowski
7a77108169 build: mconf readme update
This updates mconf.c readme message to maintain less changes with
upstream and consistency with nconf.c

Signed-off-by: Sergio E. Nemirowski <sergio@outerface.net>
2020-07-08 12:02:08 +08:00
Sergio E. Nemirowski
a10d39da7d build: add nconfig
Add support for make target nconfig (ncurses)

Reviewed-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Signed-off-by: Sergio E. Nemirowski <sergio@outerface.net>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-07-08 12:01:27 +08:00
AmadeusGhost
a273d13857 Merge Lean's source 2020-05-30 12:25:05 +08:00
Rosen Penev
dea6a0375c scripts/flashing/flash.sh: remove trailing whitespaces
Signed-off-by: Rosen Penev <rosenp@gmail.com>
[cut out of patch with different subject]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-05-24 22:45:18 +08:00
Rosen Penev
e25d9adf1b scripts/flashing/flash.sh: Add missing quotes
These are in if statements (where they should be), and echo output that is
not piped to anything. These should be safe.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-05-24 22:44:13 +08:00
Eneas U de Queiroz
29e88ef16d build: have config-clean deal with old temp files
This is a temporary commit to have 'make config-clean' remove
temporary files from the previous scripts/config version.

The .gitignore file is updated to deal with the old files as well.

Cc: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-05-23 20:21:04 +08:00
Eneas U de Queiroz
a3fbe34edb build: scripts/config - update to kconfig-v5.6
Major changes include:
 - Much more readable reverse dependencies separated in groups
 - Improved recursive dependency report
 - More readable .config files: add comments to signal end of menus
 - More warnings for incorrect Config.in entries, such as a 'choice'
   default not contained in the 'choice'
 - Hability to properly display pseudographics with non-latin locales
 - Recursive dependencies can optionally be treated as errors

Changes from failed dcf3e63a35 attempt:
 - Recursive dependencies are treated as warnings by default
 - The option to treat them as errors is implemented as a command-line
   flag to scripts/config/conf instead of a compile-time definition
 - fixed handling of select with umnet dependencies

Cc: Petr Štetiar <ynezz@true.cz>
Cc: Jo-Philip Wich <jow@mein.io>
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-05-23 20:20:04 +08:00
Eneas U de Queiroz
2e2b5959b6 build: simplify building *config targets
Instead of passing pkg-config location through a variable when building
qconf (make xconfig), prepend its parent directory to the PATH, as it is
being done for other conf targets.

Use a Makefile pattern rule to group all 'scripts/config/%onf'
(currently conf, mconf, qconf) targets in a single rule.  Add -O2 to
CFLAGS when building them as well.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-05-23 20:16:15 +08:00
CN_SZTL
d55af8f091 scripts/download.pl: fix typo 2020-04-25 08:16:20 +08:00
Paul Spooren
5e03475b9c
scripts/download: add sources CDN as first mirror
OpenWrt now has a CDN for sources at sources.cdn.openwrt.org which
mirrors sources.openwrt.org.

Downloading sources outside Europe or US (mainland) could
result in low throughput, extremely slowing down the first compilation of
the build system.

This patch adds sources.cdn.openwrt.org as the first mirror to offer
worldwide fast download speeds by default. If the CDN goes down for
whatever reason, the script jumps to the next available mirror and
downloads requested files as before (in regional varying speed).

Signed-off-by: Paul Spooren <mail@aparcar.org>
Acked-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2020-04-15 20:30:21 +08:00
CN_SZTL
e72a8f9b4d
scripts/download.pl: drop useless mirrors 2020-04-14 20:20:48 +08:00
CN_SZTL
17e25522c0
scripts/download.pl: add some mirror sites 2020-04-08 00:32:52 +08:00
CN_SZTL
02a5aa2c14
scripts/download: add tsinghua mirror 2020-04-06 01:35:03 +08:00
AmadeusGhost
e5f08410e0
adjust build script (#3235)
* download.pl: add jsDelivr mirror for GitHub and add utsc mirrors

* m520: fix 'hlos' not found

* dependence: add python3

* netfilter: Revert delete support for kernel 4.9

* scons: move to packages feed
2020-02-21 11:55:07 +08:00
coolsnowwolf
9f8000a6d6 sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
coolsnowwolf
5e65d8e2e1 build: add ABI_VERSION to binary package names 2020-02-19 18:56:44 +08:00
AmadeusGhost
6901278ef0
kernel: bump to 4.14.169, 4.19.101 (#2963)
* kernel: bump to 4.14.169, 4.19.101

* uboot: update to latest

* mediatek: bump to v4.19

* ath79: switch to wpad

* Revert 'grub2: update to latest'
2020-02-06 21:45:40 +08:00
coolsnowwolf
ecea39f109 Revert "files: sync from openwrt v19.07 (#2690)"
This reverts commit 2289184a62.
2020-02-03 12:33:25 +08:00
AmadeusGhost
2289184a62
files: sync from openwrt v19.07 (#2690) 2020-02-01 16:50:37 +08:00
LEAN-ESX
7ea08e97fe ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
LEAN-ESX
be770de958 download.pl: add jsDelivr mirror for GitHub 2019-11-11 19:58:10 -08:00
LEAN-ESX
6d0aa62fcc ipq40xx: add G-DOCK 2.0 (P&W R619AC) support 2019-10-22 23:14:35 -07:00
LEAN-ESX
39a642a130 build: create JSON files containing image info 2019-10-20 05:03:52 -07:00
LEAN-ESX
4e08c225ca build: allow overriding default selection state for devices 2019-10-19 11:35:16 -07:00
coolsnowwolf
ff0c6878d5 build: switch default target from ar71xx to x86 2019-04-21 01:24:29 +08:00
coolsnowwolf
d5107528bc kernel: bump to 4.9.166 and 4.14.109 2019-03-30 20:46:18 +08:00
coolsnowwolf
646f4ae77a build: add a script for generating Linksys EA6350v3 factory image 2019-03-07 19:45:12 +08:00
coolsnowwolf
f8a217901f add GNU kernel download mirror 2019-01-18 14:58:25 +08:00
coolsnowwolf
347daa04b2 Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
coolsnowwolf
f3eb9e531f revert:fix sqm error whenn intall feeds 2018-10-18 18:15:56 +08:00
coolsnowwolf
3f529cf848 Linux Kernel download from ustc first 2018-09-26 23:17:19 +08:00
coolsnowwolf
d94396a4ea fix sqm error whenn intall feeds 2018-09-26 22:16:37 +08:00
coolsnowwolf
806f5db174 sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
coolsnowwolf
2c600cad70 add GNU kernel download mirror 2018-08-23 22:42:54 +08:00
coolsnowwolf
9ba04fd0d7 sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
coolsnowwolf
a07625c4a2 add GNU mirror 2018-04-24 16:13:23 +08:00
coolsnowwolf
8fe0636b8a Merge branch 'master' of github.com:lede-project/source 2018-04-23 18:50:49 +08:00
coolsnowwolf
20f7e75789 update to R7.5.4 2018-01-15 18:26:41 +08:00
coolsnowwolf
229cde62a4 Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
coolsnowwolf
7185e1ceb2 merge: change branding for LEDE to OpenWrt 2017-12-12 16:57:14 +08:00
coolsnowwolf
bcf2e98c23 remove gnu ustc mirror 2017-09-21 01:17:45 +08:00
coolsnowwolf
7702989c52 update GNU china mirror 2017-09-12 22:34:24 +08:00
coolsnowwolf
03efb03919 Merge branch 'master' of https://github.com/lede-project/source 2017-09-12 01:07:20 +08:00
coolsnowwolf
5aab6e8e18 add GNU ustc.edu.cn mirror 2017-09-08 22:25:51 +08:00
coolsnowwolf
515be2cf67 fix git version head 2017-09-08 20:49:53 +08:00