mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-16 17:15:08 +00:00
|
|
||
|---|---|---|
| .github/workflows | ||
| feeds | ||
| patches-18.x | ||
| patches-19.x | ||
| patches-21.x | ||
| patches-qsdk11 | ||
| patches-qsdk53 | ||
| patches-siflower-18.x | ||
| patches-trunk | ||
| profiles | ||
| .gitignore | ||
| config-18.x.yml | ||
| config-19.x.yml | ||
| config-21.x.yml | ||
| config-qsdk11.yml | ||
| config-qsdk53.yml | ||
| config-siflower-18.x.yml | ||
| config-trunk.yml | ||
| config.yml | ||
| README.md | ||
| requirements.txt | ||
| setup.py | ||
Under development, please do not use
Development
Requirements
You need the following tools to compile OpenWrt, the package names vary between distributions. A complete list with distribution specific packages is found in the Build System Setup documentation.
$ sudo apt install binutils bzip2 diff find flex gawk gcc-6+ getopt grep install libc-dev libz-dev make4.1+ perl python3.6+ rsync subversion unzip which libncurses5-dev zlib1g-dev gawk gcc-multilib g++-multilib flex git-core gettext libssl-dev ocaml sharutils re2c -y
And This development tools requires Python 3.6 or higher! Please use the following command to check,
$ python3 --version
Python 3.6.13
$ ls -l /usr/bin/python3*
/usr/bin/python3 -> python3.6
/usr/bin/python3.5
/usr/bin/python3.5-config -> x86_64-linux-gnu-python3.5-config
/usr/bin/python3.5m
/usr/bin/python3.5m-config -> x86_64-linux-gnu-python3.5m-config
/usr/bin/python3.6
/usr/bin/python3.6-config -> x86_64-linux-gnu-python3.6-config
/usr/bin/python3.6m
/usr/bin/python3.6m-config -> x86_64-linux-gnu-python3.6m-config
/usr/bin/python3.9
/usr/bin/python3.9-config -> x86_64-linux-gnu-python3.9-config
/usr/bin/python3-config -> python3.5-config
/usr/bin/python3m -> python3.5m
/usr/bin/python3m-config -> python3.5m-config
Quickstart
- Clone repository,
$ git clone https://github.com/gl-inet/gl-infra-builder.git
- If you have a offline dl folder, you can make a symlink to feeds/dl, it will make compilation easier,
$ cd gl-infra-builder
$ ln -sf /data/dl feeds/
- Setup, auto download openwrt-19.07.7 by default and auto config,
$ python3 setup.py
- Generate your target configuration,
$ ./scripts/gen_config.py list # show available profile
$ ./scripts/gen_config.py <target_profile> <function_profile>
- Run
maketo build your firmware.