Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:guide-developer:external_toolchain [2022/09/10 12:45] – [Step 1: Build Toolchain] ansuel | docs:guide-developer:external_toolchain [2022/09/10 12:53] (current) – [Step 2: Build Firmware] ansuel | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| ==== Step 2: Build Firmware ==== | ==== Step 2: Build Firmware ==== | ||
| - | We start at the same point as the toolchain. | + | - Checkout OpenWrt into directory **openwrt** |
| + | - Follow normal instruction for openwrt prereq | ||
| + | - Use the utility script to setup your buildroot < | ||
| + | | ||
| + | --toolchain TOOLCHAIN_FILE_LOCATION \ | ||
| + | --config TARGET_NAME | ||
| + | </ | ||
| + | - Use your buildroot like a normal one. Edit your config with '' | ||
| - | Apply these patches in the order listet here: | ||
| - | * 1. [[https:// | ||
| - | * 2. [[https:// | ||
| - | |||
| - | After this, copy the .config-file from the toolchain directory into this build directory and do a **make menuconfig**. | ||
| - | |||
| - | * [*] **Advanced configuration options (for developers)** | ||
| - | * [*] **Use external toolchain** | ||
| - | * Target name: arm-openwrt-linux-uclibcgnueabi (in my case, yours may vary) | ||
| - | * Toolchain prefix: arm-openwrt-linux-uclibcgnueabi- (mind the dash at the end) | ||
| - | * Toolchain root: / | ||
| - | |||
| - | Save and compile. For my case, the full toolchain build now needs about 1 1/2 hour and the normal firmware takes only 1 hour. | ||
| + | If you want to update a .config to use an external toolchain you can use the '' | ||
| + | < | ||
| + | | ||
| + | --toolchain TOOLCHAIN_FILE_LOCATION \ | ||
| + | --overwrite-config | ||
| + | --config TARGET_NAME (example ipq806x/ | ||
| + | </ | ||