* [Buildroot] Forcing a kernel rebuild
@ 2008-07-08 18:42 Brian Beattie
2008-07-09 11:29 ` Bernhard Fischer
0 siblings, 1 reply; 4+ messages in thread
From: Brian Beattie @ 2008-07-08 18:42 UTC (permalink / raw)
To: buildroot
I'm doing some kernel module development and need to rebuild the kernel
modules. Now I can do this by setting the environment to use the
buildroot cross compiler and running make from within the
project_{ARCH}/${BOARD}/linux-2.4.24 directory, but I'd really like to
just run make from the buildroot directory and have all the cross
compile stuff taken care of.
If there is currently a way to force the kernel modules to be rebuilt I
have not found it, so I added some targets to target/linux/Makefile.in*
so that a "make linux26-touch" will touch .configured in the kernel
directory forcing a kernel and kernel modules recompile for the next
"make". I have attached a patch for this and would be interested is
discussing this approach. I'm open to any to get this functionality.
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting a bad thing?
Brian Beattie LFS12947 | "Honor isn't about making the right choices.
beattie at beattie-home.net | It's about dealing with the consequences."
www.beattie-home.net | -- Midori Koto
------------- Patch Follows ------------------
Index: target/linux/Makefile.in
===================================================================
--- target/linux/Makefile.in (revision 22673)
+++ target/linux/Makefile.in (working copy)
@@ -184,6 +184,9 @@
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) oldconfig
touch $@
+$(LINUX26_DIR)/.touch:
+ touch $(LINUX26_DIR)/.configured
+
$(LINUX26_DIR)/.depend_done: $(LINUX26_DIR)/.configured
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) prepare
touch $@
@@ -230,6 +233,8 @@
linux26-config: host-sed $(LINUX26_DIR)/.configured
+linux26-touch: $(LINUX26_DIR)/.touch
+
linux26-update:
cp -dpf $(LINUX26_DIR)/.config $(LINUX26_KCONFIG)
Index: target/linux/Makefile.in.advanced
===================================================================
--- target/linux/Makefile.in.advanced (revision 22673)
+++ target/linux/Makefile.in.advanced (working copy)
@@ -378,6 +378,9 @@
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) prepare
touch $@
+$(LINUX26_DIR)/.touch:
+ touch $(LINUX26_DIR)/.configured
+
$(LINUX26_DIR)/$(LINUX26_BINLOC): $(INITRAMFS_TARGET)
$(BB_INITRAMFS_TARGET) \
$(LINUX26_DIR)/.depend_done
$(MAKE) $(LINUX26_MAKE_FLAGS) \
@@ -451,6 +454,8 @@
linux26-config: host-sed $(LINUX26_DIR)/.configured
+linux26-touch: $(LINUX26_DIR)/.touch
+
linux26-update:
cp -dpf $(LINUX26_DIR)/.config $(LINUX26_KCONFIG)
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] Forcing a kernel rebuild
2008-07-08 18:42 [Buildroot] Forcing a kernel rebuild Brian Beattie
@ 2008-07-09 11:29 ` Bernhard Fischer
2008-07-09 11:37 ` Ulf Samuelsson
2008-07-09 11:44 ` Peter Korsgaard
0 siblings, 2 replies; 4+ messages in thread
From: Bernhard Fischer @ 2008-07-09 11:29 UTC (permalink / raw)
To: buildroot
On Tue, Jul 08, 2008 at 11:42:37AM -0700, Brian Beattie wrote:
>I'm doing some kernel module development and need to rebuild the kernel
>modules. Now I can do this by setting the environment to use the
>buildroot cross compiler and running make from within the
>project_{ARCH}/${BOARD}/linux-2.4.24 directory, but I'd really like to
>just run make from the buildroot directory and have all the cross
>compile stuff taken care of.
>
>If there is currently a way to force the kernel modules to be rebuilt I
>have not found it, so I added some targets to target/linux/Makefile.in*
>so that a "make linux26-touch" will touch .configured in the kernel
>directory forcing a kernel and kernel modules recompile for the next
>"make". I have attached a patch for this and would be interested is
>discussing this approach. I'm open to any to get this functionality.
I think you could simply
$ rm -f project_*/*/linux*/.modules_installed
$ make linux26-modules
Alternatively, i suggest to add a
index 22bbcb9..fd9844e 100644
--- a/target/linux/Makefile.in
+++ b/target/linux/Makefile.in
@@ -256,6 +256,9 @@ linux26-config: host-sed $(LINUX26_DIR)/.configured
linux26-update:
cp -dpf $(LINUX26_DIR)/.config $(LINUX26_KCONFIG)
+linux26-force:
+ touch $(LINUX26_DIR)/.configured
+
# This has been renamed so we do _NOT_ by default run this on 'make
# clean'
linux26clean:
rm -f $(LINUX26_KERNEL) $(LINUX26_DIR)/.configured
(which i did now) so you can
make linux26-force && make linux26
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] Forcing a kernel rebuild
2008-07-09 11:29 ` Bernhard Fischer
@ 2008-07-09 11:37 ` Ulf Samuelsson
2008-07-09 11:44 ` Peter Korsgaard
1 sibling, 0 replies; 4+ messages in thread
From: Ulf Samuelsson @ 2008-07-09 11:37 UTC (permalink / raw)
To: buildroot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bernhard Fischer skrev:
> On Tue, Jul 08, 2008 at 11:42:37AM -0700, Brian Beattie wrote:
>> I'm doing some kernel module development and need to rebuild the kernel
>> modules. Now I can do this by setting the environment to use the
>> buildroot cross compiler and running make from within the
>> project_{ARCH}/${BOARD}/linux-2.4.24 directory, but I'd really like to
>> just run make from the buildroot directory and have all the cross
>> compile stuff taken care of.
>>
>> If there is currently a way to force the kernel modules to be rebuilt I
>> have not found it, so I added some targets to target/linux/Makefile.in*
>> so that a "make linux26-touch" will touch .configured in the kernel
>> directory forcing a kernel and kernel modules recompile for the next
>> "make". I have attached a patch for this and would be interested is
>> discussing this approach. I'm open to any to get this functionality.
>
> I think you could simply
> $ rm -f project_*/*/linux*/.modules_installed
> $ make linux26-modules
>
Or you could ensure that the make modules inside
the linux26.mk has the "-B" switch.
I think this will force the rebuild of the modules,
without forcing the whole kernel to be rebuilt.
BR
Ulf Samuelsson
> Alternatively, i suggest to add a
> index 22bbcb9..fd9844e 100644
> --- a/target/linux/Makefile.in
> +++ b/target/linux/Makefile.in
> @@ -256,6 +256,9 @@ linux26-config: host-sed $(LINUX26_DIR)/.configured
> linux26-update:
> cp -dpf $(LINUX26_DIR)/.config $(LINUX26_KCONFIG)
>
> +linux26-force:
> + touch $(LINUX26_DIR)/.configured
> +
> # This has been renamed so we do _NOT_ by default run this on 'make
> # clean'
> linux26clean:
> rm -f $(LINUX26_KERNEL) $(LINUX26_DIR)/.configured
>
>
> (which i did now) so you can
> make linux26-force && make linux26
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIdKLjAyRRH5cXxqwRAiOwAKC4EUArDNndHiobafNrWhjPmTu0RwCeLT89
2VuI1ms7arjrGL96QtHuJRU=
=OTSC
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] Forcing a kernel rebuild
2008-07-09 11:29 ` Bernhard Fischer
2008-07-09 11:37 ` Ulf Samuelsson
@ 2008-07-09 11:44 ` Peter Korsgaard
1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2008-07-09 11:44 UTC (permalink / raw)
To: buildroot
>>>>> "Bernhard" == Bernhard Fischer <rep.dot.nop@gmail.com> writes:
Bernhard> (which i did now) so you can
Bernhard> make linux26-force && make linux26
I've added it to svn as well (r22070) - Thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-07-09 11:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08 18:42 [Buildroot] Forcing a kernel rebuild Brian Beattie
2008-07-09 11:29 ` Bernhard Fischer
2008-07-09 11:37 ` Ulf Samuelsson
2008-07-09 11:44 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox