diff options
author | Maxime Bizon <mbizon@freebox.fr> | 2009-02-09 18:49:52 +0100 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-04-11 08:18:12 +0200 |
commit | 9e5ec8615209f6a5bf2a612120d972b6021790da (patch) | |
tree | 16ce12d419bdb531f59cfb2e8049f3c195b404f5 /scripts/gen_initramfs_list.sh | |
parent | 20375bf82567b5fecd331048c6cc1fc292b67710 (diff) | |
download | op-kernel-dev-9e5ec8615209f6a5bf2a612120d972b6021790da.zip op-kernel-dev-9e5ec8615209f6a5bf2a612120d972b6021790da.tar.gz |
kbuild: fix spurious initramfs rebuild
When gen_initramfs_list is used to generate make dependencies, it
includes symbolic links, for which make tracks the link target. Any
change to that target will cause an initramfs rebuild, even if the
symlink points to something outside of the initramfs directory.
If the target happens to be /tmp, the rebuild occurs for each kernel
build, since gen_initramfs_list uses mktemp...
Proposed way to fix it is to omit symbolic links from generated
dependencies, but this has a small drawback: changing perm/owner on a
symlink will go unnoticed.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/gen_initramfs_list.sh')
-rw-r--r-- | scripts/gen_initramfs_list.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh index 3eea8f1..76af5f9 100644 --- a/scripts/gen_initramfs_list.sh +++ b/scripts/gen_initramfs_list.sh @@ -97,7 +97,7 @@ print_mtime() { } list_parse() { - echo "$1 \\" + [ ! -L "$1" ] && echo "$1 \\" || : } # for each file print a line in following format |