All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ulf Samuelsson <ulf.samuelsson@atmel.com>
To: buildroot@busybox.net
Subject: [Buildroot] Forcing a kernel rebuild
Date: Wed, 09 Jul 2008 13:37:08 +0200	[thread overview]
Message-ID: <4874A2E4.3090600@atmel.com> (raw)
In-Reply-To: <20080709112926.GA27321@mx.loc>

-----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-----

  reply	other threads:[~2008-07-09 11:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2008-07-09 11:44   ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4874A2E4.3090600@atmel.com \
    --to=ulf.samuelsson@atmel.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.