Build u-boot
This commit is contained in:
parent
2db4817be8
commit
6e360802bd
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -4,3 +4,6 @@
|
|||||||
[submodule "src/koreader"]
|
[submodule "src/koreader"]
|
||||||
path = src/koreader
|
path = src/koreader
|
||||||
url = git@github.com:lgeek/koreader.git
|
url = git@github.com:lgeek/koreader.git
|
||||||
|
[submodule "src/u-boot"]
|
||||||
|
path = src/u-boot
|
||||||
|
url = git@github.com:lgeek/u-boot-okreader.git
|
||||||
|
12
build.sh
12
build.sh
@ -23,7 +23,7 @@
|
|||||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
available_targets=("linux-image" "linux-modules" "firmware-okreader" "koreader")
|
available_targets=("u-boot" "linux-image" "linux-modules" "firmware-okreader" "koreader")
|
||||||
|
|
||||||
print_usage() {
|
print_usage() {
|
||||||
echo "Usage: build.sh [TARGET]"
|
echo "Usage: build.sh [TARGET]"
|
||||||
@ -67,6 +67,13 @@ parse_args() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compile_uboot() {
|
||||||
|
cd src/u-boot
|
||||||
|
make mx50_rdp_config
|
||||||
|
make -j$(($(nproc)+1))
|
||||||
|
cd ../../
|
||||||
|
}
|
||||||
|
|
||||||
compile_linux_image() {
|
compile_linux_image() {
|
||||||
cd src/linux
|
cd src/linux
|
||||||
make mx50_kobo_defconfig
|
make mx50_kobo_defconfig
|
||||||
@ -142,6 +149,9 @@ parse_args $@
|
|||||||
|
|
||||||
for target in ${targets[*]}; do
|
for target in ${targets[*]}; do
|
||||||
case $target in
|
case $target in
|
||||||
|
u-boot)
|
||||||
|
compile_uboot
|
||||||
|
;;
|
||||||
linux-image)
|
linux-image)
|
||||||
compile_linux_image
|
compile_linux_image
|
||||||
;;
|
;;
|
||||||
|
1
src/u-boot
Submodule
1
src/u-boot
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 8892136c43903b00ec9f77a599db139254cd1f51
|
Loading…
Reference in New Issue
Block a user