linux-headers: prepare to support custom tarball/git
authorMark Corbin <mark.corbin@embecosm.com>
Sun, 23 Sep 2018 19:33:51 +0000 (21:33 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 23 Sep 2018 19:36:53 +0000 (21:36 +0200)
commit97ffbc9aeee076ef2975bb3271bc78369da858dd
treee7f41274b8ff9acabd70ee5e74499db01e6bd2e2
parentfec8e24fec59233ca0859905bf494e8788939c23
linux-headers: prepare to support custom tarball/git

This commit reworks how linux-headers.mk is written to prepare adding
support for custom tarball/git fetching for the Linux kernel headers.

Basically, the idea is to have a single condition at the beginning of
the file that defines a number of LINUX_HADERS_* variables depending
on whether "kernel headers same as kernel" is used or not, and then
use these variables in the rest of the .mk file.

Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
[Thomas: split from the original patch "package/linux-headers: add
support for custom headers" from Mark. The commit log is entirely
mine.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/linux-headers/linux-headers.mk