It will need a little bit of shell-script and/or Makefile magic, but I don't
see any problem to call sed from a Makefile to change the vmlinux.lds to do
the right thing.
Basically it's something like
new_val = $(shell cat ../include/linux/autoconf.h|grep CONFIG_MAXMEM| sed s/CONFIG_MAXMEM = \(0x?00000000\)/\1/ | sed /^#/d)
vmlinux.lds: ../include/linux/autoconf.h
<TAB> sed s/0x?0000000/$new_val/ <vmlinux.lds >vmlinux.new
<TAB> mv vmlinux.lds vmlinux.old
<TAB> mv vmlinux.new vmlinux.lds
in the arch/i386/Makefile.
Maybe somebody will dislike the need for sed and grep to built a kernel.
Well, a perl or a TCL script could do as well ...
> With my patch, the relevant option allows the user to set any
> hexadecimal digit in the range 4 through D as the replacement for the
> dot in your example, but there's no simple means to reflect that value
> into vmlinux.lds that I'm aware of, hence my query in this respect. I
> never did see your answer to that query, so if you could repeat it,
> it'd be much appreciated...
Nice. I didn't pick up your patch last time, so maybe you can send it to me?
(Don't CC: to l-kernel ...)
I will make the vmlinux.lds thing work.
Regards,
-- Kurt Garloff <kurt@garloff.de> [Dortmund, FRG] Plasma physics, high perf. computing [Linux-ix86,-axp, DUX] PGP key on http://www.garloff.de/kurt/ [Linux SCSI driver: DC390]- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/