[Improvement] Build server should allow building kernel modules for specific kernel version

Bug #1418018 reported by Aleksander Mogylchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Wishlist
Dmitry Burmistrov

Bug Description

Currently there is no way to build linux kernel modules on OBS.

Since we need to support Linux distributions, we need the ability to build kernel modules, and we need the ability to select kernel version.

DKMS modules provide a workaround, but even in that case all build should occur as a post-install stage.

Roman Vyalov (r0mikiam)
Changed in fuel:
milestone: none → 6.1
status: New → Triaged
Revision history for this message
Albert Syriy (asyriy) wrote :

The another connected issue what we have faced is the Makefiles for building kernel modules usually contain a "guess" of kernel version like
make -C /usr/src/kernel-'uname -r'
or
install /lib/modules/'uname -r'

So building kernel modules required the exactly the same kernel version running on the build system.

Changed in fuel:
milestone: 6.1 → 7.0
Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: Fuel OSCI Team (fuel-osci) → Fuel build team (fuel-build)
Roman Vyalov (r0mikiam)
Changed in fuel:
milestone: 7.0 → 8.0
summary: - [Improvement] OBS server should allow building kernel modules for
+ [Improvement] Build server should allow building kernel modules for
specific kernel version
Roman Vyalov (r0mikiam)
Changed in fuel:
assignee: Fuel build team (fuel-build) → Dmitry Burmistrov (dburmistrov)
Revision history for this message
Dmitry Burmistrov (dburmistrov) wrote :

You can't use `uname -r` for building kernel modules inside build system because running kernel can be differ from target one.
Instead of it you could specify exact kernel version inside package specifications. This way requires to rebuild all such modules every time when target kernel is changing (e.g. updated by upstream)
To aviod such rebuilds you could use DKMS. In this case 'uname -r' inside post-install section of package is a proper way to adopt kernel module to target(running) kernel

Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote :

> The another connected issue what we have faced is the Makefiles for building kernel modules
> usually contain a "guess" of kernel version like
> make -C /usr/src/kernel-'uname -r'

Such makefiles are buggy and should be fixed.

Roman Vyalov (r0mikiam)
tags: added: fuel-build
Dmitry Pyzhov (dpyzhov)
tags: added: area-build
Roman Vyalov (r0mikiam)
Changed in fuel:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.