mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2024-12-26 21:58:20 +01:00
overridable configuration variable & change name and versionning
This commit is contained in:
parent
a356d11ec5
commit
f77e44c20e
1 changed files with 16 additions and 13 deletions
29
build.sh
29
build.sh
|
@ -18,18 +18,19 @@ fi
|
||||||
|
|
||||||
# --- Configuration -------------------------------------------------------------
|
# --- Configuration -------------------------------------------------------------
|
||||||
#change to your needs
|
#change to your needs
|
||||||
VERSION="SlackwareARM_0.1"
|
IMG_NAME=${IMG_NAME:-"SlackwareARM_cubitruck"}
|
||||||
DEST_LANG="en_US"
|
VERSION=${VERSION:-0.2}
|
||||||
DEST_LANGUAGE="us"
|
DEST_LANG=${DEST_LANG:-"en_US"}
|
||||||
COMPILE="true"
|
DEST_LANGUAGE=${DEST_LANGUAGE:-"us"}
|
||||||
DEST=/home/cycojesus/cubieslack
|
COMPILE=${COMPILE:-"true"}
|
||||||
DISPLAY=3 # "3:hdmi; 4:vga"
|
DEST=${DEST:-~/cubieslack}
|
||||||
IMAGE_SIZE_MB=2000
|
DISPLAY=${DISPLAY:-3} # "3:hdmi; 4:vga"
|
||||||
SLACKWARE_VERSION=14.1
|
IMAGE_SIZE_MB=${IMAGE_SIZE_MB:-2000}
|
||||||
ROOTFS_VERSION=04Nov13
|
SLACKWARE_VERSION=${SLACKWARE_VERSION:-14.1}
|
||||||
CONFIG_HZ=300HZ # 250HZ, 300HZ or 1000HZ
|
ROOTFS_VERSION=${ROOTFS_VERSION:-04Nov13}
|
||||||
# --- End -----------------------------------------------------------------------
|
CONFIG_HZ=${CONFIG_HZ:-300HZ} # 250HZ, 300HZ or 1000HZ
|
||||||
|
|
||||||
|
# --- Script --------------------------------------------------------------------
|
||||||
SRC=$(pwd)
|
SRC=$(pwd)
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
set -e
|
set -e
|
||||||
|
@ -197,8 +198,10 @@ fi
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
echo "------ Creating SD Images"
|
echo "------ Creating SD Images"
|
||||||
cd $DEST/output
|
cd $DEST/output
|
||||||
# create 2Gb image and mount image to next free loop device
|
|
||||||
dd if=/dev/zero of=slackware_rootfs.raw bs=1M count=$IMAGE_SIZE_MB
|
# create image and mount image to next free loop device
|
||||||
|
dd if=/dev/zero of=${IMG_NAME}-${VERSION}_rootfs_SD.raw bs=1M count=$IMAGE_SIZE_MB
|
||||||
|
|
||||||
LOOP0=$(losetup -f)
|
LOOP0=$(losetup -f)
|
||||||
losetup $LOOP0 slackware_rootfs.raw
|
losetup $LOOP0 slackware_rootfs.raw
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue