[libcamera-devel] [PATCH 0/3] Unify utils locations

Kieran Bingham kieran.bingham at ideasonboard.com
Wed Sep 9 15:05:56 CEST 2020


Various utilities are scattered across the source trees, and are
declared as GPLv2.

Update the meson build to process the utils subdirectory first, giving
us a location where we can define our utilities in a common location.

Then move key generator scripts to the utils directory.

The scripts which handle module signing upon installation are not
handled in this series, as they currently expect to be run from their
current location, and external build systems may be currently
referencing from their current location too.

If this series is deemed useful/worthwhile we can tackle the
module-signing scripts.

also of interest is the definition of the gen-version command used by
the vcs_tag ... but the vcs tag function does not accept a 'files()'
list as it's command parameter, so it's not (yet) suitable to move that
variable declaration to utils/meson.build which had aimed to do.


Kieran Bingham (3):
  meson: Process utils first
  libcamera: Move Header generation utilities to utils
  libcamera: ipa: Move key generation to utils

 include/libcamera/meson.build               |  6 ------
 meson.build                                 |  4 +++-
 src/libcamera/meson.build                   |  3 ---
 src/meson.build                             |  1 -
 {src/libcamera => utils}/gen-controls.py    |  0
 {include/libcamera => utils}/gen-formats.py |  0
 {include/libcamera => utils}/gen-header.sh  |  0
 {src/ipa => utils}/gen-ipa-priv-key.sh      |  0
 {src/libcamera => utils}/gen-ipa-pub-key.py |  0
 utils/meson.build                           | 15 +++++++++++++++
 10 files changed, 18 insertions(+), 11 deletions(-)
 rename {src/libcamera => utils}/gen-controls.py (100%)
 rename {include/libcamera => utils}/gen-formats.py (100%)
 rename {include/libcamera => utils}/gen-header.sh (100%)
 rename {src/ipa => utils}/gen-ipa-priv-key.sh (100%)
 rename {src/libcamera => utils}/gen-ipa-pub-key.py (100%)

-- 
2.25.1



More information about the libcamera-devel mailing list