linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BK PATCH 0/3] Teach kbuild to pull files from BK repository
@ 2003-12-05  3:32 David Dillow
  2003-12-08  3:06 ` Ricky Beam
  0 siblings, 1 reply; 3+ messages in thread
From: David Dillow @ 2003-12-05  3:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: kbuild-devel


I finally got tired of having to run "bk -r get" before doing a build, so I
taught the kbuild system to get the needed files for me. I did most of the
work before Sam added the KBUILD_OUTPUT option, so this doesn't work when
you're building to a different directory. It could probably be added with
a few tweaks to scripts/getfiles, but I'm lazy, and don't use KBUILD_OUTPUT
myself. If that scratches your itch, then feel free to take this code and
run with it. Same goes for CVS or subversion -- it should not be very
difficult to get those working as well.

This isn't really meant for inclusion, just something that makes my life
easier. Maybe it will make your's easier too. Though, I'll have to do many,
many builds in order to make up for the lost time.... :)

Anyways, the patches follow, or BK users (the intended audience) can do a

	bk pull http://typhoon.bkbits.net/autoget-2.5

This will update the following files:

 Makefile                            |   89 +++++++++++--
 drivers/scsi/aic7xxx/Makefile       |    2 
 scripts/Makefile.build              |   13 +
 scripts/Makefile.clean              |    6 
 scripts/Makefile.repo               |  124 ++++++++++++++++++
 scripts/depkconfig                  |   58 ++++++++
 scripts/getfiles                    |  245 ++++++++++++++++++++++++++++++++++++
 scripts/kconfig/Makefile            |   30 ++--
 scripts/kconfig/lex.zconf.c_shipped |  114 +++++++++++++++-
 scripts/kconfig/listkconfigs.c      |   22 +++
 scripts/kconfig/lkc.h               |    2 
 scripts/kconfig/zconf.l             |   29 +++-
 12 files changed, 697 insertions(+), 37 deletions(-)

through these ChangeSets:

<dave@thedillows.org> (03/12/04 1.1507)
   Make the build process a bit less verbose and a bit cleaner during a build
   from a "cleaned" repository.

<dave@thedillows.org> (03/12/04 1.1506)
   Teach the kbuild system how to retrieve the Kconfig files from
   the repository. This involves modifying the kconfig lexer/parser
   to give us a list of sourced Kconfig files so that we can tell
   make about the dependencies. Then is just a matter of makeing sure
   that make will extract those files before they are needed in the
   build process.

<dave@thedillows.org> (03/12/03 1.1505)
   Teach the kbuild system how to pull needed files from the repository.
   With this, you can copy your config into a clean repository, type
   make, and it will build the kernel, retrieving any needed files that
   have not yet been checked out.
           
   We cannot use make's default implicit rules to do this, as we do
   not list the dependencies for each file in the Makefiles, nor do we
   want to. Therefore, we use the getfiles script to parse error
   messages from a gcc -E run to determine which files are missing.
           
   This does not handle Kconfig files yet, only the source files.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BK PATCH 0/3] Teach kbuild to pull files from BK repository
  2003-12-05  3:32 [BK PATCH 0/3] Teach kbuild to pull files from BK repository David Dillow
@ 2003-12-08  3:06 ` Ricky Beam
  2003-12-08 15:12   ` David Dillow
  0 siblings, 1 reply; 3+ messages in thread
From: Ricky Beam @ 2003-12-08  3:06 UTC (permalink / raw)
  To: David Dillow; +Cc: Linux Kernel Mail List, kbuild-devel

On 4 Dec 2003, David Dillow wrote:
>I finally got tired of having to run "bk -r get" before doing a build, so I
...

This is not necessary...

  spacemeat:/usr/src/linux-2.6-bk# cat BitKeeper/etc/config
  # Don't change this unless you're Linus
  logging_ask:no
  description: Linux kernel tree
  logging: logging@openlogging.org
  email: torvalds@transmeta.com

  # cramer / why isn't this the default?
  []checkout:get

That last line is the magic.  It's documented in the BK FAQ (more than once
I think.)

--Ricky



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BK PATCH 0/3] Teach kbuild to pull files from BK repository
  2003-12-08  3:06 ` Ricky Beam
@ 2003-12-08 15:12   ` David Dillow
  0 siblings, 0 replies; 3+ messages in thread
From: David Dillow @ 2003-12-08 15:12 UTC (permalink / raw)
  To: Ricky Beam; +Cc: Linux Kernel Mail List, kbuild-devel

On Sun, 2003-12-07 at 22:06, Ricky Beam wrote:
> On 4 Dec 2003, David Dillow wrote:
> >I finally got tired of having to run "bk -r get" before doing a build, so I
> ...
> 
> This is not necessary...

>   # cramer / why isn't this the default?
>   []checkout:get
> 
> That last line is the magic.  It's documented in the BK FAQ (more than once
> I think.)

Yes, and most of my repositories are set that way. But I like having the
option of not needing that line, and it was interesting to see how to
make it work properly.

Besides, it still does the get, just at a clone/pull time, and you have
gobs of extra files laying around.

Dave

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-08 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-05  3:32 [BK PATCH 0/3] Teach kbuild to pull files from BK repository David Dillow
2003-12-08  3:06 ` Ricky Beam
2003-12-08 15:12   ` David Dillow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).