aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-debian-images/builders-fai.sh
AgeCommit message (Collapse)Author
2023-09-20lt-qcom-debian-images: drop in favour of CLODmitry Baryshkov
These jobs were replaced by CLO, drop them. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Change-Id: Ia9375208b48a8977729eac6657028e56ecb4707d
2023-06-04lt-qcom-debian-images: update package names to bullseyeDmitry Baryshkov
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Change-Id: Ic713244186af2a38b5f6a35a58e0d5f9f57cb16c
2023-02-07lt-qcom: debian-images-arm64: adjust job and scripts to point to ↵Leonardo Sandoval
git.codelinaro.org repos The current upstream qualcomm git repositories located at git.linaro.org [1] site will no longer be active and [2] will be used instead, so adjust all repository references to point to the latter. Also, it was decided that the publish destination will still be snapshots.linaro.org thus remove any jfrog reference including the deprecated variable CLO_MIGRATION. Part of this patcheset is the removal of the job 'lt-qcom-debian-images' which has been superseeded by 'lt-qcom-debian-images-arm64'. [1] https://git.linaro.org/landing-teams/working/qualcomm/ [2] https://git.codelinaro.org/linaro/qcomlt Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: Ib244f3e39a49de4998d660e9d2ebc8067c71c4fe
2022-12-13lt-qcom-debian-images: revert all changes done todayNicolas Dechesne
And pretend today never happened! Revert "lt-qcom-debian-images: update Android package names" cf3f8d80f69e553d6a6d5af440daf86783b243cf. Revert "lt-qcom-debian-images: drop python2 packages" 1576e91aa9d92b6ec0e59a6d17c8a3213c01c397. Revert "lt-qcom-debian-images-arm64: remote workaround for loop devices" ddbb1ce3dda689122e5cc791c111416e32d3ac52. Revert "lt-qcom-debian-images-arm64: update to bullseye" b8f8a14b591bb742a9e0e6e3ce9a9ee459918b43. Change-Id: Ic0c9270c8c577f535e5b75bc4184319a95c6ab25 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-12-13lt-qcom-debian-images: update Android package namesDmitry Baryshkov
Use android-sdk-libsparse-utils to provide img2simg tool. Also change android-tools-mkbootimg to bare mkbootimg. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Change-Id: I567e9e92b9343eacb77fb3415d55c89c6fdcb978
2022-12-13lt-qcom-debian-images: drop python2 packagesDmitry Baryshkov
We should have switched to Python3 already, especially with the switch to bullseye. Stop trying to install python2 packages. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Change-Id: I2a4274a5fd23062806c1984e9c4a2c505e25c2e9
2022-11-03lt-qcom-debian-images/builders-fai: fix logic around dtb filenameNicolas Dechesne
Fix some typos in the initial implementation. Change-Id: Icf65c85e0dc048bdfb9590eadb770227f3e5dca2 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-11-02lt-qcom-debian-images/builders-fai: run apt update one more timeNicolas Dechesne
Fixes 23730d802832 (lt-qcom-debian-images/builders-fai: include apt-transport-https) We need to run apt update again, of course! Change-Id: Id240946a796e154cde396e1121cd13883a48eb21 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-11-02lt-qcom-debian-images/builders-fai: include apt-transport-httpsNicolas Dechesne
Since OBS was retired and moved to r.lo, installing packages (at least with stretch used here) was failing. Change-Id: I6977e597fda650bf298a844a703ad031d3ac0887 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-09-30lt-qcom-debian-images/builders-fai: improvement management of DTB filesNicolas Dechesne
The generic FAI image exports by default all DTB files in out/dtbs. At the end of the job, the content of 'out' is published. We should removed the dtbs folder before publishing, and since we want to keep a copy of the DTB files used, we put them in 'out' folder. Change-Id: Ieda55c286dfadb8cdcdcb0f2ddfe5610da4e801e Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-09-30lt-qcom-debian-images/builders-fai: fix typoNicolas Dechesne
Change-Id: Ie3ca6f39ac471967fb92774eda83f237d24ded7a Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-09-30lt-qcom-debian-images/builders-fai: fix location of dtbsNicolas Dechesne
When updating the FAI image to build a generic image, we changed the content of the 'out' folder. It now contains a 'dtbs' folder with a copy of all DTB from the installed linux-image package. Include all these files in the MD5SUM. Change-Id: I4aa51f2e8b315445a1809811dca1e4caf1238c1b Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-09-28lt-qcom-debian-images/builders-fai: fix up sources.list conditionnallyNicolas Dechesne
In some images linaro-obs.list has already been removed, need to take this case into account. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Change-Id: Ief0e4695bc312dc005128ba423f22e34efc470d6
2022-09-28lt-qcom-debian-images-arm64: new jobNicolas Dechesne
This new job replaces the previous 'per device' Debian job that we had so far. The main idea is to build a single Debian rootfs that can support several Qualcomm devices. We generate N different boot images. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Change-Id: Ie080bf14e3f90700561e873549c167f0dcf6eebf
2022-04-01lt-qcom-clo: use double quotes on lt-ci repositoriesLeonardo Sandoval
Otherwise the CLO token is not expanded on CLO's lt-ci URL. Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: Ib9169324ec144ddeab569c4702e50dfd1896fa03
2022-04-01lt-qcom-clo: point to CLO's lt-ci.git repoLeonardo Sandoval
All lt-qcom-clo jobs must push to CLO repositories, even those embedded at scripts. Fix the lt-ci.git repository for debian jobs. Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: I7a29ed2edf0a7a967fac98cdf0a86081cd3ad897
2022-03-29lt-qcom-clo: run sed command under sudoLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: Ibf9fa707be4e83f6f054abcb554cb98445adebf8
2022-03-29lt-qcom-clo: do not use obs.linaro.org repositoryLeonardo Sandoval
Debugging [1] [1] https://linaro.atlassian.net/browse/QLT-1612 Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: I7d23e785897debb91b9adcae9700c92331e7d33c
2022-03-28Revert "lt-qcom-clo: remove LINARO FAI class"Leonardo Sandoval
This reverts commit 85e31b60bf35fb40072e8f1d7097623a2358d798. Reason for revert: did not fix [1] [1] https://linaro.atlassian.net/browse/QLT-1612 Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: I57813e874c1bd8c101cc6b8ffd95842e8f767ddd
2022-03-25lt-qcom-clo: remove LINARO FAI classLeonardo Sandoval
This may be a temporal change while root cause of [1] is in place [1] https://linaro.atlassian.net/browse/QLT-1612 Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: Ide2409672e180ebadfe3f8174d4867d8b45b57c0
2022-03-22lt-qcom-clo: enable bash debug flagLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: I2d9008936483a9e0a135f7c32c167be8cca84a31
2022-02-08lt-qcom-clo: increase ssh log levelLeonardo Sandoval
While [1] is open, increase the ssh log level for all clo scripts. [1] https://linaro.atlassian.net/browse/STG-2956 Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: Ic5ce1cdbcb9dd689c64848fc15b42bb6a134dfd2
2022-02-03lt-qcom-clo: increase git.http values to avoid timeoutsLeonardo Sandoval
With both values of postBuffer and lowSpeedTime, we are trying to reduce timeout issues observed on several git commands [1]. [1] https://ci.linaro.org/view/qclt-clo-all/job/lt-qcom-clo-linux-automerge/26/console Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: I405ac3d71e1df4b1e322489a8c529857bce6cf43
2022-02-03lt-qcom-clo: introduce lt-qcom-clo-debian-images jobLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org> Change-Id: Ibb9b849f94e652d53e0c463dfb6cf282d765d9e9
2021-10-08lt-qcom: add python3-setuptoolsNicolas Dechesne
It is needed by lava-test-plans. Change-Id: Ia4166bc4c132b7d6c7a60076469f70c04432b321 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2021-10-05lt-qcom-debian-images/rpb-openembedded: Add python3-pipAníbal Limón
New lava-test-plans depends on python3-pip to install dependencies in the case of rpb-openembedded is not needed but since is a small dependency add to all jobs. Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> Change-Id: I1733587da4afcbafd4203370d3aaf6e5a14370f8
2019-11-20lt-qcom-debian-images: cleanup kernel command line parametersNiklas Cassel
-Remove rootwait, when using an initramdisk, the kernel doesn't parse this. The debian initramdisk also doesn't parse this. (But it still always waits for async devices to show up.) -Remove rw. As long as /etc/fstab exists, systemd-fstab-generator will create -.mount, and systemd-remount-fs.service will remount all filesystems according to fstab, so the ro/rw set by the initramdisk doesn't matter. -Use PARTLABEL rather than /dev/disk/by-partlabel/. PARTLABEL is supported by the debian initramdisk, and it is the same syntax that is used by the kernel. PARTLABEL is also more compact. Change-Id: If19123cc62c43c0dcc9f8bbed07cb1c917b7872c Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
2019-11-18lt-qcom-debian-images: Add dosfstools and libpython2.7-dev package installAníbal Limón
To fix builds, https://ci.linaro.org/job/lt-qcom-debian-images-dragonboard410c/605/console https://ci.linaro.org/job/lt-qcom-debian-images-dragonboard820c/400/console Change-Id: I4133d2be0160c43ad3cc382a472f6a185f0a2674 Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
2019-07-15lt-qcom-debian-images: Add KERNEL_CMDLINE_PLATFORM variableAníbal Limón
To append specific cmdline by platform if is needed, in this case '{clk,pd}_ignore_unused' for dragonboard845c. Change-Id: I1855cc9d3e4c7b0c42b48b496a5d1a79c19214e7 Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
2019-07-12lt-qcom-debian-images: Append {pd,clk}_ignore_unused for db845c kernel cmdlineAníbal Limón
Without this kernel variables in cmdline the a6xx gpu fails to probe/init use it for now. Change-Id: I1b43020f3a4c2b7517ba24f9f4094c6b26c05f96 Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
2019-07-01lt-qcom-debian-images: extract ROOTFS label from FAINicolas Dechesne
So far, the LABEL used for the ROOTFS is hard coded into two different locations: 1. in the FAI config since it's needed for /etc/fstab file 2. in the yaml job since it's needed for the boot image And they both must match. Since FAI is cloned when building the image and then the boot image, let's simply remove the variable from YAML and use the variable from FAI. Change-Id: I67dc7eb48d3206f9dd795ad89abb72d243707f27 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-09-13lt-qcom-debian-images: avoid using /tmp as tmpfsNicolas Dechesne
we remount /tmp as tmpfs to speed up FAI execution time, however hijacking /tmp is breaking things, at least it breaks ssh-agent, which prevents the script from doing any authenticated git access. Change-Id: If0a511c62291ab4197c983a0363ad614785791dd Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-09-11lt-qcom-debian-images: record build changes in lt-ci git treeNicolas Dechesne
Keep track of job history by archiving some key build artifact in a build history tree. Change-Id: I2b2f537fc86aa7875db90c437ca6102196b5912f Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-02-28lt-qcom-debian-images/builders-fai.sh: Test if build changes existsAníbal Limón
If is the first build the out/build-changes.txt is empty so test if a out/build-changes.txt exists to avoid failure, search "cat: out/build-changes.txt: No such file or directory" in [1]. [1] https://ci.linaro.org/job/lt-qcom-debian-images-dragonboard600c/47/console Change-Id: I2ee9d1d13b2754cc399e16ad2d51f50193e78682 Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
2018-02-13lt-qcom-debian-images: add empty line before the pre.. tagFathi Boudra
It fixes the rendering. Change-Id: I3d5884ee27633fba4a2284842d11c2ab7d2befd1 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2018-02-07lt-qcom-debian-images/builders-fai: fix typoNicolas Dechesne
Change-Id: Ia1a82d0cc8d7d3bf8aa594bad31088959124998d Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-02-06lt-qcom-debian-images/builders-fai: include build changes in HTML pageNicolas Dechesne
Re-using the same implementation from rpb-openembedded/builder.sh Change-Id: Id6101592a93147a94907f95bbda0aff343e7a7dd Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-02-05lt-qcom-debian-images/builders-fai: fix typoNicolas Dechesne
Otherwise we erase the output file... Change-Id: Ice208bc037cc95d05a3677525452b0849f641ce7 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-02-04lt-qcom-debian-images/builders-fai: silent diff outputNicolas Dechesne
Files might differ, in which case diff will return an 'error' code, which should be ignored. Change-Id: Icb03f4eaee56eb13023748beecb71507037302e6 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-02-02lt-qcom-debian-images/builders-fai: fixup link for previous buildNicolas Dechesne
while the regexp should work, it does not.. for now, since we know that BUILD_NUMBER is at the 'end' of the address, let's use dirname to strip it. Change-Id: Ie954e14f0192fccd812fa37e4c98d619059737c9 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-01-30lt-qcom-debian-images: install pipNicolas Dechesne
fixes: 3ea912e3 lt-qcom-debian-images: Install jinja2-cli and ruamel.yaml Which uses pip to install new package, although pip was not installed. Change-Id: I34c486791b7b3becbdc05fa46df7a180a965ea81 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-01-30lt-qcom-debian-images/builders-fai: add kernel config changesNicolas Dechesne
Record kernel config changes since last build, in addition to packages differences. And add all changes in a single file instead of generating many changes files. Change-Id: I4849ff8d00508de0fecd846d84be21522990fe35 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-01-22lt-qcom-debian-images/builders-fai: fix kernel package versionNicolas Dechesne
Fixup typo introduced in this commit: d5a25733 lt-qcom-debian-images/builders-fai: add more kernel info the grep command was returning no data. Change-Id: I5f3b699cf781e371f36cb2b5b9671610838aa336 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-01-22lt-qcom-debian-images: record packages changes since last buildNicolas Dechesne
* debpkgdiff is a small script that produces package difference between 2 files containing the output of 'dpkg -l'. * use this script to compare the package list from previous build and record it. Change-Id: I9b1855c07925263f8375c73b321e9f8e4edce6a5 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2018-01-16lt-qcom-debian-images/builders-fai: add more kernel infoNicolas Dechesne
Change-Id: I5e8f4a96b4d4f3a095d6611192ef47869231191f Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2017-12-20lt-qcom-debian-images: Fail moreRiku Voipio
Fail image builds also if we get missing packages or task failures Change-Id: I347c3c8d4e3c7ebe6e474648d32bcedbcc5d8788 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2017-12-19lt-qcom-debian-images/builders-fai: access to log file requires sudoNicolas Dechesne
Change-Id: Id85cd044f0763366fb46c9401172474e9423b166 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2017-12-19lt-qcom-debian-images/builders-fai.sh fix mistakeRiku Voipio
echo -> fi Change-Id: I41ffea78fb8dae1b02f5b0069d50af647b3afec1 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2017-12-19lt-qcom-debian-images: fail on errorsRiku Voipio
Since fai-diskimage 5.4 doesn't return exit code on fail, grep for lines starting with ERROR: explicitly. Change-Id: If62ca4e4f9d478d47b90ad1f7873c80ca3916bb6 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2017-11-23lt-qcom-debian-images: add more parameters for mkbootimgNicolas Dechesne
mkbootimg can set addresses in the boot image header for kernel, ramdisk, ... while these parameters are ignored on db410c and db820c, they will be needed for A family devices, such as db600c. Change-Id: I74a307b4f5903417ddeaf4a2e1b0616986a0050d Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>