linux: rebuild after reconfiguring kernel
PATCH 1/1 linux: rebuild after reconfiguring kernel
Add support for rebuilding the kernel after make linux26-menuconfig.
---
linux/linux.mk +1 -0
@@ -139,6 +139,7 @@ linux26: host-module-init-tools $(LINUX26_DEPENDENCIES) $(LINUX26_DIR)/.stamp_in linux26-menuconfig linux26-xconfig linux26-gconfig: $(LINUX26_DIR)/.stamp_configured $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) $(subst linux26-,,$@) + $(Q)touch $@ # Support for rebuilding the kernel after the initramfs file list has # been generated in $(BINARIES_DIR)/rootfs.initramfs.
PATCH 1/1 linux: rebuild after reconfiguring kernel
Hello!
linux/linux.mk linux26: host-module-init-tools $(LINUX26_DEPENDENCIES) $(LINUX26_DIR)/.stamp_in · line 142
Quoted 9 lines · On Tue, 6 Jul 2010 11:30:52 -0700 H Hartley Sweeten…
linux/linux.mk +1
-0@@ -139,6 +139,7 @@ linux26: host-module-init-tools $(LINUX26_DEPENDENCIES) $(LINUX26_DIR)/.stamp_in linux26-menuconfig linux26-xconfig linux26-gconfig: $(LINUX26_DIR)/.stamp_configured $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) $(subst linux26-,,$@) + $(Q)touch $@
Unless I'm missing something, this change is going to create a linux26-menuconfig file or a linux26-xconfig file, which is not correct, and is not going to retrigger the build step of the kernel.
We are already handling the fact that the kernel should be rebuilt when its configuration is changed. This is done through the following dependency :
$(LINUX26_DIR)/.stamp_compiled: $(LINUX26_DIR)/.stamp_configured $(LINUX26_DIR)/.config
So, when the kernel .config is changed, the build step is restarted.
Which exact issue are you facing ? Can you provide an example ?
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 linux: rebuild after reconfiguring kernel
Quoted 11 lines · Thomas Petazzoni
Hello!
Quoted 6 lines · On Tue, 6 Jul 2010 11:30:52 -0700 H Hartley Sweeten…
linux/linux.mk +0
-0@@ -139,6 +139,7 @@ linux26: host-module-init-tools $(LINUX26_DEPENDENCIES) $(LINUX26_DIR)/.stamp_in
Quoted 7 lines
linux/linux.mk linux26: host-module-init-tools $(LINUX26_DEPENDENCIES) $(LINUX26_DIR)/.stamp_in · line 142
Quoted 3 lines
linux/linux.mk +1
-0linux26-menuconfig linux26-xconfig linux26-gconfig: $(LINUX26_DIR)/.stamp_configured $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) $(subst linux26-,,$@) + $(Q)touch $@Unless I'm missing something, this change is going to create a linux26-menuconfig file or a linux26-xconfig file, which is not correct, and is not going to retrigger the build step of the kernel.
Argh... Your correct. The .stamp_configured file is the one that needs touched.
Quoted 9 lines
We are already handling the fact that the kernel should be rebuilt when its configuration is changed. This is done through the following dependency :
$(LINUX26_DIR)/.stamp_compiled: $(LINUX26_DIR)/.stamp_configured $(LINUX26_DIR)/.config
So, when the kernel .config is changed, the build step is restarted.
Which exact issue are you facing ? Can you provide an example ?
Your correct, when the .config file is changed the kernel does rebuild.
The strange thing is, yesterday it didn't work and I haven't changed anything. I would do:
$ make linux26-menuconfig
Change something in the config, then:
$ make
Or
$ make linux26
And the kernel would not rebuild. But if I did:
$ touch output/build/linux-2.6.34/.stamp_configured $ make
It would.
Oh well, it's working now...
Regards,
Hartley
PATCH 1/1 linux: rebuild after reconfiguring kernel
Quoted 5 lines · On Wed, 7 Jul 2010 15:11:50 -0500 H Hartley Sweeten…
Quoted 3 lines
Unless I'm missing something, this change is going to create a linux26-menuconfig file or a linux26-xconfig file, which is not correct, and is not going to retrigger the build step of the kernel.
Argh... Your correct. The .stamp_configured file is the one that needs touched.
Right.
Quoted 17 lines
Quoted 1 line
Which exact issue are you facing ? Can you provide an example ?
Your correct, when the .config file is changed the kernel does rebuild.
The strange thing is, yesterday it didn't work and I haven't changed anything. I would do:
$ make linux26-menuconfigChange something in the config, then:
$ makeOr
$ make linux26
Quoted 8 lines
And the kernel would not rebuild. But if I did:
$ touch output/build/linux-2.6.34/.stamp_configured $ makeIt would.
Oh well, it's working now...
Strange. If you manage to reproduce something like this, don't hesitate to tell us.
Thanks,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com