summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* qemucommand: Restore custom booloader parameter.Patrick Vacek2020-08-261-1/+4
| | | | | | | The functionality was (presumably unintentionally) removed, but the option was still present. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Fix envsetup when run in zshLaurent Bonnans2020-04-291-10/+22
| | | | | | Now also works with zsh < 5.5 Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Update CI scripts to match other supported branches.Patrick Vacek2020-02-284-15/+62
| | | | | | | | This seems mostly related to 9eebc8d15a297d68fc35dd4d77fcb945d2f395b2, which didn't make it to thud, since some of it was only required for master. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* oe-selftest.sh: This also now requires setting git identity.Patrick Vacek2020-02-281-1/+11
| | | | | | | | Not sure why this only started cropping up now. Also pull in some other missing bits from other upstream changes. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Remove a debug print in qemucommand.pyLaurent Bonnans2020-02-281-1/+0
| | | | | | Was missed during review Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix default uboot-enable variable in qemu command scriptKostiantyn Bushko2020-01-292-2/+2
| | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
* build and run image without ostree support for qemux86-64Kostiantyn Bushko2020-01-293-17/+53
| | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
* fix issue with attr error for host_forwardKostiantyn Bushko2020-01-151-1/+1
| | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
* run-qemu-ota: passing hostfwd as command line argumentKostiantyn Bushko2020-01-152-0/+15
| | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
* Add --bootloader flag to specify path to a custom u-boot rom.Patrick Vacek2019-12-122-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 partMykhaylo Sul2019-11-201-3/+10
| | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-3988: Non-systemd/poky-sota local.confMykhaylo Sul2019-11-201-2/+7
| | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr-device-prov-creds: remove it.Patrick Vacek2019-10-211-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>
* Remove Jenkins references in meta-updaterLaurent Bonnans2019-10-213-192/+0
| | | | | | Was killed for good Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Print usage information after parameter checking.Patrick Vacek2019-09-111-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-111-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-112-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 chardevEugene Smirnov2019-08-151-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> (cherry-picked from commit c6ad1d288b8f930bbc3fa6de9e102209e3304c66)
* More helpful error message when running qemuLaurent Bonnans2019-08-151-1/+3
| | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com> (cherry-picked from commit 36f311912372be3150633b4da0f344c70e456d55)
* Add some sample configuration in default local.confLaurent Bonnans2019-07-191-2/+3
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Use 128M by default for qemu in oe-selftestsLaurent Bonnans2019-07-172-3/+7
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Add ability to supply METADIR to envsetup.shLaurent Bonnans2019-07-171-1/+1
| | | | | | | So that we can bypass the "relative path from the script" trick that doesn't work with symlinks. 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-06-051-2/+2
| | | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.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>
* 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>
* 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
| |
| * find_packages.py: Substantial rewrite based on OSS team feedback.Patrick Vacek2018-06-281-49/+130
| | | | | | | | | | | | | | | | * Only one recipe is investigated at a time. * Output is hopefully closer to the desired format. * Renamed the output file. * Skip some basic native and virtual (cross-compilation) build tools so that the output is not monstrously large.
| * find_packages.py: input package names to search.Patrick Vacek2018-06-272-20/+38
| | | | | | | | | | Use find_aktualizr_dependencies.sh to get the previous output for aktualizr-related projects.
* | Remove python3-requests from Dockerfile.bitbakeLaurent Bonnans2018-06-271-1/+0
| |
* | Rename Jenkinsfile to Jenkinsfile.bleedingLaurent Bonnans2018-06-251-0/+3
| | | | | | | | + small doc comment
* | Small doc about setting up Jenkins for meta-updaterLaurent Bonnans2018-06-251-0/+14
| |
* | Add caching to CI bitbakingLaurent Bonnans2018-06-252-4/+30
| | | | | | | | | | Also fix various issues with environment variables and file transfers to Docker
* | Use plain bash instead of hacky sed for CI config filesLaurent Bonnans2018-06-223-16/+10
| |
* | Try to bitbake on CI inside dockerLaurent Bonnans2018-06-222-4/+42
| |
* | Refactor some of the Jenkins pipeline stuffLaurent Bonnans2018-06-211-9/+14
|/ | | | Some options looked deprecated