2016-12-28 21:05:09 -06:00
|
|
|
# linux kernel package
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2023-09-20 17:24:39 -05:00
|
|
|
KVERSION_SHORT = 5.10.0-23-2
|
2019-07-26 00:06:41 -05:00
|
|
|
KVERSION = $(KVERSION_SHORT)-$(CONFIGURED_ARCH)
|
2023-09-20 17:24:39 -05:00
|
|
|
KERNEL_VERSION = 5.10.179
|
|
|
|
KERNEL_SUBVERSION = 3
|
2019-10-10 17:11:26 -05:00
|
|
|
ifeq ($(CONFIGURED_ARCH), armhf)
|
|
|
|
# Override kernel version for ARMHF as it uses arm MP (multi-platform) for short version
|
|
|
|
KVERSION = $(KVERSION_SHORT)-armmp
|
|
|
|
endif
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2022-10-31 14:16:05 -05:00
|
|
|
# Place an URL here to .tar.gz file if you want to include those patches
|
|
|
|
EXTERNAL_KERNEL_PATCH_URL =
|
|
|
|
# Set y to include non upstream patches tarball provided by the corresponding platform
|
2023-04-10 11:48:27 -05:00
|
|
|
INCLUDE_EXTERNAL_PATCHES = n
|
|
|
|
# platforms should override this and provide an absolute location to the patches
|
|
|
|
EXTERNAL_KERNEL_PATCH_LOC =
|
2022-10-31 14:16:05 -05:00
|
|
|
|
2017-02-02 20:28:06 -06:00
|
|
|
export KVERSION_SHORT KVERSION KERNEL_VERSION KERNEL_SUBVERSION
|
2022-10-31 14:16:05 -05:00
|
|
|
export EXTERNAL_KERNEL_PATCH_URL
|
2023-04-10 11:48:27 -05:00
|
|
|
export INCLUDE_EXTERNAL_PATCHES
|
|
|
|
export EXTERNAL_KERNEL_PATCH_LOC
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2017-11-05 20:49:04 -06:00
|
|
|
LINUX_HEADERS_COMMON = linux-headers-$(KVERSION_SHORT)-common_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_all.deb
|
2017-02-02 20:28:06 -06:00
|
|
|
$(LINUX_HEADERS_COMMON)_SRC_PATH = $(SRC_PATH)/sonic-linux-kernel
|
|
|
|
SONIC_MAKE_DEBS += $(LINUX_HEADERS_COMMON)
|
|
|
|
|
2019-07-26 00:06:41 -05:00
|
|
|
LINUX_HEADERS = linux-headers-$(KVERSION)_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_$(CONFIGURED_ARCH).deb
|
2017-02-02 20:28:06 -06:00
|
|
|
$(eval $(call add_derived_package,$(LINUX_HEADERS_COMMON),$(LINUX_HEADERS)))
|
|
|
|
|
2021-02-11 01:07:22 -06:00
|
|
|
ifeq ($(CONFIGURED_ARCH), armhf)
|
|
|
|
LINUX_KERNEL = linux-image-$(KVERSION)_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_$(CONFIGURED_ARCH).deb
|
|
|
|
else
|
|
|
|
LINUX_KERNEL = linux-image-$(KVERSION)-unsigned_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_$(CONFIGURED_ARCH).deb
|
|
|
|
endif
|
2017-02-02 20:28:06 -06:00
|
|
|
$(eval $(call add_derived_package,$(LINUX_HEADERS_COMMON),$(LINUX_KERNEL)))
|