linux-headers: rework hash exclusion
authorArnout Vandecappelle <arnout@mind.be>
Tue, 21 Mar 2017 00:07:06 +0000 (01:07 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 11 Jun 2017 12:14:58 +0000 (14:14 +0200)
commit24f650aed2d9d92d8cabf0cb160fcf7964f9811e
treea4a55fe69b143beb466a9ebcfb779e71e510fc25
parentba0a5b11d9c9f3b4ed579e34327928dbdb0bcaa1
linux-headers: rework hash exclusion

Although we currently don't have a .hash file for linux-headers, there
already are exclusions for the BR2_KERNEL_HEADERS_AS_KERNEL case (copied
from linux.mk).  However, there is no exclusion for the
BR2_KERNEL_HEADERS_VERSION case.

For the BR2_KERNEL_HEADERS_AS_KERNEL case, the exclusion is actually
not needed. Indeed, KERNEL_HEADERS_SOURCE is computed to be the same
value as LINUX_SOURCE, and linux.mk already adds LINUX_SOURCE to
BR_NO_CHECK_HASH_FOR.

For the other cases, we should exclude the BR2_KERNEL_HEADERS_VERSION
case because there the user supplies the version so it can't be
included in the .hash file.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/linux-headers/linux-headers.mk