You are not logged in.

#1 2015-10-14 01:27:04

harunaga
Member
Registered: 2015-10-14
Posts: 2

Scripted changing kernel config with dependency ?

Hi

I'm new to kernel configuration
I'm doing hardware driver testing work which require building the kernel alot of times.
with some few config option enable/disable. So I just asking if is there any way to enable/disable config option by script with all dependency (like the menuconfig tool does)
I did some search on google and find out a script in /scripts/config  but this simply just enable/disable config option with checking dependency.
http://www.embedded-bits.co.uk/2013/scr … g-options/
so is there any tool that allow adjust config option via parameter or script with dependency checking
or how do I work around this ?

thanks.

Offline

#2 2015-10-14 03:01:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: Scripted changing kernel config with dependency ?

I am going to break from the Arch way on this one and take the heat later.    In general, I think not using Pacman to install things is a seriously bad idea.  Except kernels.

I came from Gentoo and have a lot of Gentoo in my DNA.   If I were you, I would grab the kernel source, unpack it to a build directory and grab the arch configuration for your running kernel from /proc/config.gz.   Then, use make menuconfig and adjust your configuration and be sure to change the name of the kernel to something unique to your install  (On my system that would be Arch-Envy).  I would also build in every module I need to boot so you do not need an initrd.

After you build the kernel, install the kernel modules to /lib/modules using make modules_install.   Copy the kernel to your boot directory, add a boot entry, profit.   The Gentoo Handbook has some really good tips that applicable to all of this


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2015-10-14 05:48:19

harunaga
Member
Registered: 2015-10-14
Posts: 2

Re: Scripted changing kernel config with dependency ?

thanks for your recommendation. but my work is to testing drivers each time new version of linux kernel released.
I don't have much knowledge about kernel source code, kernel configuration, etc,
I means, I'm about to save some config need to enable/disable in a my local config file, each time a new version of linux kernel was released, just
click the script file, all things will be done
now I'm having to use menuconfig then search around on each config option for how to enable/disable it ( some require dependency option have to be enabled )
working with menuconfig for each config option is boring work (some time terrible)
with that kind of script life will be much easier big_smile

Offline

Board footer

Powered by FluxBB