about summary refs log tree commit diff
path: root/mkimage.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-01-19 15:49:59 +0100
committerJuan RP <xtraeme@gmail.com>2015-01-19 15:49:59 +0100
commit7dff7059c0ac2c6e303bbe3425c046f885ebb8ba (patch)
tree65dc3353b741883a79f5f5bd84885cb5f65d8089 /mkimage.sh.in
parentc2a95e625f03a1498630807f832f89dd7f1412e1 (diff)
downloadhrmpf-7dff7059c0ac2c6e303bbe3425c046f885ebb8ba.tar.gz
hrmpf-7dff7059c0ac2c6e303bbe3425c046f885ebb8ba.tar.xz
hrmpf-7dff7059c0ac2c6e303bbe3425c046f885ebb8ba.zip
mkimage: added bananapi platform.
Diffstat (limited to 'mkimage.sh.in')
-rw-r--r--mkimage.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in
index cc0c57a..6e39a10 100644
--- a/mkimage.sh.in
+++ b/mkimage.sh.in
@@ -1,6 +1,6 @@
 #!/bin/sh
 #-
-# Copyright (c) 2013 Juan Romero Pardines.
+# Copyright (c) 2013-2015 Juan Romero Pardines.
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -113,7 +113,7 @@ fi
 
 # double check PLATFORM is supported...
 case "$PLATFORM" in
-    beaglebone|cubieboard2|odroid-u2|rpi);;
+    bananapi|beaglebone|cubieboard2|odroid-u2|rpi);;
     *) die "The $PLATFORM is not supported, exiting..."
 esac
 
@@ -179,7 +179,7 @@ if [ -s ${ROOTFSDIR}/boot/cmdline.txt ]; then
    sed -e "s,rootfstype=ext4,rootfstype=${ROOT_FSTYPE}," -i ${ROOTFSDIR}/boot/cmdline.txt
 fi
 
-if [ "$PLATFORM" = "cubieboard2" ]; then
+if [ "$PLATFORM" = "cubieboard2" -o "$PLATFORM" = "bananapi" ]; then
     dd if=${ROOTFSDIR}/boot/u-boot-sunxi-with-spl.bin of=${LOOPDEV} bs=1024 seek=8 >/dev/null 2>&1
 elif [ "$PLATFORM" = "odroid-u2" ]; then
     dd if=${ROOTFSDIR}/boot/E4412_S.bl1.HardKernel.bin of=${LOOPDEV} seek=1 >/dev/null 2>&1