summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* oe-selftest.sh: This also now requires setting git identity.fix/sota-bleeding-nativePatrick Vacek2020-02-271-0/+4
| | | | | | Not sure why this only started cropping up now. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Manually set a git identity in CIfix/git-repo-idLaurent Bonnans2020-02-121-0/+4
| | | | | | repo cannot do without right now Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Remove a debug print in qemucommand.pyfix/rm-debug-printLaurent Bonnans2020-02-061-1/+0
| | | | | | Was missed during review Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix default uboot-enable variable in qemu command scriptfeat/OTA-2937/non-ostree-buildKostiantyn Bushko2020-01-232-2/+2
| | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
* build and run image without ostree support for qemux86-64Kostiantyn Bushko2020-01-203-17/+53
| | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
* fix issue with attr error for host_forwardfeat/qemu-cmd-args/port-forwardingKostiantyn Bushko2020-01-141-1/+1
| | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
* run-qemu-ota: passing hostfwd as command line argumentKostiantyn Bushko2020-01-142-0/+15
| | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
* Update dependencies to scan with ORT.tests/ort-updatePatrick Vacek2019-12-191-5/+4
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Add --bootloader flag to specify path to a custom u-boot rom.feat/custom-ubootPatrick Vacek2019-12-032-0/+3
| | | | | | | Also should work for other bootloaders. This is intended to help with keeping around older versions of images with a similarly old bootloader. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-3988: Split the local.conf to a base and a distro specific partfeat/OTA-3988/non-systemd-supportMykhaylo Sul2019-11-061-3/+10
| | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* OTA-3988: Non-systemd/poky-sota local.confMykhaylo Sul2019-11-011-2/+7
| | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* aktualizr-device-prov-creds: remove it.fix/603/arch-depsPatrick Vacek2019-10-181-1/+0
| | | | | | | | | | Originally I was just trying to remove the reference to DEPLOY_DIR_IMAGE because it depends on MACHINE, but then I realized that this recipe is just plain not worth keeping. It isn't viable for anything except the most limited testing, since it bakes device-specific credentials into an image, but we weren't even using it for testing. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Fix CI error if repos are missing after previous runs.feat/example-virtual-secPatrick Vacek2019-10-111-1/+3
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Print usage information after parameter checking.feat/better-overlaysPatrick Vacek2019-09-091-6/+6
| | | | | | No use printing all that if there's a problem anyway. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Prevent creating an overlay with any path but the current directory.Patrick Vacek2019-09-091-1/+11
| | | | | | | | | | Anything else will cause problems because of the hackery with keeping backup copies of the image and the u-boot rom. Also warn about supplying a different image name after the overlay has been created. That doesn't work and it will be ignored. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Copy the image and U-Boot rom when using overlays.Patrick Vacek2019-09-062-9/+43
| | | | | | | | | | | Since bitbake can remove old images that an overlay was non-obviously dependent on, the safest thing to do is make a copy of the image and keep it alongside the overlay. When using the overlay later, automatically use that image. Also do the same thing with the U-Boot rom. This should also make moving the overlay file to another machine much easier. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* qemucommand.py: redirect qemu monitor to null chardevfix/qemucommandEugene Smirnov2019-08-121-6/+10
| | | | | | | | By default qemu monitor gets attached to stdio, and that interferes with the test output. We also don't need vga options in nographic mode. Signed-off-by: Eugene Smirnov <evgenii.smirnov@here.com>
* More helpful error message when running qemuLaurent Bonnans2019-08-011-1/+3
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Allow fetching aktualizr from a tagLaurent Bonnans2019-07-241-5/+22
| | | | | | Hacky but works Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Move `before_script` gitlab steps to `script`Laurent Bonnans2019-07-242-6/+5
| | | | | | | So that `before_script` can be used for additional steps when sub-classing Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Remove Jenkins references in meta-updaterci/conf-debugLaurent Bonnans2019-07-233-192/+0
| | | | | | Was killed for good Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix issue with gitlab and Docker 19Laurent Bonnans2019-07-231-4/+4
| | | | | | | | (use docker 18) See https://gitlab.com/gitlab-org/gitlab-runner/issues/4499 Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Output site.conf during CI configure stepLaurent Bonnans2019-07-231-0/+3
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix pre-clean of repo manifestsLaurent Bonnans2019-07-191-2/+4
| | | | | | Was causing problem with cache when updater-repo was updated Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix PIN_LIST in checkout-oe.shLaurent Bonnans2019-07-181-0/+1
| | | | | | It didn't work if the manifest already had a revision specified Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Work around oe-selftest bug on sumo/thudci/fix-oe-oldLaurent Bonnans2019-07-181-0/+5
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Reusable meta-updater pipeline suiteci/oe-selftestLaurent Bonnans2019-07-167-8/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed: * Oe-selftest GitLab pipeline stage * Use credentials for CI's oe-selftest * Setup kvm trick for docker on CI The gid of the kvm group needs to match the one from the host * Run ci scripts from Docker images * Template out jobs and split .gitlab-ci.yml To be easily reused in other branches and projects Rely on this gitlab feature: https://docs.gitlab.com/ee/ci/yaml/#extends * More flexible checkout script for CI - can work without $CURRENT_PROJECT (checks out everything) - can take a list of pinned versions * Add optional CI jobs ptest and other oe-selftests * Publish bitbaked images as artifacts Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Gitlab pipeline for building core-image-minimalLaurent Bonnans2019-07-167-14/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | Including these points (initially as separate commits): * Try caching updater-repo in gitlab * Only patch aktualizr recipe in CI if needed * Run under user 4321 in bitbake docker image * Add ability to supply METADIR to envsetup.sh So that we can bypass the "relative path from the script" trick that doesn't work with symlinks. * Checkout the PR base branch * do not run on pushes * run on runners with "gitlab" tag * Print all revisions after repo checkout on CI * Pull CI image from the base branch instead of master * More robust checkout in CI * Only store updater-repo artifacts for one day * Use "stretch" instead of "stable" for Debian release in Dockerfile (in fact, stable just changed to buster) * Move UPDATER_REPO variable out of .gitlab-ci.yml To be defined in the project's settings * Make docker CI stage buildable on shared runners Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Use 128M by default for qemu in oe-selftestsLaurent Bonnans2019-07-162-3/+7
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Log persistence (#523)lbonn2019-06-061-2/+3
|\ | | | | Log persistence
| * Add some sample configuration in default local.conffeat/OTA-2578/log-persistLaurent Bonnans2019-05-271-2/+3
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* | Rename provisioning methods.Patrick Vacek2019-06-051-6/+7
|/ | | | | | | | | | | | "Autoprovisioning" or "automatic provisioning" is now known as "shared credential provisioning". "Implicit provisioning" is now known as "device credential provisioning". "HSM provisioning" was always a misnomer, so it is now refered to as "device credential provisioning with an HSM". This includes a bump of the aktualizr version as well. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: Static IP address on Primary's and Secondary's internal NICMike Sul2019-05-271-2/+2
| | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
* Solve qemu long rng initialization problemLaurent Bonnans2019-03-211-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>
* wic:plugins:otaimage.py: fix a potential issueMing Liu2019-02-121-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>
* Configure oe-selftests to run on specific node labelci/ota-1810Manikandan Kandasamy2018-12-141-1/+3
| | | | Signed-off-by: Manikandan Kandasamy <manikandan.kandasamy@here.com>
* docs: better explanation of oe-selftest requirements.doc/oe-selftest-and-rm-examplePatrick Vacek2018-11-161-2/+3
| | | | | | Also remove all references to aktualizr-example-interface. It has been removed. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* image_types_ota: use IMGDEPLOYDIR for ota-ext4 imagesStefan Agner2018-10-182-3/+3
| | | | | | | | | | | Do not write directly to the IMAGE_DEPLOY_DIR but to the new deploy directory IMGDEPLOYDIR. Also change the image ending to match the image type name (from otaimg to ota-ext4). This allows to use the automatic symlinking and output artefact management too. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* Split yocto builds from yocto selftestsLaurent Bonnans2018-09-062-3/+90
| | | | | In a separate Jenkinsfile right now, with a lot of duplication. Let's hope to find a cleaner way
* Create a user with correct uid inside CI's DockerfileLaurent Bonnans2018-09-062-2/+17
|
* Setup garage credentials for oe-selftest CILaurent Bonnans2018-09-062-18/+23
|
* Install ovmf in ci DockerfileLaurent Bonnans2018-09-061-0/+1
| | | | For qemu tests
* Run oe-selftest on Jenkins CILaurent Bonnans2018-09-062-0/+29
|
* Specify cpu type -host- for KVM modefix/cpu-typeEugene Smirnov2018-08-171-1/+1
|
* Merge pull request #351 from advancedtelematic/feat/better-dependenciescajun-rat2018-07-243-125/+237
|\ | | | | Feat/better dependencies
| * find_dependencies.py: Fix cases with no meaningful dependencies.Patrick Vacek2018-06-281-12/+19
| |
| * find_aktualizr_dependencies.sh: Run once per recipe.Patrick Vacek2018-06-281-12/+11
| |
| * find_dependencies.py: rename from find_packages.py.Patrick Vacek2018-06-281-0/+0
| | | | | | | | | | More generic, hopefully a bit clearer. The input must be a recipe, but recipes depend on packages.
| * find_packages.py: Hide some i586-specific virtual packages.Patrick Vacek2018-06-281-0/+2
| |
| * find_packages.py: Do not write anything if recipe is not found.Patrick Vacek2018-06-281-25/+30
| |