0df155b014
- Why I did it Currently, non upstream patches are applied only after upstream patches. Depends on sonic-net/sonic-linux-kernel#313. Can be merged in any order, preferably together - What I did it Non upstream Patches that reside in the sonic repo will not be saved in a tar file bur rather in a folder pointed out by EXTERNAL_KERNEL_PATCH_LOC. This is to make changes to the non upstream patches easily traceable. The build variable name is also updated to INCLUDE_EXTERNAL_PATCHES Files/folders expected under EXTERNAL_KERNEL_PATCH_LOC EXTERNAL_KERNEL_PATCH_LOC/ ├──── patches/ ├── 0001-xxxxx.patch ├── 0001-yyyyyyyy.patch ├── ............. ├──── series.patch series.patch should contain a diff that is applied on the sonic-linux-kernel/patch/series file. The diff should include all the non-upstream patches. How to verify it Build the Kernel and verified if all the patches are applied properly Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
37 lines
1.5 KiB
Makefile
37 lines
1.5 KiB
Makefile
# linux kernel package
|
|
|
|
KVERSION_SHORT = 5.10.0-18-2
|
|
KVERSION = $(KVERSION_SHORT)-$(CONFIGURED_ARCH)
|
|
KERNEL_VERSION = 5.10.140
|
|
KERNEL_SUBVERSION = 1
|
|
ifeq ($(CONFIGURED_ARCH), armhf)
|
|
# Override kernel version for ARMHF as it uses arm MP (multi-platform) for short version
|
|
KVERSION = $(KVERSION_SHORT)-armmp
|
|
endif
|
|
|
|
# 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
|
|
INCLUDE_EXTERNAL_PATCHES = n
|
|
# platforms should override this and provide an absolute location to the patches
|
|
EXTERNAL_KERNEL_PATCH_LOC =
|
|
|
|
export KVERSION_SHORT KVERSION KERNEL_VERSION KERNEL_SUBVERSION
|
|
export EXTERNAL_KERNEL_PATCH_URL
|
|
export INCLUDE_EXTERNAL_PATCHES
|
|
export EXTERNAL_KERNEL_PATCH_LOC
|
|
|
|
LINUX_HEADERS_COMMON = linux-headers-$(KVERSION_SHORT)-common_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_all.deb
|
|
$(LINUX_HEADERS_COMMON)_SRC_PATH = $(SRC_PATH)/sonic-linux-kernel
|
|
SONIC_MAKE_DEBS += $(LINUX_HEADERS_COMMON)
|
|
|
|
LINUX_HEADERS = linux-headers-$(KVERSION)_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_$(CONFIGURED_ARCH).deb
|
|
$(eval $(call add_derived_package,$(LINUX_HEADERS_COMMON),$(LINUX_HEADERS)))
|
|
|
|
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
|
|
$(eval $(call add_derived_package,$(LINUX_HEADERS_COMMON),$(LINUX_KERNEL)))
|