View previous topic :: View next topic |
Author |
Message |
mreff555 Apprentice
Joined: 10 Mar 2011 Posts: 231 Location: Philadelphia
|
Posted: Tue Aug 26, 2014 3:00 am Post subject: No makefile |
|
|
I recently tried to recompile my nvidia drivers and was told that there was no makefile found in my kernel source.
I just recently compiled that kernel so there should have been one.
I tried "make menuconfig" within the directory and once again was told that there was no makefile found.
I tried downloading the latest gentoo sources and still had the same problem.
I don't know a whole lot about make files, but this seems to be a systemic problem. Any idea what it could be? |
|
Back to top |
|
|
mir3x Guru
Joined: 02 Jun 2012 Posts: 455
|
Posted: Tue Aug 26, 2014 8:07 am Post subject: |
|
|
Nvidia gentoo package requires kernel config in /usr/src/linux
Add symlink from your kernel tree to that dir.
And add flag +symlink to gentoo-sources to do it automatically next time.
( it doesnt compile drivers for current kernel, but for kernel found in /usr/src/linux
so after making kernel just emerge nvidia-drivers, then reboot to test new kernel ) _________________ Sent from Windows |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
|
Back to top |
|
|
mreff555 Apprentice
Joined: 10 Mar 2011 Posts: 231 Location: Philadelphia
|
Posted: Sat Aug 30, 2014 1:04 am Post subject: |
|
|
I'm aware that Nvidia-drivers need kernel sources. They are there, but this is something peculuar that I just noticed.
Code: |
dan@mojo /usr/src/linux $ uname -r
3.15.6-gentoo
dan@mojo /usr/src/linux $ eselect kernel list
Available kernel symlink targets:
[1] linux-3.12.12-gentoo
[2] linux-3.14.14-gentoo
[3] linux-3.15.8-hardened
dan@mojo /usr/src/linux $ cd ..
dan@mojo /usr/src $ ls
linux linux-3.12.10-gentoo linux-3.12.12-gentoo linux-3.13.7-gentoo linux-3.14.14-gentoo linux-3.14.2-gentoo linux-3.15.6-gentoo linux-3.15.8-hardened
dan@mojo /usr/src $ ^C
dan@mojo /usr/src $
|
I've never seen the source for eselect, so I don't exactly know how it worked. However I thought it just assumed that every directory in /usr/src was a kernel.
when I manually try to link the /usr/src/linux directory it doesn't work either.
Code: |
dan@mojo /usr/src $ sudo rm linux
Password:
dan@mojo /usr/src $ sudo eselect kernel list
Available kernel symlink targets:
[1] linux-3.12.12-gentoo
[2] linux-3.14.14-gentoo
[3] linux-3.15.8-hardened
dan@mojo /usr/src $ sudo ln -s /usr/src/linux-3.15.6-gentoo ./linux
dan@mojo /usr/src $ cd linux
dan@mojo /usr/src/linux $ ls -a
. .config .missing-syscalls.d .tmp_kallsyms1.o .tmp_versions .tmp_vmlinux2 .vmlinux.cmd System.map block drivers fs init kernel mm modules.order scripts sound vmlinux
.. .config.old .tmp_System.map .tmp_kallsyms2.o .tmp_vmlinux1 .version Module.symvers arch crypto firmware include ipc lib modules.builtin net security usr vmlinux.o
dan@mojo /usr/src/linux $ make menuconfig
make: *** No rule to make target `menuconfig'. Stop.
dan@mojo /usr/src/linux $
|
any idea what is going on? |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Sat Aug 30, 2014 1:20 am Post subject: |
|
|
Quote: | I've never seen the source for eselect, so I don't exactly know how it worked. However I thought it just assumed that every directory in /usr/src was a kernel. | No, eselect only lists the complete kernels that include sources. It looks like you cleaned your old sources with depclean so they are no longer available. depclean leaves the old directories since they contain user modified files, so this is normal behavior.
The solution to your problem is fairly simple: either update to 3.15.8 or reemerge the sources for the kernel you are using now. Ether way you should get a consistent set of sources. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Sat Aug 30, 2014 1:02 pm Post subject: |
|
|
You are right juding on his posts he really deleted the kernel tree before asking this post o.o |
|
Back to top |
|
|
mreff555 Apprentice
Joined: 10 Mar 2011 Posts: 231 Location: Philadelphia
|
Posted: Sat Aug 30, 2014 4:27 pm Post subject: |
|
|
tw04l124 wrote: | You are right juding on his posts he really deleted the kernel tree before asking this post o.o |
???
Anyway, thanks for all the help everyone. The Doctor was correct. It must have been dispatch-conf. I need to stop using the --autounmask-write flag. I don't quite understand the mechanism behind dispatch-conf but it is very annoying as it seems to undo all of my configurations if I'm not paying attention. It must have pulled that kernel out of my package.use file. |
|
Back to top |
|
|
|