blob: abba30971191bd900808b2e47bd356b6cbac713e [file] [log] [blame]
David Howellsb920de12008-02-08 04:19:31 -08001#!/bin/sh
2#
3# arch/mn10300/boot/install -c.sh
4#
5# This file is subject to the terms and conditions of the GNU General Public
6# Licence. See the file "COPYING" in the main directory of this archive
7# for more details.
8#
9# Copyright (C) 1995 by Linus Torvalds
10#
11# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
12#
13# "make install -c" script for i386 architecture
14#
15# Arguments:
16# $1 - kernel version
17# $2 - kernel image file
18# $3 - kernel map file
19# $4 - default install -c path (blank if root directory)
20# $5 - boot rom file
21#
22
23# User may have a custom install -c script
24
25rm -fr $4/../usr/include/linux $4/../usr/include/asm
26install -c -m 0755 $2 $4/vmlinuz
27install -c -m 0755 $5 $4/boot.rom
28install -c -m 0755 -d $4/../usr/include/linux
Robert P. J. Day460817b2008-05-12 14:02:17 -070029cd ${srctree}/include/linux
David Howellsb920de12008-02-08 04:19:31 -080030for i in `find . -maxdepth 1 -name '*.h' -print`; do
31 install -c -m 0644 $i $4/../usr/include/linux
32done
33install -c -m 0755 -d $4/../usr/include/linux/byteorder
Robert P. J. Day460817b2008-05-12 14:02:17 -070034cd ${srctree}/include/linux/byteorder
David Howellsb920de12008-02-08 04:19:31 -080035for i in `find . -name '*.h' -print`; do
36 install -c -m 0644 $i $4/../usr/include/linux/byteorder
37done
38install -c -m 0755 -d $4/../usr/include/linux/lockd
Robert P. J. Day460817b2008-05-12 14:02:17 -070039cd ${srctree}/include/linux/lockd
David Howellsb920de12008-02-08 04:19:31 -080040for i in `find . -name '*.h' -print`; do
41 install -c -m 0644 $i $4/../usr/include/linux/lockd
42done
43install -c -m 0755 -d $4/../usr/include/linux/netfilter_ipv4
Robert P. J. Day460817b2008-05-12 14:02:17 -070044cd ${srctree}/include/linux/netfilter_ipv4
David Howellsb920de12008-02-08 04:19:31 -080045for i in `find . -name '*.h' -print`; do
46 install -c -m 0644 $i $4/../usr/include/linux/netfilter_ipv4
47done
48install -c -m 0755 -d $4/../usr/include/linux/nfsd
Robert P. J. Day460817b2008-05-12 14:02:17 -070049cd ${srctree}/include/linux/nfsd
David Howellsb920de12008-02-08 04:19:31 -080050for i in `find . -name '*.h' -print`; do
51 install -c -m 0644 $i $4/../usr/include/linux/nfsd/$i
52done
53install -c -m 0755 -d $4/../usr/include/linux/raid
Robert P. J. Day460817b2008-05-12 14:02:17 -070054cd ${srctree}/include/linux/raid
David Howellsb920de12008-02-08 04:19:31 -080055for i in `find . -name '*.h' -print`; do
56 install -c -m 0644 $i $4/../usr/include/linux/raid
57done
58install -c -m 0755 -d $4/../usr/include/linux/sunrpc
Robert P. J. Day460817b2008-05-12 14:02:17 -070059cd ${srctree}/include/linux/sunrpc
David Howellsb920de12008-02-08 04:19:31 -080060for i in `find . -name '*.h' -print`; do
61 install -c -m 0644 $i $4/../usr/include/linux/sunrpc
62done
63install -c -m 0755 -d $4/../usr/include/asm
Robert P. J. Day460817b2008-05-12 14:02:17 -070064cd ${srctree}/include/asm
David Howellsb920de12008-02-08 04:19:31 -080065for i in `find . -name '*.h' -print`; do
66 install -c -m 0644 $i $4/../usr/include/asm
67done