modify the .config file

Asked by lyl

When I build the kernel source tree usue such commands
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic binary-perarch
how can I override the .config file fast instead of defaults to use debian/rules script?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

According to https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel#Modifying_the_configuration the command for adapting the .config file is
fakeroot debian/rules editconfigs

Revision history for this message
lyl (liyl) said :
#2

I'm so tired to use fakeroot debian/rules editconfigs

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Copy the kernel config file from your existing system to the kernel tree:
cp /boot/config-`uname -r` .config

from https://wiki.ubuntu.com/KernelTeam/GitKernelBuild#Kernel_Build_and_Installation

Is this what you are looking for?

Revision history for this message
lyl (liyl) said :
#4

what does the debian/rules scripts to do this?

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

What exactly do you want to know?

Revision history for this message
lyl (liyl) said :
#6

cp /boot/config-`uname -r` .config but the debian/rules will be override it
I want to make debian/rules copy /boot/config-`uname -r` .config to build directory

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Have you already tried copying the config file after running "fakeroot debian/rules clean" and before the "fakeroot debian/rules binary..." commands?
If this doesn't work, then you have to dig into the debian/rules script and find the right moment for the copy command.

Revision history for this message
lyl (liyl) said :
#8

yeah , I did it. but fakeroot debian/rules clean couldn't copy /boot/config-`uname -r` .config to my build directory debian/build or debian/build/build-generic

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

Maybe the following works:

copy boot/config-`uname -r` into the debian/rules directory (naming it somewhat different).
Then you might be able accessing that new file from inside the fakeroot commands

Revision history for this message
lyl (liyl) said :
#10

debian/rules root directory?

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

Sorry, my fault, should have been "... into the debian directory or below ...".

Revision history for this message
lyl (liyl) said :
#12

I want to use debian/rules make menuconfig to configured kernel source tree

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

Is there a problem with menuconfig, or what is the question now?

Have you installed the package libncurses-dev (or libncurses5-dev)?

Revision history for this message
Launchpad Janitor (janitor) said :
#14

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.