logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Description

swugenerator  is  a  tool  running  on  host to create and modify SWUpdate's Update files (SWU). SWU file
       contains a meta description of the release  (sw-description),  and  swugenerator  adds  components  to  a
       template  passed from command line.  This tool requires openssl to run and to sign the SWU. It is goal of
       the tool to fill the gap with Yocto/OE, where SWU generation is done  by  classes  in  the  meta-swupdate
       layer, but other buildsystems like Debian or Buildroot have no tools to create a SWU.

       The  tool  signs  the SWU and can encrypt the artifacts. The tool parses the libconf based sw-description
       (tool does not work for JSON based sw-description) and provides the following features:

          • replace occurrencies of variables found in the CONFIG file

          • add sha256 to each artifact

          • check if an artifact should be encrypted and encrypts it

          • sign sw-description with one of the methods accepted by SWUpdate

          • pack all artifacts into a SWU file

                                                                                                  SWUGENERATOR()

Name

       swugenerator -

       A host tool to generate SWU update package for SWUpdate.

Synopsis

usage:SWUGenerator[-h][-KENCRYPTION_KEY_FILE][-kSIGN]-sSW_DESCRIPTION
              [-a ARTIFACTORY] -o SWU_FILE [-c CONFIG] command

       Generator SWU Packages for SWUpdate

       positionalarguments:
              command               command to be executed, one of : create

       optionalarguments:-h, --help
                     show this help message and exit

              -KENCRYPTION_KEY_FILE, --encryption-key-fileENCRYPTION_KEY_FILE
                     AES Key to encrypt artifacts

              -n, --no-compress
                     Do not compress files

              -kSIGN, --signSIGN
                     RSA key or certificate to sign the SWU

              -sSW_DESCRIPTION, --sw-descriptionSW_DESCRIPTION
                     sw-description template

              -t, --encrypt-swdesc
                     Encrypt sw-description

              -aARTIFACTORY, --artifactoryARTIFACTORY
                     list of directories where artifacts are searched

              -oSWU_FILE, --swu-fileSWU_FILE
                     SWU output file

              -cCONFIG, --configCONFIG
                     configuration file

See Also