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>

authored by Maxime Bizon and committed by Sam Ravnborg 9e5ec861 20375bf8

+1 -1
+1 -1
scripts/gen_initramfs_list.sh
··· 97 97 } 98 98 99 99 list_parse() { 100 - echo "$1 \\" 100 + [ ! -L "$1" ] && echo "$1 \\" || : 101 101 } 102 102 103 103 # for each file print a line in following format