How to add new configuration file into Linux kernel - linux

I am working on Linux kernel, I want to create own configuration file for my board. Similar to x86-64_defconfig and i386_defconfig. I tried changing in arch/x86/Makefile.I doubt changing here will not suffice. What are the other files i need to change to add new configuration file.
or just copying my file into arch/x86/configs is enough ??
Thanks in Advance

Related

How to Create .wgetrc format file in Linux

Hi anyone knows how to create .wgetrc file on Linux? I want to add user credentials in this file for building Yocto image purpose. Any helps will be very appreciated.
Here’s a sample .wgetrc file and here’s some documentation on the possible values you can set in it. The file should exist in $HOME/.wgetrc, you can use any text editor to create and edit it.

Compiling upstream kernel with my own .config file

I want to compile upstream kernel with my own .config file.
I copied this file to the root directory.
I run 'make oldconfig' but seems that no consideration on that file because the compiler ask me questions about the configuration and I want that all the configuration will take from the my .config file:
"Compile also drivers which will not load (COMPILE_TEST) [N/y/?] (NEW)"
The makefile (not compiler) is asking you those questions, because following options (as CONFIG_COMPILE_TEST) is not present in your .config file (since you moved your old config from older kernel to newer one). Thus, every new config option which is available in kernel, you need to set if you want it or not. If you don't want to use those new features, just in loop write n and enter. If you want to keep default value, just press enter until you check every new config option.

Add module .C to linux kernel

good afternoon, I have a problem and I could not solve it, I try to add a .c module to the linux kernel, it's just a .c file called
Stealth.c I have tried to find guides on how to add it step by step but I can not find it by any means, I am not very familiar with the kernel,
thanks for your help
Assuming you put this file is somewhere in your kernel source tree, the directory it's in should have a Makefile. Add the line
obj-y += Stealth.o
If you want to deal with configuration, you'll probably want to add the object file to obj-$(CONFIG_WHATEVER) instead of obj-y, but I won't be going into how to add a configuration here.
If you're looking to compile your file as an external module, a quick google search pops http://www.tldp.org/LDP/lkmpg/2.6/html/x181.html which seems good enough.

Linux changes another file content while changing in one file

i have 3 files a1.ksh,a2.ksh,a3.ksh in same location.whenever i do modification in any one file it is reflecting in remaining 2 files why it is happening.
i am using OS linux
if anyone know why so please let me know

Which is the best way to make config changes in conf files in ansible

Initially I used a makefile to deploy my application in linux.
I had various sed commands to replace variables like the PHP upload file size, post size, log file location etc.
Now I am shifting to ansible. I know I can copy the files, but how can I make changes to the conf files? Like if i just want to change the upload_filesize = 50M parameter. I don't want to make copies of the whole conf file and then replace with my file.
Sometimes it’s only a one-line change. Is there any better way to edit the config files in ansible?
If it's an INI file, then your specific requirements can be probably met by ini_file module (http://docs.ansible.com/ini_file_module.html).
If your change is limited just few lines (or eve one), then you can probably look at lineinfile module (http://docs.ansible.com/lineinfile_module.html).
Should you however need to change large number of settings, then it may be more beneficial to use template (http://docs.ansible.com/template_module.html) or assemble (http://docs.ansible.com/assemble_module.html). The main disadvantage of this approach is that you may need to review your template or fragments when updating your dependency.
Depending on the operating system, you can add files here /etc/php/apache2/conf.d/10-someinifilewithsetting.ini

Resources