1. 14 Dec, 2019 1 commit
    • Stefano Babic's avatar
      Check for fetched URLs before adding to SWU · c6634ee0
      Stefano Babic authored
      
      
      There are cases where the fetched URLs are retrieved from a repo. Files
      cannot be copied as they are and must be evaluated in the recipe. IOne
      use case is if the sw-description is fetched from a git repo instead of
      beeing stored on a local file. The check vrifies that the fetched URL is
      a file before copying it.
      
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      c6634ee0
  2. 02 Dec, 2019 2 commits
  3. 18 Nov, 2019 1 commit
  4. 16 Nov, 2019 1 commit
  5. 15 Nov, 2019 2 commits
  6. 10 Nov, 2019 3 commits
    • Reto Schneider's avatar
      Remove multiple after keywords · 99152530
      Reto Schneider authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This fixes the follwing warning:
       addtask contained multiple 'after' keywords, only one is supported
      
      Signed-off-by: default avatarReto Schneider <reto.schneider@husqvarnagroup.com>
      99152530
    • Adrian Freihofer's avatar
      swupdate: simplify find images added to swu · b6534bbc
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      
      
      Try to make the swupdate.bbclass a little bit smarter in finding the
      image files added to the swu archive. The implementation is also a bit
      more Yocto like. By default, files are searched automatically whereas
      MACHINE specific files get priority over files without the MACHINE in
      the filename.
      This makes the SWUPDATE_IMAGES_NOAPPEND_MACHINE VarFlag more optional.
      Most standard use cases are expected to "just work" without setting
      this flag.
      
      Add support for files in a sub-folder of DEPLOY_DIR_IMAGE.
      
      Add documentation to the header of the swupdate.bbclass file.
      
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
      b6534bbc
    • Stefano Babic's avatar
      swupdate: improve systemd config · 135d46bc
      Stefano Babic authored
      
      
      For most projects starting swupdate requires some logic implemented
      in shell scripts. Therefore swupdate is now started by a shell script
      if systemd is enabled in DISTRO_FEATURES.
      
      The new swupdate startup script sources code snippets located in
      /usr/lib/swupdate/conf.d and in /etc/swupdate/conf.d. The snippets are
      executed in alphabetical order. The idea is that files in /usr are added
      at build time and files in /etc might be added or modified at run-time.
      If two scripts, one in /etc and one in /usr have the same file name, the
      script in /usr gets skipped completely. This allows to disable code in
      /usr, which is probably mounted ro, at runtime.
      
      Code snippets are automatically generated at build-time, depending on
      the configuration created by swupdate's menuconfig. But code snippets
      may be created manually and added via bbappend to the
      /usr/lib/swupdate/conf.d folder as well.
      
      All modes (file, webserver, webclient) of swupdate are supported.
      Different variables might be defined by the code snippets added to the
      named folders:
      - SWUPDATE_ARGS
      - SWUPDATE_WEBSERVER_ARGS
      - SWUPDATE_DOWNLOAD_ARGS
      
      Finally swupdate gets started by a line similar to:
      
        exec /usr/bin/swupdate $SWUPDATE_ARGS \
                               -w "$SWUPDATE_WEBSERVER_ARGS" \
                               -u "$SWUPDATE_DOWNLOAD_ARGS"
      
      The default set of configuraton and service files is now installed by
      the "make install" target of the swupdate Makefile. The service files
      which are not used for the latest git version of swupdate are moved
      to swupdate-2019.04 folder.
      
      Fixes in do_install
      - This changes the filenames of the tools binaries for several reasons:
        - Binaries should not be named "client" or "progress"
          (also not accepted by Debian upstream)
        - Inconsistent with names referred in the service files
      - The swupdate_tools.inc file gets merged into swupdate.inc file. By
        removing the tools file some bugs are fixed:
        - The tools binaries were installed twice.
        - do_compile from swupdate.inc was over written resulting in wired
          behavior
        - swupdate-progress.service file was part of swupdate package were
          the corresponding swupdate-progress binary was part of the tools
          package.
      
      Improve package splitting
      - New packages are: swupdate-client, swupdate-progress, swupdate-usb,
        swupdate-tools-hawkbit.
      - Additionally swupdate-sd, swupdate-sv, swupdate-usb-sd and
        swupdate-progress-sd have been introduced. The purpose of the -sd
        and -sv packages is to provide the systemd service files or the
        sysv init scripts. Splitting the init scripts and service files is
        very atypical for Yocto, but it offers the flexibility to build a
        second minimal rescue image with sysv, just capable to run swupdate,
        out of the same DISTRO.
        By default (if not changed by a bbappend file) the rdepends are
        set e.g. from swupdate-usb to swupdate-sd, if systemd is enabled.
      - The swupdate-tools package is an empty meta package now. It provides
        backward compatibility for setups installing swupdate-tools. It
        depends on swupdate-client, swupdate-progress, swupdate-usb,
        swupdate-tools-hawkbit packages.
      
      Remove the INSANE_SKIP_${PN} = "ldflags". Seems obsolete.
      
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      135d46bc
  7. 29 Oct, 2019 4 commits
    • Adrian Freihofer's avatar
      swupdate: bump git srcrev · 9f1d8a6c
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      This includes the following changes:
      
      045a618 raw_handler: handle ro block devices
      5700346 Makefile: rename tools binaries
      48f22c6 add .editorconfig file
      e5e7e02 doc: describe REST api
      75985aa Add Kconfig option for new systemd files
      bdc1d3c systemd generic startup
      16790d1 doc: fix broken link for talks
      7c8926d ssbl_handler: fix age comparison
      f130541 travis: set libwebsockets version
      9409e9a Prepare 2019.11-rc1
      d8d9fd4 handler: add a copy handler
      21594da Add SSBL Handler
      34c55f1 handlers: sort the list of modules in Makefile
      ede66e7 doc: add scenarios how to use SWUpdate
      a5e82b9 doc: add links to single and double copy scenarios
      c744dfe Cosmetic: rename entry points in raw handler
      864dedd raw handler: return error number instead of -1
      e38ad73 handler: push progress status from bootloader handler
      cfaec8c u-boot handler: fix removing variable
      27c40c43
      
       doc: ELC video published on YouTube
      07811c7 swupdate: add pre-update command hook
      da974cd doc: update list of talks with ELC 2019
      
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
      9f1d8a6c
    • Adrian Freihofer's avatar
      swupdate git define PV · 31d22095
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      
      
      The devtool workflow does not work without setting PV properly.
      
      To prefer the git version add the following line to the distro config:
        PREFERRED_VERSION_swupdate = "2019.04+git%"
      
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
      31d22095
    • Adrian Freihofer's avatar
      libubootenv: git define PV · ef7ab199
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      
      
      The devtool workflow does not work without setting PV properly.
      
      To prefer the git version add the following line to the distro config:
        PREFERRED_VERSION_libubootenv = "0.1+git%"
      
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
      ef7ab199
    • Adrian Freihofer's avatar
      libubootenv: bump git srcrev · a13faf75
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      9294981 handle protected mmcblk_boot_ devices
      ac6d18a add missing includes
      8106b65 add .editorconfig file
      3286c57 CMakeLists: fix build with old compilers
      4d05047 Merge pull request #3 from lamby/reproducible-build
      d63e76f Make the build reproducible
      
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
      a13faf75
  8. 28 Oct, 2019 1 commit
  9. 14 Oct, 2019 1 commit
  10. 08 Oct, 2019 1 commit
  11. 18 Sep, 2019 1 commit
    • Pierre-Jean Texier' via swupdate's avatar
      swupdate: bump git srcrev · ebd88fe3
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      a8d4538 bootloader transaction marker: allow to disable globally via cmdline
      c3ef374 Change license for Logo
      e06c7d9 lua: export swupdate_progress_update
      4f41d74 parser: allow skip for bootenv
      6144c27 Stream the SWU in a file chosen in sw-description
      c533766 parser: added output attribute
      3947e88 util: add macro to align a buffer
      a49c1d9 cpio: export get_cpiohdr function
      c704549 Add tests for the TLS code
      edd5691 bootloader: fix typo
      911bf46 Add cpp guards in IPC interface
      d9a61e9 doc: fix WARNING: Title underline too short.
      07bebd9 parser: support hook for bootloader entries
      685ea77 doc: update talks list with LinuxLab 2018
      
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
      ebd88fe3
  12. 27 Aug, 2019 1 commit
  13. 04 Aug, 2019 1 commit
  14. 29 Jul, 2019 2 commits
    • Pierre-Jean Texier' via swupdate's avatar
      libubootenv: bump git srcrev · bebed43f
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      9e121d4 uboot_env: fix print format of type size_t
      6c623d1 uboot_env: add ubi volume support
      8feae6a uboot_env: add a flag to manage device type
      65ae5fe uboot_env: don't accept MTD_DATAFLASH and MTD_UBI_VOLUME
      2c36d07 uboot_env: nand: fix return of devwrite
      a1744ab uboot_env: nand: fix return of devread
      
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
      bebed43f
    • Pierre-Jean Texier' via swupdate's avatar
      swupdate: bump git srcrev · 56a1a579
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      d3c0bfa Add mbedtls as an alternative SSL implementation
      76f5e4b rdiff_handler: remove WARN in case of missing EOF
      49354e8 rdiff_handler: fix compressed / encrypted delta
      44a6d09 rdiff_handler: differentiate TRACE in fill_inbuffer
      72be778 add attribute install-if-higher
      54426aa handles: ubivol: add property auto-resize
      439ca54 handlers: ubivol: create a function resize_volume
      3917b1c swuforward: drop support for V1 Website
      0e6a1bc hw compatibility check: add regexp support
      4fc82ee swupdate: drop unnecessary strlen check
      c2ef97d parser: check_missing_hash: use flag NO_DATA_HANDLER
      1ffdf8b swupdate: check_provided: use flag NO_DATA_HANDLER
      e7d22e7 handler: ubivol: set flag NO_DATA_HANDLER
      940317f handlers: add a special handler flag NO_DATA_HANDLER
      8c9618a rsa signature: add support of rsa-pss
      77b05c5 Name of a running handler is never updated in the progress_msg
      327a967 doc: Update sw-description documentation (remove ',' in the examples)
      5a36f09 webserver: pass user_data to the upload handler in the case of an error
      d7424cb Add more config options to debian_defconfig
      81ab86c parser: don't check hash for image of type ubiswap
      467dd6e handlers: ubiswap: may swap several ubi volume
      ff17986 scripts: a file is no longer required
      720cf6d travis: update to bionic
      
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
      56a1a579
  15. 03 Jul, 2019 3 commits
    • Pierre-Jean Texier' via swupdate's avatar
      libubootenv: bump git SRCREV · 8799e48a
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      88de5d2 uboot_env: access_tostring: fix write once flag
      41999c9 README: rework README file
      a0ec01c doc: add Buildroot support
      5af2a3b uboot_env: fix comment typo
      43d6707 uboot_env: remove <pthread.h> header file
      6d2abc6 flags are not parsed when environment is loaded
      728f047 uboot_env: fix compilation for glibc version >= 2.28
      539796c uboot_env: fix build with musl libc
      8c07bf0 License: add license file
      
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
      8799e48a
    • Pierre-Jean Texier' via swupdate's avatar
      swupdate: add DEPENDS for SWUforwader · 46c81c90
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      
      
      Check if libwebsockets, uriparser & curl are required
      
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
      Tested-by: default avatarJoris Offouga <offougajoris@gmail.com>
      46c81c90
    • Pierre-Jean Texier' via swupdate's avatar
      swupdate: bump git srcrev · ec73a561
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      9ce9434 Remove the superfluous salt parameter
      8ef2946 tools: swupdate-sysrestart to restart system
      ecc9bf3 swuforward: rework to use new Website
      7e696fc util: add function to get a substring from a string
      2211234 Put the UDS in the directory pointed by TMPDIR
      d69ffc5 progress: allow to pass the UDS in the connection
      db80704 handlers: shell scripts: fix typo in postinstall function
      cc68fff configs: add a test config for ucfw handler
      c7dcf13 doc: handlers: ucfw: improve description
      f1c8fff /core/swupdate.c: dynamic memory allocation for downloader, suricatta and webserver options
      f811c91 u-boot: fix script format when !CONFIG_UBOOT_NEWAPI
      ee17493 Lua: fix segfault in image property handling
      
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
      ec73a561
  16. 31 May, 2019 2 commits
  17. 17 May, 2019 2 commits
  18. 30 Apr, 2019 4 commits
  19. 23 Apr, 2019 2 commits
  20. 18 Apr, 2019 2 commits
  21. 12 Apr, 2019 1 commit
  22. 08 Apr, 2019 1 commit
  23. 04 Apr, 2019 1 commit