CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
buildAllPackages.sh: Updates and fixes:
[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"
60d9f810
JB
11
12[ -d $DESTDIR ] && rm -r $DESTDIR
13mkdir -p $DESTDIR
14
15# bootloader files
16wget -c -O $DESTDIR/boot.scr http://crux-arm.nu/files/devices/$DEVICE/boot-ram.scr
17wget -c -O $DESTDIR/uImage http://crux-arm.nu/files/devices/$DEVICE/uImage-$KERNEL_VERSION_STRING
18wget -c -O $DESTDIR/uInitrd http://crux-arm.nu/files/devices/$DEVICE/uInitrd-$VERSION
19
20# kernel files
21mkdir -p $DESTDIR/crux/kernel
22wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/distfiles/$DEVICE/linux-$KERNEL_VERSION_STRING.tar.bz2
23wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/devices/$DEVICE/modules-$KERNEL_VERSION_STRING.tar.bz2
24wget -c -P $DESTDIR/crux/kernel http://crux-arm.nu/files/devices/$DEVICE/linux-$KERNEL_VERSION_STRING.config
25
26# download released packages
77cca443
JB
27mkdir -p $DESTDIR/crux/core
28PACKAGES="$(curl -s http://crux-arm.nu/pkg/${VERSION%%-*}/core/ | grep '.pkg.tar.' | cut -d'=' -f4 | cut -d'"' -f2)"
29for pkg in ${PACKAGES[@]}; do
30 wget -c -P $DESTDIR/crux/core "http://crux-arm.nu/pkg/${VERSION%%-*}/core/$pkg"
60d9f810
JB
31done
32
33# this stuff is important in order to get the setup working fine
34echo "$VERSION-$(date +'%Y%m%d')" > $DESTDIR/crux-media
35wget -O $DESTDIR/crux/setup.dependencies "http://crux.nu/gitweb/?p=system/iso.git;a=blob_plain;f=iso/setup.dependencies"
36
37# optional but is a nice to have per device and can differ between them (due to bootloader, configs, etc.)
38mkdir -p $DESTDIR/$DEVICE
39wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/securetty
40wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/inittab
41wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/10-imx.rules
42wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/xorg.conf
43wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/rc.modules
44wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/fstab-sda
45wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/fstab-mmcblk
46wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-ram.scr
47wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-ram.script
48wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-sda.scr
49wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-sda.script
50wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-mmcblk.scr
51wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/boot-mmcblk.script
52wget -c -P $DESTDIR/$DEVICE http://crux-arm.nu/files/devices/$DEVICE/prt-get.conf
53wget -O $DESTDIR/$DEVICE/$DEVICE.rsync "http://crux-arm.nu/portdb/?getup=$DEVICE&type=rsync"
54
55# End of file