Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1422394 > unrolled thread

[PATCH 0/4] scripts: add basic python version library and use it

Started by"Luis R. Rodriguez" <mcgrof@kernel.org>
First post2016-06-15 00:20 +0200
Last post2016-06-15 00:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/4] scripts: add basic python version library and use it "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-06-15 00:20 +0200

#1422394 — [PATCH 0/4] scripts: add basic python version library and use it

From"Luis R. Rodriguez" <mcgrof@kernel.org>
Date2016-06-15 00:20 +0200
Subject[PATCH 0/4] scripts: add basic python version library and use it
Message-ID<rK4QF-2oZ-11@gated-at.bofh.it>
This series depends on the last set of coccicheck enhancements which
add parmap support and indexing heuristics.

Coccinelle SmPL files may often require advanced grammar techniques not
available in older versions of Coccinelle. We can use --parse-cocci and
bail if a file does not parse, however this doesn't tell us anything about
requirements. An alternative approach is to specifically do a check for
a version of coccinelle.

Since checking for versions can be generic we can just write a python
library to do these sorts of checks for us, this allows us to provide
a generic kernel library for version checks for any binary. This adds
that and then makes use of it as an example within a coccinelle SmPL
file which require a later version of coccinelle.

Luis R. Rodriguez (4):
  coccicheck: propagate error and stop processing after first error
  scripts: add reqs python library
  coccicheck: enable use of the kernel's python library
  scripts/coccinelle: require coccinelle >= 1.0.4 on
    device_node_continue.cocci

 MAINTAINERS                                        |   1 +
 scripts/coccicheck                                 |   7 +
 .../iterators/device_node_continue.cocci           |  13 ++
 scripts/lib/__init__.py                            |   1 +
 scripts/lib/reqs.py                                | 211 +++++++++++++++++++++
 5 files changed, 233 insertions(+)
 create mode 100644 scripts/lib/__init__.py
 create mode 100644 scripts/lib/reqs.py

-- 
2.8.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web