Re: [PATCH] /proc/config.gz (take #2)

Peter T. Breuer (ptb@it.uc3m.es)
Sun, 31 May 1998 10:58:27 +0200 (MET DST)


"A month of sundays ago Martin Mares wrote:"
>
> > And I don't understand the REDUCTION in kdata with my patch. But its
> > there.
>
> This is highly improbable. Can you test it again?

Improbable but possible. In any case, the size increase can't be more
than the order of magnitude of the extra data structure he introduced,
which was a struct < 1K. The code in the kernel was trivial. Two extra
function calls.

> > oldconfig: symlinks scripts/split-include
> > $(CONFIG_SHELL) scripts/Configure -d arch/$(ARCH)/config.in
> > if [ -r include/linux/autoconf.h ]; then \
> > scripts/split-include include/linux/autoconf.h include/config; \
> > fi
> > + $(MAKE) proconfig
>
> Is there any reason for not adding it at the end of split-include instead?

I'd have to take it out again for 2.0.*!

> > +makeproconfig: makeproconfig.c
> > + $(CC) makeproconfig.c -o makeproconfig
> > +
> > clean:
> > - rm -f *~ kconfig.tk *.o tkparse mkdep split-include
> > + rm -f *~ kconfig.tk *.o tkparse mkdep split-include makecloneconfig
>
> makecloneconfig -> makeproconfig

Was it? Oh well, probably. He also had a cloneconfig.

>
> Just move here drivers/sound/bin2hex.c and use it.

Good idea. I also just posted that the shell script

od -v -tx1 -w10 | cut -d' ' -f 2-11 | ( echo "unsigned char ucTable[]= {"; \
sed -e 's/[^ ][^ ]*/ 0x&,/g' ; echo "};" )

does the same thing. Note that this is not kernel code. Putting it in a
shell makes that more obvious.

> > +int get_proc_config(char *page) {
> > + memcpy(page,ucTable,sizeof(ucTable));
> > + return sizeof(ucTable);
> > +}
>
> What if it doesn't fit in a page?

Unlikely if a page is 4K. My config occupied 967 bytes (i.e.
compressed). Wake me when it doesn't fit!

> Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/
> Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
> "Mr. Worf, scan that ship." "Aye, Captain... 300 DPI?"

Peter ptb@it.uc3m.es

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu