public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Oleg Verych <olecom@flower.upol.cz>
To: "Sam Ravnborg (kbuild list)" <linux-kbuild@vger.kernel.org>
Subject: source processing-friendly scripting
Date: Fri, 2 May 2008 13:25:54 +0200	[thread overview]
Message-ID: <20080502112554.GX24008@flower.upol.cz> (raw)
In-Reply-To: <20080502104211.GB20741@uranus.ravnborg.org>

Sam Ravnborg @ Fri, May 02, 2008 at 12:42:11PM +0200:
[]
> > ,-- Message-ID: <Pine.LNX.4.64.0702082335150.14457@scrub.home> --
> > |It would make casual kbuild hacking only even more difficult, as one has
> > |to check it works with the various shells.
> > `--
> This is still true. But we start to see a few more people reporting issues
> with non-standard Linux systems (busy-box, cygwin, sun) so there is a 
> need and there is a tester base.

Even if i will have my extended `sh` (as you may saw in dash list),
it's quite easy to make portability modules for any tools used.

But this is the case only if source/script is not a concrete -- i.e. is
written is the way friendly for text-processing tools, thus clear
plain-text transformations of source can be possible. This is not the
case of `make` and requires experience as in scripting as in design.

> And any strightforward looking patches will be applied - when eventual
> feedback has been incorporated.

I've shown readable `sed` for cases other than MIPS. MIPS requires
more cleanup of all that manual "#define" stuff.

,-- arch/mips/kernel/asm-offsets.c --
|        text("/* MIPS pt_regs offsets. */");
|        offset("#define PT_R0     ", struct pt_regs, regs[0]);
`--

Anyone, who wants to have some understanding of basic things:

* processing of plain text
* gcc/assembler generation
* kbuild

may take it and have ``fun''.

> I will not promise to check for non-linux compliance but testers are welcome.
> 
> 	Sam
____

  reply	other threads:[~2008-05-02 11:05 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-01  5:07 gcc 3.4.6 fails to build 2.6.25 due to offsetof() not digestible by gas sampo
2008-05-01 12:06 ` Adrian Bunk
2008-05-01 15:05   ` sampo
2008-05-01 16:34     ` Adrian Bunk
2008-05-01 16:38       ` sampo
2008-05-01 16:53         ` Adrian Bunk
2008-05-01 17:10           ` sampo
2008-05-01 18:53             ` `sed`ing asm-offsets (Re: gcc 3.4.6 fails to build 2.6.25 due to offsetof() not digestible by gas) Oleg Verych
2008-05-01 21:42               ` Sam Ravnborg
2008-05-01 21:52                 ` Oleg Verych
2008-05-01 22:54                 ` Oleg Verych
2008-05-01 19:17             ` gcc 3.4.6 fails to build 2.6.25 due to offsetof() not digestible by gas Adrian Bunk
2008-05-01 21:39               ` Sam Ravnborg
2008-05-01 22:07                 ` Adrian Bunk
2008-05-02  0:53                   ` sampo
2008-05-02  1:48                     ` Oleg Verych
2008-05-02  6:08                       ` Sam Ravnborg
2008-05-02 10:56                         ` Oleg Verych
2008-05-02 10:42                           ` Sam Ravnborg
2008-05-02 11:25                             ` Oleg Verych [this message]
2008-05-02  6:06                     ` Sam Ravnborg

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=20080502112554.GX24008@flower.upol.cz \
    --to=olecom@flower.upol.cz \
    --cc=linux-kbuild@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox