powerpc: improve prom_init_check rule
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 12 Sep 2019 07:40:37 +0000 (16:40 +0900)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:04:41 +0000 (00:04 +1000)
commit1fdfa4c6af0cc1854b017f308af6bece94568bb6
tree9b384a6c64cd16b9f9db2acf495c25e88a5438eb
parentcaff52dc0b71538cff43c06ede3621fbbf359978
powerpc: improve prom_init_check rule

This slightly improves the prom_init_check rule.

[1] Avoid needless check

Currently, prom_init_check.sh is invoked every time you run 'make'
even if you have changed nothing in prom_init.c. With this commit,
the script is re-run only when prom_init.o is recompiled.

[2] Beautify the build log

Currently, the O= build shows the absolute path to the script:

  CALL    /abs/path/to/source/of/linux/arch/powerpc/kernel/prom_init_check.sh

With this commit, it is always a relative path to the timestamp file:

  PROMCHK arch/powerpc/kernel/prom_init_check

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190912074037.13813-1-yamada.masahiro@socionext.com
arch/powerpc/kernel/.gitignore
arch/powerpc/kernel/Makefile