All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 18/37] docs/manual: add check-package to "Tips and tricks"
Date: Sun, 1 Apr 2018 23:03:49 +0200	[thread overview]
Message-ID: <20180401230349.7f6f7661@windsurf> (raw)
In-Reply-To: <5ac146b11189_68703fb01132093c86945@ultri4.mail>

Hello,

On Sun, 01 Apr 2018 17:53:05 -0300, Ricardo Martincoski wrote:

> > I'm not sure to understand what you mean by "does not check package
> > infra types". Do you mean that the code in package/pkg-*.mk is not
> > checked ? Or that it doesn't check the $(eval $(autotools-package))
> > line at the end of every package ?  
> 
> I meant package/pkg-*.mk and similar files.

OK, so "infra types" is not really the right word to express that.

> "and similar" because we have such files in bool/, fs/ and toolchain/ and the
> user can also have such files inside a br2-external.
> 
> What I am trying to state is that the script does not validate the language of
> any file in the tree or even any Makefile, it only checks for common mistakes in

I guess you wanted to say "does not validate the language of all files
in the tree". Your formulation means that the tool is not validating
any file!

> the standardized naming and style we use for variables declared in package files
> to be picked up by the package infra.
> 
> Maybe one of these?
> 
> "but it does not check package infra files."
> "but it does not check +package/pkg-*.mk+."
> "but it does not check +package/pkg-*.mk+ and similar files."
> "but it does not check files that define a package infra."
> "but it does not check files that define a package infra and not a
> package itself."
> "but it does not understand package infra files."
> "but it does not understand +package/pkg-*.mk+."
> "but it does not understand +package/pkg-*.mk+ and similar files."
> "but it does not understand files that define a package infra."
> "but it does not understand files that define a package infra and not a
> package itself."

Perhaps:

"""
It does not check the files defining the package infrastructures and
some other files containing similar common code.
"""

> >> +The tool can also be used for proprietary packages in a br2-external:  
> > 
> > I would say "external packages" or just "packages", because packages in
> > a br2-external are not necessarily proprietary.  
> 
> You are right.
> Just "packages" is more accurate.
> 
> >> +++ b/docs/manual/adding-packages.txt
> >> @@ -12,6 +12,8 @@ tuning their configuration.
> >>  When you add a new package, be sure to test it in various conditions;
> >>  see xref:testing-package[]
> >>  
> >> +Also check the new package for coding style; see xref:check-package[]  
> > 
> > Final dot ?  
> 
> OK. Nit: should we also add a final dot to the paragraph above?

Probably :)

> Or even join the two:
> 
> "
> When you add a new package, be sure to test it in various conditions
> (see xref:testing-package[]) and also check it for coding style
> (see xref:check-package[]).

I like this one.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-04-01 21:03 UTC|newest]

