OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [bld-bb.sh] - Blame information for rev 856

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 473 jeremybenn
#!/bin/bash
2
 
3
# Copyright (C) 2010 Embecosm Limited
4
 
5
# Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
6
 
7
# This file is a script to rebuild Linux/Busybox
8
 
9
# This program is free software; you can redistribute it and/or modify it
10
# under the terms of the GNU General Public License as published by the Free
11
# Software Foundation; either version 3 of the License, or (at your option)
12
# any later version.
13
 
14
# This program is distributed in the hope that it will be useful, but WITHOUT
15
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
17
# more details.
18
 
19
# You should have received a copy of the GNU General Public License along
20
# with this program.  If not, see <http://www.gnu.org/licenses/>.
21
 
22
bb_dir=busybox-1.17.3
23 548 jeremybenn
linux_dir=linux-2.6.39
24 473 jeremybenn
 
25
# Clean, build and install BusyBox
26
echo "bld-bb.sh: Rebuilding BusyBox"
27
cd ${bb_dir}
28
 
29
make clean
30
if [ $? != 0 ];
31
then
32
    echo "bld-bb.sh: BusyBox 'make clean' failed"
33
    exit 1
34
fi
35
 
36
make
37
if [ $? != 0 ];
38
then
39
    echo "bld-bb.sh: BusyBox 'make' failed"
40
    exit 1
41
fi
42
 
43
make install
44
if [ $? != 0 ];
45
then
46
    echo "bld-bb.sh: BusyBox 'make install' failed"
47
    exit 1
48
fi
49
 
50
cd -
51
 
52
# Configure, clean and rebuild Linux
53
echo "bld-bb.sh: Rebuilding Linux"
54
cd ${linux_dir}
55
 
56
make defconfig ARCH=openrisc CROSS_COMPILE=/opt/or32-new/bin/or32-elf-
57
if [ $? != 0 ];
58
then
59
    echo "bld-bb.sh: Linux 'make defconfig' failed"
60
    exit 1
61
fi
62
 
63
make clean ARCH=openrisc CROSS_COMPILE=/opt/or32-new/bin/or32-elf-
64
if [ $? != 0 ];
65
then
66
    echo "bld-bb.sh: Linux 'make clean' failed"
67
    exit 1
68
fi
69
 
70
make vmlinux ARCH=openrisc CROSS_COMPILE=/opt/or32-new/bin/or32-elf-
71
if [ $? != 0 ];
72
then
73
    echo "bld-bb.sh: Linux 'make vmlinux' failed"
74
    exit 1
75
fi
76
 
77
cd -

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.