On Thu, Jun 15, 2017 at 11:11 AM, Michal Marek <mmarek@suse.com> wrote:
On 2017-06-15 09:38, Robert Munteanu wrote:
Hi,
I am trying to develop a new HID module. This module requires a change to drivers/hid/hid-core.c, which is built-in to the kernel, so I can't get away with just loading my module.
I have tried building a new kernel using osc
- osc co openSUSE:Factory kernel-default - ( applied patches ) - osc build
After building the installation fails since I don't have a matching kernel-devel:
$ robert@rombert:/var/tmp/build-root> sudo rpm -Fvh /var/tmp/build-root/standard-x86_64/home/abuild/rpmbuild/RPMS/x86_64/*.rpm error: Failed dependencies: kernel-devel = 4.11.4-2 is needed by kernel-default-devel-4.11.4-2.x86_64
There is no openSUSE:Factory/kernel-devel, so I am apparently stuck.
You need to build both kernel-default.spec (which you did) and kernel-source.spec (which will produce a kernel-devel sub-package). Just copy the rpms from the first build somewhere and run
osc build kernel-source.spec
in the same package directory.
Will do, thank you. Robert -- http://robert.muntea.nu/ -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org