This commit is contained in:
Yejiang Luo 2021-06-01 15:30:20 +08:00
parent 05061483d8
commit ce143dd361
3 changed files with 40 additions and 1 deletions

View File

@ -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.

View File

@ -1 +0,0 @@
/home/glinet/work/glinet_package/

View File

@ -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")