]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: rebuild initramfs if content of initramfs changes
authorSam Ravnborg <sam@mars.ravnborg.org>
Tue, 11 Apr 2006 11:24:32 +0000 (13:24 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Tue, 11 Apr 2006 11:24:32 +0000 (13:24 +0200)
commitd83b9cdc05dccc705ed69b7fce8bce49d2fbb4d4
treec11cac2d3051264accc36dee7ef9a735f4420659
parent644361c3d8c705b1a07310c001301517f11b1ced
kbuild: rebuild initramfs if content of initramfs changes

initramfs.cpio.gz being build in usr/ and included in the
kernel was not rebuild when the included files changed.

To fix this the following was done:
- let gen_initramfs.sh generate a list of files and directories included
  in the initramfs
- gen_initramfs generate the gzipped cpio archive so we could simplify
  the kbuild file (Makefile)
- utilising the kbuild infrastructure so when uid/gid root mapping changes
  the initramfs will be rebuild

With this change we have a much more robust initramfs generation.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/gen_initramfs_list.sh
usr/Makefile