kernel-version.mk~ 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Use the default kernel version if the Makefile doesn't override it
  2. LINUX_RELEASE?=1
  3. ifeq ($(LINUX_VERSION),3.3.8)
  4. LINUX_KERNEL_MD5SUM:=f1058f64eed085deb44f10cee8541d50
  5. endif
  6. ifeq ($(LINUX_VERSION),3.6.11)
  7. LINUX_KERNEL_MD5SUM:=3d602ad7f7984509c3e923a5ae90bc54
  8. endif
  9. ifeq ($(LINUX_VERSION),3.7.10)
  10. LINUX_KERNEL_MD5SUM:=09624c3702107076efcac5e1cd8a18ec
  11. endif
  12. ifeq ($(LINUX_VERSION),3.8.13)
  13. LINUX_KERNEL_MD5SUM:=2af19d06cd47ec459519159cdd10542d
  14. endif
  15. ifeq ($(LINUX_VERSION),3.9.11)
  16. LINUX_KERNEL_MD5SUM:=edbf88eb7f7d34dbd5d3887726790755
  17. endif
  18. ifeq ($(LINUX_VERSION),3.10.32)
  19. LINUX_KERNEL_MD5SUM:=58bfaf95f4e23be2d658dab0a7fb9615
  20. endif
  21. ifeq ($(LINUX_VERSION),3.12.10)
  22. LINUX_KERNEL_MD5SUM:=93325074b7b1d7bb76fb7d4348f0aa7a
  23. endif
  24. ifeq ($(LINUX_VERSION),3.13.2)
  25. LINUX_KERNEL_MD5SUM:=664821d4e47361439e2329c67ee1876d
  26. endif
  27. # disable the md5sum check for unknown kernel versions
  28. LINUX_KERNEL_MD5SUM?=x
  29. split_version=$(subst ., ,$(1))
  30. merge_version=$(subst $(space),.,$(1))
  31. KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
  32. KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE))))
  33. ifeq ($(firstword $(call split_version,$(KERNEL_BASE))),2)
  34. KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE))))
  35. else
  36. KERNEL_PATCHVER=$(KERNEL)
  37. endif