Skip to content

Commit

Permalink
kmod: skip native build if kernel version < 6.5
Browse files Browse the repository at this point in the history
Native build of octeon_ep vdpa kmod driver will be skipped is the host
kernel version is less than 6.5.

Signed-off-by: Shijith Thotton <sthotton@marvell.com>
Change-Id: Ie9742ec39d1ca58e13a256935409d6885bd70a65
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/dataplane/dpu-offload/+/143871
Tested-by: sa_ip-toolkits-Jenkins <sa_ip-toolkits-jenkins@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
  • Loading branch information
Shijith Thotton authored and jerinjacobk committed Jan 23, 2025
1 parent 29e8e63 commit 9a8a2e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kmod/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ if not meson.is_cross_build()
# use default path for native builds
kernel_source_dir = '/lib/modules/' + kernel_version + '/source'
endif

# Skip kmod build for kernel versions < 6.5
major_version = kernel_version.split('.')[0].to_int()
minor_version = kernel_version.split('.')[1].to_int()
if major_version < 6 or (major_version == 6 and minor_version < 5)
message('Skipping kmod build, kernel version ' + kernel_version + ' < reqired 6.5')
subdir_done()
endif

kernel_install_dir = '/lib/modules/' + kernel_version + '/extra/dpdk'
if kernel_build_dir == ''
# use default path for native builds
Expand Down

0 comments on commit 9a8a2e8

Please sign in to comment.