-
Notifications
You must be signed in to change notification settings - Fork 19
/
build_clean
executable file
·31 lines (23 loc) · 1.03 KB
/
build_clean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#
# Intended to build a clean image for rebuilding sudowrt firmware
# Prepares openwrt builder, builds sudowrt firmware, and then deletes the firmware binaries.
#
# If you only want to get *some* of the resources for building the firmware, use [build_pre]
# If you only want to build the firmware and not delete the binaries, use [build].
#
source build_lib
openwrt_clone_and_patch
validate_architecture $architecture
echo "Generating build configurations for [${architecture}]..."
openwrt_build_configure "${architecture}"
echo "Generating build configurations for [${architecture}] done."
echo "Preparing for build for [${architecture}]..."
openwrt_buildprep "${architecture}"
echo "Preparing for build for [${architecture}] done."
echo "Building firmware for [${architecture}]..."
openwrt_builder "${architecture}"
echo "Building firmware for [${architecture}] done."
echo "Removing images for [${architecture}], just leaving builder..."
remove_images "./bin/${architecture}"
echo "Removing images for [${architecture}] done."