CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Added initial version for the script that help us in release creation per device...
[devtools.git] / makeDeviceInstaller.sh
CommitLineData
60d9f810
JB
1#!/bin/bash
2
3# This script creates a directory containing all files required for a installation on a device
4# For now, is only for efikamx devices but easily could be adapted for other devices (and/or ABIs)
5# To do that, just change the variables you need and remove/add
6
7VERSION="2.7.1-rc1"
8DEVICE="efikamx"
9KERNEL_VERSION_STRING="2.6.31.14.27-efikamx_20111026"
10DESTDIR="crux-arm-$VERSION-$DEVICE"
11COLLECTIONS="core"
12
13[ -d $DESTDIR ] && rm -r $DESTDIR
14mkdir -p $DESTDIR
15
16# bootloader files
17wget -c -O $DESTDIR/boot.scr http://crux-arm.nu/files/devices/$DEVICE/boot-ram.scr
18wget -c -O $DESTDIR/uImage http://crux-arm.nu/files/devices/$DEVICE/uImage-$KERNEL_VERSION_STRING
19wget -c -O $DESTDIR/uInitrd http://crux-arm.nu/files/devices/$DEVICE/uInitrd-$VERSION
20
21# kernel files
22mkdir -p $DESTDIR/crux/kernel
23wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/distfiles/$DEVICE/linux-$KERNEL_VERSION_STRING.tar.bz2
24wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/devices/$DEVICE/modules-$KERNEL_VERSION_STRING.tar.bz2
25wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/devices/$DEVICE/linux-$KERNEL_VERSION_STRING.config
26
27# download released packages
28# TODO: use local packages
29for COL in ${COLLECTIONS[@]}; do
30 mkdir -p $DESTDIR/crux/$COL
31 scp crux-arm.nu:/home/crux-arm/public_html/pkg/${VERSION%%-*}/$COL/* $DESTDIR/crux/$COL
32done
33
34# this stuff is important in order to get the setup working fine
35echo "$VERSION-$(date +'%Y%m%d')" > $DESTDIR/crux-media
36wget -O $DESTDIR/crux/setup.dependencies "http://crux.nu/gitweb/?p=system/iso.git;a=blob_plain;f=iso/setup.dependencies"
37
38# optional but is a nice to have per device and can differ between them (due to bootloader, configs, etc.)
39mkdir -p $DESTDIR/$DEVICE
40wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/securetty
41wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/inittab
42wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/10-imx.rules
43wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/xorg.conf
44wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/rc.modules
45wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/fstab-sda
46wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/fstab-mmcblk
47wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-ram.scr
48wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-ram.script
49wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-sda.scr
50wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-sda.script
51wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-mmcblk.scr
52wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-mmcblk.script
53wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/prt-get.conf
54wget -O $DESTDIR/$DEVICE/$DEVICE.rsync "http://crux-arm.nu/portdb/?getup=$DEVICE&type=rsync"
55
56# End of file