From: Hui Zhu <teawater@gmail.com>
To: Michal Marek <mmarek@suse.cz>
Cc: "Hui Zhu" <hui.zhu@windriver.com>,
"Américo Wang" <xiyou.wangcong@gmail.com>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Arjan van de Ven" <arjan@linux.intel.com>,
"Sam Ravnborg" <sam@ravnborg.org>,
ozan@pardus.org.tr, "Matthew Wilcox" <willy@linux.intel.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] markup_oops.pl: add options to improve cross-sompilation environments
Date: Mon, 8 Feb 2010 10:55:44 +0800 [thread overview]
Message-ID: <daef60381002071855m7a5d6d2cg7b9a9a48b6aef20e@mail.gmail.com> (raw)
In-Reply-To: <4B6C8FF0.3090106@suse.cz>
Hi Michael,
Looks you miss this one:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ef2b9b054580ef835078d8aa411bd06542cd5c1c
Thanks,
Hui
On Sat, Feb 6, 2010 at 05:38, Michal Marek <mmarek@suse.cz> wrote:
> On 1.2.2010 06:41, Hui Zhu wrote:
>> I make a patch according to your mail.
>>
>> Best regards,
>> Hui
>>
>> 1. Fix a little format issue.
>> 2. Check the return of "Getopt::Long::GetOptions". Output usage and
>> exit if it get error.
>> 3. Change $ARGV[$#ARGV] to $ARGV[0].
>> 4. Change the code which get $modulefile from modinfo. Replace the
>> pipeline with `modinfo -F filename $module`.
>> 4. Change usage from "Specify the module directory name" to "Specify the
>> module filename".
>>
>> Signed-off-by: Hui Zhu <teawater@gmail.com>
>
> Thanks, I applied the previous and this patch. Just to make sure I
> didn't miss any of your patches, can you check that
> http://repo.or.cz/w/linux-kbuild.git/blob/refs/heads/for-next:/scripts/markup_oops.pl
> has all your changes? If something is missing, please resend it, thanks.
>
> Michal
>
>> ---
>> scripts/markup_oops.pl | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> --- a/scripts/markup_oops.pl
>> +++ b/scripts/markup_oops.pl
>> @@ -23,10 +23,10 @@ my $modulefile = "";
>> # Get options
>> Getopt::Long::GetOptions(
>> 'cross-compile|c=s' => \$cross_compile,
>> - 'module|m=s' => \$modulefile,
>> + 'module|m=s' => \$modulefile,
>> 'help|h' => \&usage,
>> -);
>> -my $vmlinux_name = $ARGV[$#ARGV];
>> +) || usage ();
>> +my $vmlinux_name = $ARGV[0];
>> if (!defined($vmlinux_name)) {
>> my $kerver = `uname -r`;
>> chomp($kerver);
>> @@ -193,7 +193,7 @@ if ($target eq "0") {
>> # if it's a module, we need to find the .ko file and calculate a load
>> offset
>> if ($module ne "") {
>> if ($modulefile eq "") {
>> - my $modulefile = `modinfo $module | grep '^filename:' | awk '{
>> print \$2 }'`;
>> + $modulefile = `modinfo -F filename $module`;
>> chomp($modulefile);
>> }
>> $filename = $modulefile;
>> @@ -361,7 +361,7 @@ Usage:
>>
>> OPTION:
>> -c, --cross-compile CROSS_COMPILE Specify the prefix used for
>> toolchain.
>> - -m, --module MODULE_DIRNAME Specify the module directory name.
>> + -m, --module MODULE_DIRNAME Specify the module filename.
>> -h, --help Help.
>> EOT
>> exit;
>>
>>
>
>
next prev parent reply other threads:[~2010-02-08 2:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 3:11 Hui Zhu
2010-01-26 3:05 ` Américo Wang
2010-01-26 7:38 ` Hui Zhu
2010-01-26 7:53 ` Américo Wang
2010-01-26 9:13 ` Hui Zhu
2010-01-26 9:15 ` Américo Wang
2010-01-26 9:21 ` Hui Zhu
2010-01-29 20:27 ` Michal Marek
2010-02-01 5:41 ` Hui Zhu
2010-02-05 21:38 ` Michal Marek
2010-02-08 2:55 ` Hui Zhu [this message]
2010-02-17 13:08 ` Michal Marek
2010-02-20 2:16 ` Hui Zhu
-- strict thread matches above, loose matches on Subject: below --
2010-01-25 14:36 Hui Zhu
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=daef60381002071855m7a5d6d2cg7b9a9a48b6aef20e@mail.gmail.com \
--to=teawater@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=arjan@linux.intel.com \
--cc=hui.zhu@windriver.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
--cc=ozan@pardus.org.tr \
--cc=sam@ravnborg.org \
--cc=willy@linux.intel.com \
--cc=xiyou.wangcong@gmail.com \
/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
all inboxes | Powered by JetHome®