Build u-boot

This commit is contained in:
Cosmin Gorgovan 2016-01-04 02:13:58 +00:00
parent 2db4817be8
commit 6e360802bd
3 changed files with 15 additions and 1 deletions

3
.gitmodules vendored
View File

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

View File

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

@ -0,0 +1 @@
Subproject commit 8892136c43903b00ec9f77a599db139254cd1f51