Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hello,
I downloaded source code of linux kernel and past it into usr/src directory. then i want to compile source code then terminal gives me error that "NO rule to make target". so what i have to do....
first, you have to configure the kernel: 'make config' (terminal version), 'make menuconfig' (ncurses version) or 'make xconfig' (windowed version) is the first step to do
but, if your you've never done it, you'd better start with an existent kernel config; your distro may ship this in the kernel package, usually a file named config or similar in the /boot directory, just copy it in the kernel source directory and rename it in .config (the prefix dot is essential)
Yes sir, i extracted source code and put that into usr/src and change terminal on usr/src/"extracted linux src code directory" but still i am getting error that "No rule to make target menu config". please help me...Error is :
root@bharat-Inspiron-N5110:/usr/src/linux-kernel 3.14# make menuconfig
Makefile:331: warning: overriding commands for target `/usr/src/linux-kernel'
Makefile:117: warning: ignoring old commands for target `/usr/src/linux-kernel'
Makefile:332: /usr/src/linux-kernel: No such file or directory
Makefile:332: 3.14/scripts/Kbuild.include: No such file or directory
Makefile:504: /usr/src/linux-kernel: No such file or directory
Makefile:504: 3.14/arch/x86/Makefile: No such file or directory
make: *** No rule to make target `3.14/arch/x86/Makefile'. Stop.
root@bharat-Inspiron-N5110:/usr/src/linux-kernel 3.14#
Last edited by Bharat mistry; 08-06-2014 at 01:12 PM.
If this is your first kernel to build I recommend doing the following:
Code:
make defconfig
This will create a general system architecture config for the kernel, but it's still fairly basic.
Code:
make menuconfig
This will open the ncurses configuration screen. Use this and follow the LFS kernel building hints to add any appropriate modules and embedded drivers to the system. I recommend you enable file systems as internally compiled rather than as modules.
If all else fails, you can import another distributions config file and try it. We recommend the Slackware Huge kernel as a good place to start.
hey guy, you must not use user root to make a new kernel, but a normal user. Also do not put the kernel sources directly into /usr!
So do it as yourself. unpack it into your home, or into a subdir in your home (or into /tmp, or whatever, but not into the living system). And then comes make defconfig, make menuconfig or whatever you want (to config). You only need to do the last steps as root (make install and similar tasks)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.