2016-12-28 21:05:09 -06:00
|
|
|
# linux kernel package
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2022-05-10 15:46:31 -05:00
|
|
|
KVERSION_SHORT = 5.10.0-12-2
|
2019-07-26 00:06:41 -05:00
|
|
|
KVERSION = $(KVERSION_SHORT)-$(CONFIGURED_ARCH)
|
2022-05-10 15:46:31 -05:00
|
|
|
KERNEL_VERSION = 5.10.103
|
|
|
|
KERNEL_SUBVERSION = 1
|
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
|
|
|
|
2017-02-02 20:28:06 -06:00
|
|
|
export KVERSION_SHORT KVERSION KERNEL_VERSION KERNEL_SUBVERSION
|
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)))
|