From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [cbootimage PATCH 1/1] Add Tegra124 support Date: Mon, 26 Aug 2013 11:01:36 -0600 Message-ID: <521B89F0.2000704@wwwdotorg.org> References: <1377229591-21235-1-git-send-email-pchiu@nvidia.com> <5217B267.3030205@wwwdotorg.org> <20130826074700.GA31726@ulmo> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130826074700.GA31726@ulmo> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Thierry Reding Cc: Penny Chiu , amartin-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org, swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-tegra@vger.kernel.org On 08/26/2013 01:47 AM, Thierry Reding wrote: > On Fri, Aug 23, 2013 at 01:05:11PM -0600, Stephen Warren wrote: >> On 08/22/2013 09:46 PM, Penny Chiu wrote: >>> Add the Tegra124 chip support to cbootimage. User can use "-t124" as >>> option to parse .cfg and generate BCT/image for Tegra124. >> >> This looks fine to me at a quick glance. Just one small comment below: >> >>> diff --git a/src/cbootimage.c b/src/cbootimage.c >> >>> printf("Usage: cbootimage [options] configfile imagename\n"); >>> printf(" options:\n"); >>> - printf(" -h, --help, -? Display this message.\n"); >>> - printf(" -d, --debug Output debugging information.\n"); >>> - printf(" -gbct Generate the new bct file.\n"); >>> - printf(" -o Specify the odm_data(in hex).\n"); >>> - printf(" [-t20|-t30|-t114] Select one of the possible target devices,\n"); >>> - printf(" -t20 if unspecified.\n"); >>> - printf(" configfile File with configuration information\n"); >>> - printf(" imagename Output image name\n"); >>> + printf(" -h, --help, -? Display this message.\n"); >>> + printf(" -d, --debug Output debugging information.\n"); >>> + printf(" -gbct Generate the new bct file.\n"); >>> + printf(" -o Specify the odm_data(in hex).\n"); >>> + printf(" [-t20|-t30|-t114|-t124] Select one of the possible target devices,\n"); >>> + printf(" -t20 if unspecified.\n"); >>> + printf(" configfile File with configuration information\n"); >>> + printf(" imagename Output image name\n"); >>> } >> >> To avoid continually re-formatting that text when adding new SoCs, why >> not start the description of the -tNN options on a separate line, and >> leave the indentation as-is for all the unmodified lines. i.e.: >> >>>> + printf(" [-t20|-t30|-t114|-t124]\n"); >>>> + printf(" Select one of the possible target devices,\n"); >>>> + printf(" -t20 if unspecified.\n"); > > Perhaps in the long run it would be better to turn this into something > like: > > printf(" -t, --target SOC Select target device. Must be one of:\n"); > printf(" 20, 30, 114, 124 (default: 20)\n"); I don't like the idea of "--target 20", since "20" isn't an SoC name; it's "tegra20" or just perhaps "t20". I'd be fine with a patch that allowed "-SOC" or "--target SOC", with SOC being "t20", "t30", ...