9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] kernel mk
@ 2004-05-29 23:12 boyd, rounin
  2004-05-29 23:29 ` Russ Cox
  2004-05-29 23:35 ` Geoff Collyer
  0 siblings, 2 replies; 4+ messages in thread
From: boyd, rounin @ 2004-05-29 23:12 UTC (permalink / raw)
  To: 9fans

one thing i have never understood is why i need to:

    mk 'CONF=foo' foo

why can't i?

    mk foo

or just:

    mk

with some default variable in the mkfile?



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

* Re: [9fans] kernel mk
  2004-05-29 23:12 [9fans] kernel mk boyd, rounin
@ 2004-05-29 23:29 ` Russ Cox
  2004-05-29 23:34   ` boyd, rounin
  2004-05-29 23:35 ` Geoff Collyer
  1 sibling, 1 reply; 4+ messages in thread
From: Russ Cox @ 2004-05-29 23:29 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> or just:
>
>     mk
>
> with some default variable in the mkfile?

you can, as long as the default is the one
you want to compile.

as to why you have to say mk 'CONF=pcf' instead
of mk 9pcf when the default isn't right, i think i
tried to remove this once and the metarules you'd have
to write end up applying to too much.

russ


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

* Re: [9fans] kernel mk
  2004-05-29 23:29 ` Russ Cox
@ 2004-05-29 23:34   ` boyd, rounin
  0 siblings, 0 replies; 4+ messages in thread
From: boyd, rounin @ 2004-05-29 23:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> of mk 9pcf when the default isn't right, i think i
> tried to remove this once and the metarules you'd have
> to write end up applying to too much.

my findings exactly.

damn ec2t doan work, but i'll play with it tomorrow.

being able to type azerty is a big win.  in fact i found
myself typing qwerty on it.

i would suggest that kbmap, if it exixts, be bound, by default, to /dev



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

* Re: [9fans] kernel mk
  2004-05-29 23:12 [9fans] kernel mk boyd, rounin
  2004-05-29 23:29 ` Russ Cox
@ 2004-05-29 23:35 ` Geoff Collyer
  1 sibling, 0 replies; 4+ messages in thread
From: Geoff Collyer @ 2004-05-29 23:35 UTC (permalink / raw)
  To: 9fans

You don't have to; I type

	mk			# build 9pc
	mk 'CONF=pccpu'		# build 9pccpu
	mk 'CONFLIST=pc pccpu' all # build both
	mk all			# build all kernels

The reason you can't just type

	mk 9pccpu

is that there would have to already be a mkfile target named `9pccpu',
so adding a new kernel configuration would require editing the kernel
mkfile.  The use of CONF and CONFLIST allows mk to construct the
necessary rules on the fly:

$p$CONF:	$CONF.c $OBJ $LIB
	$CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
	$LD -o $target -T0x80100020 -l $OBJ $CONF.$O $LIB
	size $target


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

end of thread, other threads:[~2004-05-29 23:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-29 23:12 [9fans] kernel mk boyd, rounin
2004-05-29 23:29 ` Russ Cox
2004-05-29 23:34   ` boyd, rounin
2004-05-29 23:35 ` Geoff Collyer

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