From patchwork Wed Dec 4 09:40:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent McIntyre X-Patchwork-Id: 60460 Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1icR9S-00G6Hr-LT; Wed, 04 Dec 2019 09:40:54 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726508AbfLDJlE (ORCPT + 1 other); Wed, 4 Dec 2019 04:41:04 -0500 Received: from mail-lf1-f49.google.com ([209.85.167.49]:44960 "EHLO mail-lf1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbfLDJlD (ORCPT ); Wed, 4 Dec 2019 04:41:03 -0500 Received: by mail-lf1-f49.google.com with SMTP id v201so5543732lfa.11 for ; Wed, 04 Dec 2019 01:41:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=jbiXI6vS7d7EhfTynB3nTWNQczHrKIoPGqbiygTNF6o=; b=FnKnReY7BKwule+ObxnOA7HD2Y2HQAtERxyJdrXw6SXUzuBvmiL2yzX6q6ARzqhVIb HZKpZfcd2cPVjW4KfiQiNKEQiuT2ToFG0ym7Ry+OQXuianxcPQ1hpmlaL3hFk0BdDeey 8g2CPRQ/pzvYGyEKd17KtX+5xTS1fikXq4WCpt0kWr4hECOTUk7XYQte0ceOTw7LGWxP b2KuSMQKYpSh4GuOh5yLhgabcksoNLGon6MEVCXqARj0CqXjwPMV6YTwowlv9TTXRWfw F1JP4y3c1tRUSjHbtwNHmtAYwHmRHq/yGuIVQqIZw1k2xKbm/8LqR1h2UweGbMS+xdx1 uuJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=jbiXI6vS7d7EhfTynB3nTWNQczHrKIoPGqbiygTNF6o=; b=H6Vldy/yKO3lKneooExMeRg87kDFe3xuPhtMZeg3VZwC6PUnbG83NDVJ50IWoHhQ93 H5A3KWBpM6kpCcx+ON3pSxImS6dKh6c0uw7mo160xAA6DyIu80uBAlBjyU40RcwrmU3n fBjvY+cdRxSraNcHuRUWjwNNDhM88+G1+DNDo1axCW4oXtPjMav4cEUSBGkChOE4aogi lBHWFITo07WvAYm8eF1DE9oQLD0VxekgkLP3/QWokZwgibUZzvf2GgXQU8DMSEPwzBvx Z1suNrijvR4UgpPjJm6IyzA/JaxdkBTVC7o2zh9+Adx31EjnJuhGjyap7epjPYfO3nGM boaA== X-Gm-Message-State: APjAAAXdWKaAscJrinTveCk/xn20XX3dODZsVIrRscAcLJZT0CPVjp63 r2iJALKVaSpogyCfJnsROkFryuDV+jHXKFkWO4qE6w== X-Google-Smtp-Source: APXvYqwDILL23XisNDvfxogf6BSzpK51KV+7P/r+txZrTQ0xGLuXVd1FGZJxKUUo/yQ9vJne45kqCb17iFXVm6QsRfk= X-Received: by 2002:ac2:498e:: with SMTP id f14mr1497336lfl.172.1575452460600; Wed, 04 Dec 2019 01:41:00 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a19:ef0a:0:0:0:0:0 with HTTP; Wed, 4 Dec 2019 01:40:59 -0800 (PST) From: Vincent McIntyre Date: Wed, 4 Dec 2019 20:40:59 +1100 Message-ID: Subject: patchowork parsing issue? To: linux-media Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hello I've submitted this patch a couple of times: [PATCH] media_build: support building against a specific kernel I formatted it with git-format-patch and it makes it into patchwork: https://patchwork.linuxtv.org/patch/60186/ https://patchwork.linuxtv.org/patch/59979/ but it doesn't look right when it gets there. For some reason, the last hunk of the patch is included with the patch description. This was why I resent it the first time, I thought I must have messed up the formatting. Admittedly I'm sending from gmail's web interface but I have taken some care to get the text correctly formatted and patchwork did the same thing with it twice, so I'm starting to wonder if there's an issue with patchwork. I've attached my copy of the last outgoing email attempt in case that's useful. The only thing that looks suspicous to me is on the signed-off-by line I did not enclose my email address in '< >' markers, while that last hunk happens to have those characters in it. Kind regards Vince From vincent.mcintyre@gmail.com Fri Nov 15 22:11:14 2019 MIME-Version: 1.0 Received: by 2002:a19:905:0:0:0:0:0 with HTTP; Fri, 15 Nov 2019 03:11:14 -0800 (PST) Date: Fri, 15 Nov 2019 22:11:14 +1100 Delivered-To: vincent.mcintyre@gmail.com Message-ID: Subject: [PATCH] media_build: support building against a specific kernel. From: Vincent McIntyre To: linux-media Content-Type: text/plain; charset="UTF-8" Status: RO Content-Length: 2188 Lines: 73 I find it helpful to be able to build the linux-media modules for a kernel other than the one I am currently running. This is a resend of the patch that appeared at https://patchwork.linuxtv.org/patch/59979/ and completely supercedes that patch. There are no differences in the patch, just the formatting of the submission email. Signed-off-by: vincent.mcintyre@gmail.com --- build | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) @@ -579,6 +586,11 @@ depth parameter, in order to get a smaller tree. That helps to reduce disk storage and download time. +=item B<--version> [KERNELVERSION] + +Try to build for a particular kernel version. The format of the +version string is the same as the output from 'uname -r'. + =back =head1 DESCRIPTION diff --git a/build b/build index 2f6b3f4..c2067e7 100755 --- a/build +++ b/build @@ -14,6 +14,7 @@ my $check_only = 0; my $main_git = 0; my $depth; my @git; +my $kernel_version = ''; my $main_git_url = "git://linuxtv.org/media_tree.git"; my $main_branch = "master"; @@ -27,6 +28,7 @@ GetOptions('v|verbose' => \$level, 'main_git|main-git' => \$main_git, 'depth=i' => \$depth, 'git=s{2}' => \@git, + 'version=s' => \$kernel_version, ) or pod2usage(2); pod2usage(1) if $help; pod2usage(-exitstatus => 0, -verbose => 2) if $man; @@ -522,7 +524,12 @@ print "******************\n"; print "* Start building *\n"; print "******************\n"; -run("make allyesconfig", "can't select all drivers"); +if ($kernel_version =~ /\S/) { + print "Building for kernel version $kernel_version\n"; + run("make allyesconfig VER=$kernel_version", "can't select all drivers"); +} else { + run("make allyesconfig", "can't select all drivers"); +} run("make", "build failed"); print "**********************************************************\n"; @@ -539,7 +546,7 @@ build - Builds the media drivers without needing to compile a new kernel =head1 SYNOPSIS build [--help] [--man] [--verbose] [--check-only] [<--git> [URL] [BRANCH]] - [--main-git] [--depth [DEPTH]] + [--main-git] [--depth [DEPTH]] [--version [KERNELVERSION]] =head1 OPTIONS