install.sh 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #!/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. # User may have a custom install -c script
  23. rm -fr $4/../usr/include/linux $4/../usr/include/asm
  24. install -c -m 0755 $2 $4/vmlinuz
  25. install -c -m 0755 $5 $4/boot.rom
  26. install -c -m 0755 -d $4/../usr/include/linux
  27. cd ${srctree}/include/linux
  28. for i in `find . -maxdepth 1 -name '*.h' -print`; do
  29. install -c -m 0644 $i $4/../usr/include/linux
  30. done
  31. install -c -m 0755 -d $4/../usr/include/linux/byteorder
  32. cd ${srctree}/include/linux/byteorder
  33. for i in `find . -name '*.h' -print`; do
  34. install -c -m 0644 $i $4/../usr/include/linux/byteorder
  35. done
  36. install -c -m 0755 -d $4/../usr/include/linux/lockd
  37. cd ${srctree}/include/linux/lockd
  38. for i in `find . -name '*.h' -print`; do
  39. install -c -m 0644 $i $4/../usr/include/linux/lockd
  40. done
  41. install -c -m 0755 -d $4/../usr/include/linux/netfilter_ipv4
  42. cd ${srctree}/include/linux/netfilter_ipv4
  43. for i in `find . -name '*.h' -print`; do
  44. install -c -m 0644 $i $4/../usr/include/linux/netfilter_ipv4
  45. done
  46. install -c -m 0755 -d $4/../usr/include/linux/nfsd
  47. cd ${srctree}/include/linux/nfsd
  48. for i in `find . -name '*.h' -print`; do
  49. install -c -m 0644 $i $4/../usr/include/linux/nfsd/$i
  50. done
  51. install -c -m 0755 -d $4/../usr/include/linux/raid
  52. cd ${srctree}/include/linux/raid
  53. for i in `find . -name '*.h' -print`; do
  54. install -c -m 0644 $i $4/../usr/include/linux/raid
  55. done
  56. install -c -m 0755 -d $4/../usr/include/linux/sunrpc
  57. cd ${srctree}/include/linux/sunrpc
  58. for i in `find . -name '*.h' -print`; do
  59. install -c -m 0644 $i $4/../usr/include/linux/sunrpc
  60. done
  61. install -c -m 0755 -d $4/../usr/include/asm
  62. cd ${srctree}/include/asm
  63. for i in `find . -name '*.h' -print`; do
  64. install -c -m 0644 $i $4/../usr/include/asm
  65. done