mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
|
From 435466179fff3dbd792456a7ab5aea2e36ac408f Mon Sep 17 00:00:00 2001
|
||
|
From: Alexander Holler <holler@ahsoftware.de>
|
||
|
Date: Wed, 17 Feb 2010 00:10:09 +0100
|
||
|
Subject: [PATCH 09/14] DockStar: Small build-script.
|
||
|
|
||
|
---
|
||
|
mkDockStar.sh | 19 +++++++++++++++++++
|
||
|
1 files changed, 19 insertions(+), 0 deletions(-)
|
||
|
create mode 100755 mkDockStar.sh
|
||
|
|
||
|
diff --git a/mkDockStar.sh b/mkDockStar.sh
|
||
|
new file mode 100755
|
||
|
index 0000000..a28b95c
|
||
|
--- /dev/null
|
||
|
+++ b/mkDockStar.sh
|
||
|
@@ -0,0 +1,19 @@
|
||
|
+#!/bin/sh
|
||
|
+die() {
|
||
|
+ echo "$1"
|
||
|
+ exit 1
|
||
|
+}
|
||
|
+grep 00:10:75:12:34:56 include/configs/sheevaplug.h && die "Please change the MAC in include/configs/sheevaplug.h"
|
||
|
+grep \\.ip\\. include/configs/sheevaplug.h && die "Please change the IPs in include/configs/sheevaplug.h"
|
||
|
+make mrproper
|
||
|
+make sheevaplug_config
|
||
|
+make u-boot.kwb
|
||
|
+echo "Building u-boot.bin.pagesize"
|
||
|
+# Slow but does the trick
|
||
|
+bytes=$(stat --format='%s' u-boot.bin)
|
||
|
+fillbytes=$[262144-$bytes]
|
||
|
+cp u-boot.bin u-boot.bin.pagesize
|
||
|
+while [ $fillbytes -ne 0 ]; do
|
||
|
+ printf "\xff" >>u-boot.bin.pagesize
|
||
|
+ fillbytes=$[$fillbytes-1]
|
||
|
+done
|
||
|
--
|
||
|
1.6.4.4
|
||
|
|