Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No makefile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 231
Location: Philadelphia

PostPosted: Tue Aug 26, 2014 3:00 am    Post subject: No makefile Reply with quote

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
View user's profile Send private message
mir3x
Guru
Guru


Joined: 02 Jun 2012
Posts: 429

PostPosted: Tue Aug 26, 2014 8:07 am    Post subject: Reply with quote

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 )
_________________
Installation aborted to prevent system self-destruction
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Tue Aug 26, 2014 3:24 pm    Post subject: Reply with quote

You may find this useful.

http://wiki.gentoo.org/wiki/NVidia/nvidia-drivers
Back to top
View user's profile Send private message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 231
Location: Philadelphia

PostPosted: Sat Aug 30, 2014 1:04 am    Post subject: Reply with quote

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
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2586

PostPosted: Sat Aug 30, 2014 1:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sat Aug 30, 2014 1:02 pm    Post subject: Reply with quote

You are right juding on his posts he really deleted the kernel tree before asking this post o.o
Back to top
View user's profile Send private message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 231
Location: Philadelphia

PostPosted: Sat Aug 30, 2014 4:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum