Browse Source

Build u-boot

feature/booting-external-microsd
Cosmin Gorgovan 4 years ago
parent
commit
6e360802bd
3 changed files with 15 additions and 1 deletions
  1. +3
    -0
      .gitmodules
  2. +11
    -1
      build.sh
  3. +1
    -0
      src/u-boot

+ 3
- 0
.gitmodules View File

@@ -4,3 +4,6 @@
[submodule "src/koreader"]
path = src/koreader
url = git@github.com:lgeek/koreader.git
[submodule "src/u-boot"]
path = src/u-boot
url = git@github.com:lgeek/u-boot-okreader.git

+ 11
- 1
build.sh View File

@@ -23,7 +23,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# 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() {
echo "Usage: build.sh [TARGET]"
@@ -67,6 +67,13 @@ parse_args() {
done
}

compile_uboot() {
cd src/u-boot
make mx50_rdp_config
make -j$(($(nproc)+1))
cd ../../
}

compile_linux_image() {
cd src/linux
make mx50_kobo_defconfig
@@ -142,6 +149,9 @@ parse_args $@

for target in ${targets[*]}; do
case $target in
u-boot)
compile_uboot
;;
linux-image)
compile_linux_image
;;


+ 1
- 0
src/u-boot

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

Loading…
Cancel
Save