summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-07-25 22:16:37 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-07-25 22:16:37 +0200
commit82bab389a4f5e871dae68ff376fb74537b1e75b6 (patch)
tree00bb643162853e282e04eeae6c1f06e232216027 /scripts
parentf94dbc199e0abcdd3b8cc9d9d7226d8a1a6b47e1 (diff)
parentdba433e831fb3fe7ea5e6ced99c92643b8e7f9e8 (diff)
Merge branch 'master' of gogs.waldemar-brodkorb.de:linux/openadk
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh15
-rwxr-xr-xscripts/prereq.sh6
2 files changed, 15 insertions, 6 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index a1a4cf96c..09baffcdc 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -144,7 +144,7 @@ tgt=$2
src=$3
case $target {
-(banana-pro|pcengines-apu|raspberry-pi|raspberry-pi0|raspberry-pi2|raspberry-pi3|raspberry-pi3-64|solidrun-imx6|solidrun-clearfog|default) ;;
+(banana-pro|orange-pi0|pcengines-apu|raspberry-pi|raspberry-pi0|raspberry-pi2|raspberry-pi3|raspberry-pi3-64|solidrun-imx6|solidrun-clearfog|default) ;;
(*)
print -u2 "Unknown target '$target', exiting"
exit 1 ;;
@@ -511,7 +511,7 @@ fi
fwdir=$(dirname "$src")
case $target {
-(banana-pro)
+(banana-pro|orange-pi0)
dd if="$fwdir/u-boot-sunxi-with-spl.bin" of="$tgt" bs=1024 seek=8 > /dev/null 2>&1
;;
(solidrun-clearfog)
@@ -541,7 +541,7 @@ if (( datafssz )); then
(raspberry-pi|raspberry-pi0|raspberry-pi2|raspberry-pi3|raspberry-pi3-64)
echo "/dev/mmcblk0p3 /data ext4 rw 0 0" >> "$R"/etc/fstab
;;
- (banana-pro|solidrun-imx6|solidrun-clearfog)
+ (banana-pro|orange-pi0|solidrun-imx6|solidrun-clearfog)
echo "/dev/mmcblk0p2 /data ext4 rw 0 0" >> "$R"/etc/fstab
;;
}
@@ -584,6 +584,15 @@ case $target {
-n "SolidrunImx6" \
-d $fwdir/boot.script.imx6 $R/boot/boot.scr.uimg
;;
+(orange-pi0)
+ for x in "$fwdir"/*.dtb; do
+ [[ -e "$x" ]] && cp "$fwdir"/*.dtb "$R/boot/"
+ break
+ done
+ mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
+ -n "OrangePI Zero" \
+ -d $fwdir/boot.script.opi $R/boot/boot.scr.uimg
+ ;;
(banana-pro)
for x in "$fwdir"/*.dtb; do
[[ -e "$x" ]] && cp "$fwdir"/*.dtb "$R/boot/"
diff --git a/scripts/prereq.sh b/scripts/prereq.sh
index e0d2aa002..0222172b9 100755
--- a/scripts/prereq.sh
+++ b/scripts/prereq.sh
@@ -688,6 +688,9 @@ fi
if [ $host_build_tar -eq 1 ]; then
printf "\t%s\n" "select ADK_HOST_BUILD_TAR" >> $topdir/target/config/Config.in.prereq
fi
+if [ $host_build_coreutils -eq 1 ]; then
+ printf "\t%s\n" "select ADK_HOST_BUILD_COREUTILS" >> $topdir/target/config/Config.in.prereq
+fi
if [ $host_build_cpio -eq 1 ]; then
printf "\t%s\n" "select ADK_HOST_BUILD_CPIO" >> $topdir/target/config/Config.in.prereq
fi
@@ -713,9 +716,6 @@ fi
if [ $host_build_qemu -eq 1 ]; then
printf "\t%s\n" "select ADK_HOST_BUILD_QEMU if ADK_HOST_NEED_QEMU" >> $topdir/target/config/Config.in.prereq
fi
-if [ $host_build_coreutils -eq 1 ]; then
- printf "\t%s\n" "select ADK_HOST_BUILD_COREUTILS if ADK_HOST_NEED_COREUTILS" >> $topdir/target/config/Config.in.prereq
-fi
# create Host OS symbols
case $os in