Skip to content

Commit 4959e10

Browse files
rucodereriknordmark
authored andcommitted
Read kernel commit hashes from separate include file
This file is automatically generated by tools/update-kernel-commits.py Bootstrap update-kernel-commits.py with current kernel hashes from kernel-versions.mk Signed-off-by: Mikhail Malyshev <[email protected]>
1 parent c6766da commit 4959e10

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

kernel-commits.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
KERNEL_COMMIT_amd64_v5.10.186_generic = c23a03114a05
2+
KERNEL_COMMIT_amd64_v6.1.38_generic = 0c3194d84
3+
KERNEL_COMMIT_amd64_v6.1.38_rt = 585c1cf1e
4+
KERNEL_COMMIT_arm64_v5.10.104_nvidia = e6cd9a55f
5+
KERNEL_COMMIT_arm64_v5.10.186_generic = d728c693c149
6+
KERNEL_COMMIT_arm64_v6.1.38_generic = b18cb9e3e
7+
KERNEL_COMMIT_riscv64_v6.1.38_generic = 105a2b9bd8e7

kernel-version.mk

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ ifeq ($(ZARCH), amd64)
3333
# either generic or rt
3434
KERNEL_FLAVOR=$(PLATFORM)
3535
KERNEL_VERSION=v6.1.38
36-
KERNEL_COMMIT_generic=0c3194d84
37-
KERNEL_COMMIT_rt=585c1cf1e
3836
else ifeq ($(ZARCH), arm64)
3937
ifeq ($(PLATFORM), nvidia)
4038
KERNEL_FLAVOR=nvidia
@@ -43,25 +41,25 @@ else ifeq ($(ZARCH), arm64)
4341
KERNEL_FLAVOR=generic
4442
KERNEL_VERSION=v6.1.38
4543
endif
46-
KERNEL_COMMIT_generic=b18cb9e3e
47-
KERNEL_COMMIT_nvidia=e6cd9a55f
4844
else ifeq ($(ZARCH), riscv64)
4945
KERNEL_VERSION=v6.1.38
5046
KERNEL_FLAVOR=generic
51-
KERNEL_COMMIT_generic=b52e17b4b
5247
endif
5348

54-
# at this point ZARCH and FLAVOR must be defined. Check that we defined a commit for combination
55-
ifeq ($(origin KERNEL_COMMIT_$(KERNEL_FLAVOR)), undefined)
56-
$(error "KERNEL_COMMIT_$(KERNEL_FLAVOR) is not defined. did you introduced new platform or ARCH?")
57-
endif
49+
include kernel-commits.mk
5850

5951
# check if KERNEL_VERSION is defined
6052
ifeq ($(origin KERNEL_VERSION), undefined)
6153
$(error "KERNEL_VERSION is not defined. did you introduced new platform or ARCH?")
6254
endif
6355

64-
KERNEL_COMMIT=$(KERNEL_COMMIT_$(KERNEL_FLAVOR))
56+
# at this point ZARCH, KERNEL_VERSION and FLAVOR must be defined.
57+
# Check that we defined a commit for combination
58+
ifeq ($(origin KERNEL_COMMIT_$(ZARCH)_$(KERNEL_VERSION)_$(KERNEL_FLAVOR)), undefined)
59+
$(error "KERNEL_COMMIT_$(KERNEL_FLAVOR) is not defined. did you introduce new platform or ARCH?")
60+
endif
61+
62+
KERNEL_COMMIT=$(KERNEL_COMMIT_$(ZARCH)_$(KERNEL_VERSION)_$(KERNEL_FLAVOR))
6563
KERNEL_BRANCH = eve-kernel-$(ZARCH)-$(KERNEL_VERSION)-$(KERNEL_FLAVOR)
6664
KERNEL_DOCKER_TAG = $(KERNEL_BRANCH)-$(KERNEL_COMMIT)-$(KERNEL_COMPILER)
6765

0 commit comments

Comments
 (0)