summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Parametrizable AKTUALIZR_PTEST_PARALLEL_LEVELLaurent Bonnans2019-04-291-2/+4
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Add openssl-bin as a aktualizr-ptest requirementLaurent Bonnans2019-04-291-1/+1
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Fix problem with lshw for aktualizr ptestLaurent Bonnans2019-04-291-2/+2
| | | | | | | | | | | | | | lshw is installed in `/usr/sbin` which does not appear when a command is launched outside a non-login shell. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Add oe-selftest for aktualizr ptest run on qemuLaurent Bonnans2019-04-292-2/+54
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * OTA-2418: Remove example.com URL from automated garage-sign usageMykhaylo Sul2019-04-292-2/+7
| | | | | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
| * Cleanup (not) provisioned checks in oe-selftestLaurent Bonnans2019-04-293-62/+33
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Solve qemu long rng initialization problemLaurent Bonnans2019-04-291-0/+2
| | | | | | | | | | | | Expose a fake hardware rng on the guest, linked to the host's /dev/urandom. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Add resource control testLaurent Bonnans2019-04-291-0/+45
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Fix in oe-selftests/qemu_launchLaurent Bonnans2019-04-292-20/+5
| | | | | | | | | | | | Should build `imagename` and not 'core-image-minimal' in all cases Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Split oe-selftests by target machinesLaurent Bonnans2019-04-296-275/+311
| | | | | | | | | | | | To allow for more targeted testing Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Document aktualizr-resource-controlLaurent Bonnans2019-04-291-0/+14
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Add aktualizr-resource-controlLaurent Bonnans2019-04-292-1/+31
| | | | | | | | | | | | For controlling systemd cgroups configuration of the aktualizr daemon Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Set 'allarch' to aktualizr config recipesLaurent Bonnans2019-04-2910-2/+20
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Save space in deployed aktualizr ptestLaurent Bonnans2019-04-291-2/+5
| | | | | | | | | | | | | | | | | | * remove whole RIOT repo * remove intermediary static libraries, only useful during build Should be around 500MB saving in total Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Document ptest for aktualizrLaurent Bonnans2019-04-291-0/+13
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * oe-selftest: look for expected error in stderr.Patrick Vacek2019-04-291-1/+1
| | | | | | | | | | | | The output was moved from stdout to stderr in a recent aktualizr commit. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Patch valgrind for rpi runsLaurent Bonnans2019-04-292-0/+254
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Depend on python3-modules and curl for aktualizr-ptestLaurent Bonnans2019-04-291-1/+1
| | | | | | | | | | | | | | For python: less headaches, it's already huge anyway. Curl is needed by some shell-backed tests. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Disable ptest for aktualizr by defaultLaurent Bonnans2019-04-291-0/+4
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Add working ptest suite for aktualizrLaurent Bonnans2019-04-292-1/+33
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * aktualizr: draft of enabling ptestPatrick Vacek2019-04-291-1/+6
| | | | | | | | | | | | | | | | | | Original work from Patrick. Laurent: dropped a patch for a change in aktualizr we now support directly Signed-off-by: Patrick Vacek <patrickvacek@gmail.com> Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Use 'printf' instead of 'echo -e'Laurent Bonnans2019-04-291-2/+2
| | | | | | | | | | | | Should be less surprising Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * wic:plugins:otaimage.py: fix a potential issueMing Liu2019-04-291-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | do_image_wic task is a standalone task that depending on do_image_ota_ext4, so it's possible that do_image_wic runs (taskhash contaminated) but do_image_ota_ext4 does not (taskhash not contaminated), in which case, the otaimage would be in DEPLOY_DIR_IMAGE instead of in IMGDEPLOYDIR, so we need check both of them. Also, the logger.error is not supposed to raise a error, it just prints out a error message, so we should use WicError. And another typo is it checks IMGDEPLOYDIR but reports DEPLOY_DIR_IMAGE not exist, also fix that. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * aktualizr: use echo -e when using escape sequencesStefan Agner2019-04-291-2/+2
| | | | | | | | | | | | | | | | | | Some shell require the -e argument when using escape sequences in echo. This has been observed when building images on a Fedora machine, where the configuration files ended up including "\n" sequences instead of newlines. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * Document GARAGE_SIGN_AUTOVERSIONLaurent Bonnans2019-04-261-0/+1
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Document necessary integration of network connectivityLaurent Bonnans2019-04-261-0/+2
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Replace connman with systemd-networkd on raspberrypiLaurent Bonnans2019-04-263-2/+5
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Define virtual/network-configurationLaurent Bonnans2019-04-269-9/+16
| | | | | | | | | | | | | | Now provided by connman and networkd-dhcp-conf, added to images in our supported platforms Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Replace connman with systemd-networkd on qemux86-64Laurent Bonnans2019-04-264-1/+30
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Remove connman* from base IMAGE_INSTALL_appendLaurent Bonnans2019-04-268-6/+7
| | | | | | | | | | | | | | No sense to force that if poky does not, let's move it to platform-specific for now. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * fit-conf: se PACKAGE_ARCH to ${MACHINE_ARCH}Ming Liu2019-04-261-0/+2
| | | | | | | | | | | | | | fit-conf should be a machine specific package instead of being a arch specific package. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * Simplify garage-sign fetching for aktualizrLaurent Bonnans2019-04-262-41/+8
| | | | | | | | | | | | | | | | | | Two modes: - `GARAGE_SIGN_AUTOVERSION=0`: use archive and version from aktualizr's recipe - `GARAGE_SIGN_AUTOVERSION=1`: let aktualizr fetching it automatically Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Move warning about insecure practise to the correct recipeStefan Agner2019-04-262-3/+4
|/ | | | | | | | When SOTA_DEPLOY_CREDENTIALS got introduced deployment of the provisioning credientials has been moved to aktualizr-ca-implicit-prov-creds. Move the warning accordingly. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* Merge pull request #497 from advancedtelematic/backport/thud/auto-reboot-etcPatrick Vacek2019-02-2715-49/+59
|\ | | | | Backport/thud/auto reboot etc
| * README: document auto-reboot config feature.backport/thud/auto-reboot-etcPatrick Vacek2019-02-272-1/+2
| | | | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com> Suggested-by: Ben Luck <benjamin.luck@here.com>
| * updater.py: remove test_add_package.Patrick Vacek2019-02-261-29/+0
| | | | | | | | | | | | | | | | It was a nice idea when we were less confident about bitbaking and oe-selftest, but at this point, it is redundant and provides no useful information while adding extraneous time to the already long test suite. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Reformat default bblayers.Patrick Vacek2019-02-267-15/+17
| | | | | | | | | | | | | | Put each item on its own line to make versioning and manual modififcation easier going forward. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Switch to the aktualizr's master headMike Sul2019-02-261-1/+1
| | | | | | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
| * aktualizr-auto-prov-creds: remove API Gateway URL if it exists.Patrick Vacek2019-02-261-1/+6
| | | | | | | | | | | | It will only be used by garage-sign. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * image_types_ostree: Add a unique ref to fix simultaneous bitbaking.Patrick Vacek2019-02-262-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | To enable simultaneous bitbaking of two images with the same branch name, create a new ref in the OSTree repo using the basename of the image. As @OYTIS has pointed out, this probably won't solve every problem that might come up with simultaneous bitbaking, such as if the two images use different bootloaders. However, it does solve the immediate problem that comes up with our primary-image + secondary-image example. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * OTA-2135: Aktualizr's config and recipe to auto reboot just after updateMike Sul2019-02-262-0/+23
|/ | | | Signed-off-by: Mike Sul <mykhaylo.sul@innoteka.com>
* Merge pull request #488 from ↵Patrick Vacek2019-02-201-1/+1
|\ | | | | | | | | advancedtelematic/bugfix/OTA-1436/thud-secondary-results Bump aktualizr (thud)
| * Bump aktualizrbugfix/OTA-1436/thud-secondary-resultsLaurent Bonnans2019-02-191-1/+1
|/ | | | | | | To 2aa9d93ccea09ec327789eecf858de561ef632da, which changed the installation result reporting format Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Merge pull request #479 from ↵Patrick Vacek2019-02-1522-280/+111
|\ | | | | | | | | advancedtelematic/backport/thud/garage-sign-lock-etc Backport/thud/garage sign lock etc
| * Merge branch 'master' of https://github.com/advancedtelematic/meta-updater ↵backport/thud/garage-sign-lock-etcPatrick Vacek2019-02-1422-280/+111
|/| | | | | | | into backport/thud/garage-sign-lock-etc
| * Merge pull request #469 from liuming50/fix-wrong-operatorPatrick Vacek2019-02-121-1/+1
| |\ | | | | | | sota.bbclass: fix a variable assignment regression
| | * sota.bbclass: fix a variable assignment regressionMing Liu2019-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A regression was introduced by commit 9dcfcdb9: [ classes, images: Use standard variables for initramfs ] it replaced OSTREE_INITRAMFS_IMAGE with INITRAMFS_FSTYPES which is fine, but the '??=' should be changed to "?=" as well, or else it will not take effect since INITRAMFS_FSTYPES's already set in bitbake.conf with '?='. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | Merge pull request #470 from liuming50/aktualizr-pkgconfiglbonn2019-02-071-52/+44
| |\ \ | | | | | | | | Master aktualizr pkgconfig
| | * | aktualizr: split binaries to their own packagesMing Liu2019-02-061-32/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch mainly aims to fix the following issues: - ${libdir}/sota/conf.d is being put into aktualizr package, but ${libdir}/sota/*.toml is being put into aktualizr-host-tools, this does not make sense, if a end user only install aktualizr-host-tools to a target, he will miss the config files in ${libdir}/sota/conf.d. - A user should be able to install garage-deploy garage-push to a board if he wants to do that by choosing building aktualizr with sota-tools, but now it's not in that case, garage-deploy garage-push are only available for native. - It's not necessary to distinguish native/target when installing systemd services, they will be dropped by sstate from native sysroot any way. - It would be better that all binaries to be put into their own packages, so a end user can choose to install a package only with one binary, rather than having to install the entire aktualizr-host-tools. Introduce per-binary based packages for host tools, and gather all config files to aktualizr-configs, it will be depended by binary packages and main aktualizr package. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| | * | aktualizr: introduce PACKAGECONFIGMing Liu2019-02-061-24/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several flaws in current aktualizr recipe: - It builds with 'BUILD_SYSTEMD=ON' by default but does not set DEPENDS to systemd, this is not leading to compilation errors so far because systemd is deployed into recipe sysroot by ostree if 'systemd' exists in DISTRO_FEATURES, but in other cases, it will cause compilation errors. - GARAGE_SIGN_SHA256 is being passed to EXTRA_OECMAKE even it's not set anythere, this will lead a wrong GARAGE_SIGN_SHA256_ARG to be set in cmake files. - pkgconfig is being called in aktualizr CMakeFile, so it needs inherit pkgconfig.bbclass To fix the above flaws, meanwhile to keep the code cleaner, we introduce PACKAGECONFIG to handle the configurations. Signed-off-by: Ming Liu <liu.ming50@gmail.com>