package/linux-headers: fix support for -rc kernels
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Wed, 6 Mar 2019 21:28:14 +0000 (22:28 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 14 Mar 2019 21:11:15 +0000 (22:11 +0100)
commit1b94e8dcb368cd71d8002427bf4a150a2f082aa2
tree23f48e824d87050472bea23608bdab2101589c7d
parentfbe8d0b24a4f4023a09d90442eaa12ef85b49e64
package/linux-headers: fix support for -rc kernels

-rc kernels after v3.x are no longer available in the testing
subdirectory. Instead they should be fetched from cgit.

Commit ff4cccbdcf5417a5a8c251ff302791a306023cc1 did this for linux
itself, now we also do it for linux-headers.

When fetched from cgit, .tar.xz can't be used. Adding this to the
existing condition is not so simple, so refactor how _SOURCE is set:
simply set it explicitly in each branch of the condition. While more
verbose (it is repeated 4 times), it's easier to understand and to
maintain.

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