Thread overview: 124+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-31  2:22 [Buildroot] [PATCH 00/36] check-package: allow to check other directories v1 Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 01/36] check-package: prepare to extend to other directories Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 02/36] check-package: enable for arch/ and system/ Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 03/36] boot/*/*.mk: fix code style Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 04/36] check-package: enable for boot/ Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 05/36] fs/yaffs2: fix code style Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 06/36] fs/ubi: use namespace for internal variable Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 07/36] fs/*/*.mk: fix code style Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 08/36] check-package: enable for fs/ Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 09/36] linux/linux-ext-*.mk: fit file header into one line Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 10/36] linux/linux*.mk: fix code style Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 11/36] linux/linux.mk: use namespace for internal variables Ricardo Martincoski
2018-03-31  6:20   ` Thomas Petazzoni
2018-04-01  4:12     ` Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 12/36] check-package: enable for linux/ Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 13/36] toolchain/wrapper: fix code style Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 14/36] toolchain/toolchain.mk: " Ricardo Martincoski
2018-03-31  6:21   ` Thomas Petazzoni
2018-04-01  4:13     ` Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 15/36] check-package: enable for toolchain/ Ricardo Martincoski
2018-03-31  6:38   ` Thomas Petazzoni
2018-03-31  8:48     ` Arnout Vandecappelle
2018-04-01  4:29       ` Ricardo Martincoski
2018-04-01  4:16     ` Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 16/36] check-package: enable for Config.in* in base dir Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 17/36] docs/manual: add check-package to "Tips and tricks" Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 18/36] */Config.in*: remove consecutive empty lines Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 19/36] Config.in*: fix attributes order Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 20/36] arch/Config.in*: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 21/36] boot/*/Config.in: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 22/36] fs/*/Config.in: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 23/36] package/*/Config.in: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 24/36] toolchain/*/Config.in: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 25/36] Config.in*: re-wrap help text Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 26/36] arch/Config.in*: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 27/36] boot/*/Config.in: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 28/36] fs/*/Config.in: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 29/36] linux/Config.*: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 30/36] system/Config.in: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 31/36] toolchain/{*/Config.in, *.in}: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 33/36] package/*/Config.in: " Ricardo Martincoski
2018-03-31  2:22 ` [Buildroot] [PATCH 34/36] scanpypi: generate help text compliant to check-package Ricardo Martincoski
2018-03-31  2:23 ` [Buildroot] [PATCH 35/36] utils/checkpackagelib: exclude four files from Config.in indentation check Ricardo Martincoski
2018-03-31  2:23 ` [Buildroot] [PATCH 36/36] .gitlab-ci.yml: extend check-package test to Config.* files Ricardo Martincoski
2018-04-01  5:08 ` [Buildroot] [PATCH v2 00/37] check-package: allow to check other directories v2 Ricardo Martincoski
2018-04-01  5:08   ` [Buildroot] [PATCH v2 01/37] check-package: prepare to extend to other directories Ricardo Martincoski
2018-04-01  6:02     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 02/37] check-package: enable for arch/ and system/ Ricardo Martincoski
2018-04-01  6:03     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 03/37] boot/*/*.mk: fix code style Ricardo Martincoski
2018-04-01  5:55     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 04/37] check-package: enable for boot/ Ricardo Martincoski
2018-04-01  6:49     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 05/37] fs/yaffs2: fix code style Ricardo Martincoski
2018-04-01  5:55     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 06/37] fs/ubi: use namespace for internal variable Ricardo Martincoski
2018-04-01  6:42     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 07/37] fs/*/*.mk: fix code style Ricardo Martincoski
2018-04-01  6:42     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 08/37] check-package: enable for fs/ Ricardo Martincoski
2018-04-01  6:53     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 09/37] linux/linux-ext-*.mk: fit file header into one line Ricardo Martincoski
2018-04-01  6:46     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 10/37] linux/linux*.mk: fix code style Ricardo Martincoski
2018-04-01  6:46     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 11/37] linux/linux.mk: use namespace for internal variables Ricardo Martincoski
2018-04-01  6:46     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 12/37] check-package: enable for linux/ Ricardo Martincoski
2018-04-01  7:08     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 13/37] toolchain: merge toolchain-common.in to Config.in Ricardo Martincoski
2018-04-01  6:46     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 14/37] toolchain/wrapper: fix code style Ricardo Martincoski
2018-04-01  6:46     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 15/37] toolchain/toolchain.mk: " Ricardo Martincoski
2018-04-01  6:47     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 16/37] check-package: enable for toolchain/ Ricardo Martincoski
2018-04-01  7:10     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 17/37] check-package: enable for Config.in* in base dir Ricardo Martincoski
2018-04-01  7:12     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 18/37] docs/manual: add check-package to "Tips and tricks" Ricardo Martincoski
2018-04-01  7:16     ` Thomas Petazzoni
2018-04-01 20:53       ` Ricardo Martincoski
2018-04-01 21:03         ` Thomas Petazzoni [this message]
2018-04-01 21:51           ` Ricardo Martincoski
2018-04-01 22:31     ` [Buildroot] [PATCH v3 1/1] " Ricardo Martincoski
2018-04-01 22:43       ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 19/37] */Config.in*: remove consecutive empty lines Ricardo Martincoski
2018-04-01  6:48     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 20/37] Config.in*: fix attributes order Ricardo Martincoski
2018-04-01  7:12     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 21/37] arch/Config.in*: " Ricardo Martincoski
2018-04-01  6:02     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 22/37] boot/*/Config.in: " Ricardo Martincoski
2018-04-01  6:07     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 23/37] fs/*/Config.in: " Ricardo Martincoski
2018-04-01  6:53     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 24/37] package/*/Config.in: " Ricardo Martincoski
2018-04-01  8:15     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 25/37] toolchain/*/Config.in: " Ricardo Martincoski
2018-04-01  7:09     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 26/37] Config.in*: re-wrap help text Ricardo Martincoski
2018-04-01  7:12     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 27/37] arch/Config.in*: " Ricardo Martincoski
2018-04-01  6:02     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 28/37] boot/*/Config.in: " Ricardo Martincoski
2018-04-01  6:07     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 29/37] fs/*/Config.in: " Ricardo Martincoski
2018-04-01  6:53     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 30/37] linux/Config.*: " Ricardo Martincoski
2018-04-01  7:08     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 31/37] system/Config.in: " Ricardo Martincoski
2018-04-01  6:02     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 32/37] toolchain/*/Config.in: " Ricardo Martincoski
2018-04-01  7:09     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 33/37] qemu/Config.in.host: fix overindented depends on Ricardo Martincoski
2018-04-01  7:10     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 34/37] package/*/Config.in: re-wrap help text Ricardo Martincoski
2018-04-01  8:15     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 35/37] scanpypi: generate help text compliant to check-package Ricardo Martincoski
2018-04-01  8:16     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 36/37] utils/checkpackagelib: exclude four files from Config.in indentation check Ricardo Martincoski
2018-04-01  8:16     ` Thomas Petazzoni
2018-04-01  5:08   ` [Buildroot] [PATCH v2 37/37] .gitlab-ci.yml: extend check-package test to Config.* files Ricardo Martincoski
2018-04-01  8:17     ` Thomas Petazzoni

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=20180401230349.7f6f7661@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.