mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-17 01:25:25 +00:00
improve
This commit is contained in:
parent
05061483d8
commit
ce143dd361
29
README.md
29
README.md
@ -36,3 +36,32 @@ $ ls -l /usr/bin/python3*
|
||||
|
||||
### Quickstart
|
||||
|
||||
1. Clone repository,
|
||||
|
||||
```
|
||||
$ git clone https://github.com/gl-inet/gl-infra-builder.git
|
||||
```
|
||||
|
||||
2. If you have a [offline dl folder](https://sources.openwrt.org/), you can make a symlink to feeds/dl, it will make compilation easier,
|
||||
|
||||
```
|
||||
$ cd gl-infra-builder
|
||||
$ cd feeds/
|
||||
$ ln -sf /data/dl .
|
||||
```
|
||||
|
||||
3. Setup, auto download openwrt-19.07.7 by default and auto config,
|
||||
|
||||
```
|
||||
$ python3 setup.py
|
||||
```
|
||||
|
||||
4. Generate your target configuration,
|
||||
|
||||
```
|
||||
$ ./scripts/gen_config.py list # show available profile
|
||||
$ ./scripts/gen_config.py <target_profile> <function_profile>
|
||||
```
|
||||
|
||||
5. Run `make` to build your firmware.
|
||||
|
||||
|
||||
@ -1 +0,0 @@
|
||||
/home/glinet/work/glinet_package/
|
||||
11
setup.py
11
setup.py
@ -94,11 +94,22 @@ def setup_tree():
|
||||
)
|
||||
|
||||
feeds_dir = str(base_dir) + "/feeds"
|
||||
|
||||
if not Path("feeds_dir").exists():
|
||||
run(
|
||||
["ln", "-s", feeds_dir, "feeds_dir"],
|
||||
check=True,
|
||||
)
|
||||
|
||||
offline_dl_dir = str(base_dir) + "/feeds/dl"
|
||||
|
||||
if os.path.exists(offline_dl_dir):
|
||||
if not Path("dl").exists():
|
||||
print(f"Install offline dl folder...")
|
||||
run(
|
||||
["ln", "-s", offline_dl_dir, "dl"],
|
||||
check=True,
|
||||
)
|
||||
print("### Patches done")
|
||||
except:
|
||||
print("### Setting up the tree failed")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user