We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

kernel-version.mk 697 Bytes
Newer Older
1 2 3 4
# Use the default kernel version if the Makefile doesn't override it

LINUX_RELEASE?=1

RISCi_ATOM's avatar
RISCi_ATOM committed
5
LINUX_VERSION-4.4 = .192
RISCi_ATOM's avatar
RISCi_ATOM committed
6

RISCi_ATOM's avatar
RISCi_ATOM committed
7
LINUX_KERNEL_HASH-4.4.192 = e6f50259a4dfdf19ac5b3ceaf00561cf8da2ea971dc57cdacbe056e06b062055
8 9 10 11 12 13 14 15 16 17 18 19

ifdef KERNEL_PATCHVER
  LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER)))
endif

split_version=$(subst ., ,$(1))
merge_version=$(subst $(space),.,$(1))
KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))))
KERNEL_PATCHVER ?= $(KERNEL)

# disable the md5sum check for unknown kernel versions
RISCi_ATOM's avatar
RISCi_ATOM committed
20 21
LINUX_KERNEL_HASH:=$(LINUX_KERNEL_HASH-$(strip $(LINUX_VERSION)))
LINUX_KERNEL_HASH?=x