summaryrefslogtreecommitdiff
path: root/src/ipa/vimc/data/meson.build
blob: 6532662cfa94db807b8499d59f163f48cf9aac8d (plain)
1
2
3
4
5
6
7
8
# SPDX-License-Identifier: CC0-1.0

conf_files = files([
    'vimc.conf',
])

install_data(conf_files,
             install_dir : join_paths(ipa_data_dir, 'vimc'))
d='n32' href='#n32'>32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#!/usr/bin/env python3
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020, Google Inc.
#
# Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
#
# ipa-gen-key.py - Generate the IPA module signing public key

import string
import subprocess
import sys


def main(argv):
    if len(argv) != 4:
        print('Usage: %s priv-key template output' % argv[0])
        return 1

    priv_key = argv[1]
    template = argv[2]
    output = argv[3]

    try:
        ret = subprocess.run(['openssl', 'rsa', '-pubout', '-in', priv_key,
                              '-outform', 'DER'],
                             stdout=subprocess.PIPE)
    except FileNotFoundError:
        print('Please install openssl to sign IPA modules')
        return 1

    ipa_key = ['0x%02x' % c for c in ret.stdout]