15.11.2016 18:39, Rainer Klier пишет:
Am 2016-11-14 um 12:40 schrieb Michal Kubecek:
On Monday, 14 November 2016 11:55 Rainer Klier wrote:
Am 2016-11-14 um 07:08 schrieb Michal Kubecek:
As others suggested: - install kernel-$flavor-devel, kernel-devel and kernel-macros
(zypper install kernel-$flavor-devel will suffice, $flavor is most likely "default")
at this stage i additionally do: * cd to /usr/src/linux-obj/x86_64/default/ * and then do a "make prepare" * and a "make modules_prepare".
You shouldn't. The kernel-$flavor-devel package is prepared exactly so that you do not need to do this.
ok. i will avoid it on the next kernel update 4.8.8 if this is true, i will be able to build all my needed external kernel modules (nvidia, wl, displaylink, vmware) without it.
but is there a problem doing it?
Because it depends on your personal environment and may change compile parameters in unpredictable way. As trivial example linux-ffk5:/usr/src/linux-4.8.6-2-obj/x86_64/default # make -n V=1 prepare make -C ../../../linux-4.8.6-2 O=/usr/src/linux-4.8.6-2-obj/x86_64/default/. prepare make -C /usr/src/linux-4.8.6-2-obj/x86_64/default KBUILD_SRC=/usr/src/linux-4.8.6-2 -f /usr/src/linux-4.8.6-2/Makefile prepare /usr/src/linux-4.8.6-2/Makefile:1052: "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel" So it will continue but with disabled STACK_VALIDATION. And of course it requires full kernel-source that is not needed normally and that I do not have. make -f /usr/src/linux-4.8.6-2/scripts/Makefile.build obj=arch/x86/entry/syscalls all make[3]: *** No rule to make target '/usr/src/linux-4.8.6-2/arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'. Stop. make[2]: *** [arch/x86/Makefile:193: archheaders] Error 2 make[1]: *** [Makefile:150: sub-make] Error 2 make: *** [Makefile:24: __sub-make] Error 2 bor@bor-Latitude-E5450:~/src/linux$ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org