2008-02-08 19:19:31 +07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# arch/mn10300/boot/install -c.sh
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
# Licence. See the file "COPYING" in the main directory of this archive
|
|
|
|
# for more details.
|
|
|
|
#
|
|
|
|
# Copyright (C) 1995 by Linus Torvalds
|
|
|
|
#
|
|
|
|
# Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin
|
|
|
|
#
|
|
|
|
# "make install -c" script for i386 architecture
|
|
|
|
#
|
|
|
|
# Arguments:
|
|
|
|
# $1 - kernel version
|
|
|
|
# $2 - kernel image file
|
|
|
|
# $3 - kernel map file
|
|
|
|
# $4 - default install -c path (blank if root directory)
|
|
|
|
# $5 - boot rom file
|
|
|
|
#
|
|
|
|
|
|
|
|
# User may have a custom install -c script
|
|
|
|
|
|
|
|
rm -fr $4/../usr/include/linux $4/../usr/include/asm
|
|
|
|
install -c -m 0755 $2 $4/vmlinuz
|
|
|
|
install -c -m 0755 $5 $4/boot.rom
|
|
|
|
install -c -m 0755 -d $4/../usr/include/linux
|
2008-05-13 04:02:17 +07:00
|
|
|
cd ${srctree}/include/linux
|
2008-02-08 19:19:31 +07:00
|
|
|
for i in `find . -maxdepth 1 -name '*.h' -print`; do
|
|
|
|
install -c -m 0644 $i $4/../usr/include/linux
|
|
|
|
done
|
|
|
|
install -c -m 0755 -d $4/../usr/include/linux/byteorder
|
2008-05-13 04:02:17 +07:00
|
|
|
cd ${srctree}/include/linux/byteorder
|
2008-02-08 19:19:31 +07:00
|
|
|
for i in `find . -name '*.h' -print`; do
|
|
|
|
install -c -m 0644 $i $4/../usr/include/linux/byteorder
|
|
|
|
done
|
|
|
|
install -c -m 0755 -d $4/../usr/include/linux/lockd
|
2008-05-13 04:02:17 +07:00
|
|
|
cd ${srctree}/include/linux/lockd
|
2008-02-08 19:19:31 +07:00
|
|
|
for i in `find . -name '*.h' -print`; do
|
|
|
|
install -c -m 0644 $i $4/../usr/include/linux/lockd
|
|
|
|
done
|
|
|
|
install -c -m 0755 -d $4/../usr/include/linux/netfilter_ipv4
|
2008-05-13 04:02:17 +07:00
|
|
|
cd ${srctree}/include/linux/netfilter_ipv4
|
2008-02-08 19:19:31 +07:00
|
|
|
for i in `find . -name '*.h' -print`; do
|
|
|
|
install -c -m 0644 $i $4/../usr/include/linux/netfilter_ipv4
|
|
|
|
done
|
|
|
|
install -c -m 0755 -d $4/../usr/include/linux/nfsd
|
2008-05-13 04:02:17 +07:00
|
|
|
cd ${srctree}/include/linux/nfsd
|
2008-02-08 19:19:31 +07:00
|
|
|
for i in `find . -name '*.h' -print`; do
|
|
|
|
install -c -m 0644 $i $4/../usr/include/linux/nfsd/$i
|
|
|
|
done
|
|
|
|
install -c -m 0755 -d $4/../usr/include/linux/raid
|
2008-05-13 04:02:17 +07:00
|
|
|
cd ${srctree}/include/linux/raid
|
2008-02-08 19:19:31 +07:00
|
|
|
for i in `find . -name '*.h' -print`; do
|
|
|
|
install -c -m 0644 $i $4/../usr/include/linux/raid
|
|
|
|
done
|
|
|
|
install -c -m 0755 -d $4/../usr/include/linux/sunrpc
|
2008-05-13 04:02:17 +07:00
|
|
|
cd ${srctree}/include/linux/sunrpc
|
2008-02-08 19:19:31 +07:00
|
|
|
for i in `find . -name '*.h' -print`; do
|
|
|
|
install -c -m 0644 $i $4/../usr/include/linux/sunrpc
|
|
|
|
done
|
|
|
|
install -c -m 0755 -d $4/../usr/include/asm
|
2008-05-13 04:02:17 +07:00
|
|
|
cd ${srctree}/include/asm
|
2008-02-08 19:19:31 +07:00
|
|
|
for i in `find . -name '*.h' -print`; do
|
|
|
|
install -c -m 0644 $i $4/../usr/include/asm
|
|
|
|
done
|