summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-05-29jenkins_common_lib: allow users to set kernel_img_cmd for arm64HEADmasterNicolas Dechesne
Allow our users to specify a different kernel Image when building for arm64. It is by default "Image", but some users might prefer to use "Image.gz" for example. Change-Id: I35d808f9f95a80547a27cdb6744981aff75c86d9 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2017-04-20jenkins_kernel_build_inst: improve Debian kernel package versionNicolas Dechesne
So far the kernel package version string is set to <kernel-release>-1 (the -1 is coming from the kernel .version file and is meaningless for us). When kernel is at 'rc' level, the version go backward when going from 4.x.0-rc8 to 4.x.0 for example, so first we fix this issue by replace the '-' with '~' in the version string. Then we add -$BUILD_NUMBER so that the kernel package version is linked to our CI build numbers, which is a meaningful information for our users. We need to move the if statement slightly earlier to make sure that BUILD_NUMBER is set when building outside of CI, since we use variable now. Change-Id: I65c09262376dc31e3c0d385ece0254edde1f9732 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2017-04-20jenkins_common_lib: avoid compiling kernel twice when building deb packageNicolas Dechesne
In the kernel Makefile, running make deb-pkg, will first clean up the tree, which effectively force a full kernel rebuild. Also deb-pkg is not legit when using with O=, and as such we don't even build the kernel source package, and we have the following warning in our build logs: 00:08:26.570 Building source tarball is not possible outside the 00:08:26.570 kernel source tree. Don't set KBUILD_OUTPUT, or use the 00:08:26.570 binrpm-pkg or bindeb-pkg target instead. So effectively, using deb-pkg only cleans up the source tree and forces a rebuild.. so let's replace with bindeb-pkg which does not clean up the tree and build the same packages anyways. Change-Id: I1dd1b2582be283636130170c8d298842d4c87c2d Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2017-01-13Revert "Refactored yaml-to-json script"Fathi Boudra
This reverts commit 175a5268a52ccea0851201bd256325e022e020fe. It's causing failure with existing jobs: Traceback (most recent call last): File "./lci-build-tools/yaml-to-json.py", line 24, in <module> main() File "./lci-build-tools/yaml-to-json.py", line 16, in main lava_template = template_replace(template) File "<https://ci.linaro.org/jenkins/job/96boards-reference-platform-openembedded-morty/DISTRO=rpb,MACHINE=dragonboard-410c,label=docker-jessie-amd64/ws/lci-build-tools/yamljsonlib/__init__.py",> line 8, in template_replace placeholders = set(filter(None, itertools.chain(*placeholders))) NameError: global name 'itertools' is not defined Change-Id: I2287bba12ed8df67f87097d033115e436f08fb9b
2017-01-06Refactored yaml-to-json scriptMilosz Wasilewski
Variable substitution is also needed for YAML files. This part was separated to a library. For backward compatibility the call of yaml-to-json remains the same. New script prepare-template.py was added to cover the used case of variable substitution in any file Change-Id: I2cd28c851d14e13b07c3fb4f966e2587abf70448 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
2016-11-25builddeb: sync with latest upstreamed/submitted codeFathi Boudra
Remaining changes: * arm64 kernel installed to boot/Image-$version * dtb's installed to lib/firmware/$version/device-tree * arm64 boot wrapper installed to boot/ Change-Id: Ib14239b0c89e208bac6deca0acaf493db08172e9 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2016-05-17dtb-to-device: b2120 is decommissionedFathi Boudra
Change-Id: I281f25be421c646738a80ceb0d8faecad31bcf1c Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2016-02-12jenkins_kernel_build_inst - adapt to releases.linaro.org changeRiku Voipio
curl -v http://releases.linaro.org/14.08/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.08_linux.tar.xz ... HTTP/1.1 302 FOUND Location: https://publishing-linaro-org.s3.amazonaws.com/releases/14.08/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.08_linux.tar.xz?Signature=lkiJ65voXSh%2B%2Fk%2F6FPSmNrklEJw%3D&Expires=1455282860&AWSAccessKeyId=AKIAIELXV2RYNAHFUP7A Without -L parameter curl will not follow Location: field to next server. Change-Id: I032196f120d443535c7e07181251657e1f0ca544
2015-11-26De-duplicate entries in placeholdersBernard Ogden
Will save some env var lookups when input contains multiple instances of same variable. Also cleaner if we later want to do something with that list of variables. Change-Id: If37b75abe7366dcf49426da34c10675d8ebab132
2015-11-17yaml-to-json: permit arbitrary replacementsBernard Ogden
All placeholders in input are replaced with values of equivalently named environment variables. If environment variable is unset, replace with empty string. Note that this is a behaviour change: previously, we would replace with the string 'None' if the environment variable was unset. Change-Id: I87e88d64a0146e305db9d4d4146d6b9607c2a5ef Signed-off-by: Bernie Ogden <bernie.ogden@linaro.org>
2015-11-03setup_lib: Function can't be empty.Paul Sokolovsky
Change-Id: Ib70d4670900ab2e22795dde56e2f74535c97dc44
2015-11-03setup-precise-node: Install java7 as required for Jenkin 1.625.Paul Sokolovsky
Change-Id: Ib0c131dc38c8ab8e38ccc54de9ef217155309838
2015-11-03setup-precise-node: Fix bitrot.Paul Sokolovsky
setup_lib: lit_install(): Links bitrotted, comment out, latest linaro-image-tools installed for builds which require it elsewhere. setup-precise-node: http://ci.linaro.org/~ubuntu/ inaccessible Change-Id: Ia984a973b5890b9db9c80c8955a93b0bd67b4c26
2015-11-02find_latest.py: Report no latest build found more appropriately.Paul Sokolovsky
Previously, there was low-level exception on list.pop().
2015-10-19jenkins_common_lib: if not CONFIG_OF don't install dtb'sAnders Roxell
Change-Id: I55d6746d9c7811d0a301021ce58c709078ab307d Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2015-10-15build-scripts/builddeb: ignore dtbs if no CONFIG_OFAnders Roxell
Change-Id: I2573233afdfa28673ae07338bf051811512cf4fa Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2015-10-15jenkins_common_lib: enable x86_64 buildsAnders Roxell
Change-Id: Ia3d7f2bf572c9989c28709e712a7b8afdcd57286 Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2015-09-23add get_jenkins_variable.pyAnders Roxell
Utility to get jenkins variable via jenkins API (json file) Change-Id: I9fdbbb2edebfa61e31570b6944d16e2f342904bd Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
2015-07-06jenkins_common_lib: use -O when calling merge_config.shNicolas Dechesne
it's supported since Kernel 3.9, no need to manually copy the generated config file anymore. Change-Id: If5705bebc05e73567e0cf1619ea747d2f6c17604 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2015-06-29buildperfdsc: add perf source packageRiku Voipio
Add a matching perf source package. depends on http://www.spinics.net/lists/linux-kbuild/msg11337.html Change-Id: I033887c404d19504958f96857067dd5c220b0fa9 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-06-27builddeb: sync with latest upstreamed/submitted codeRiku Voipio
New features: - builds source package - builds changes Copy the builddeb from lci-build-tools universally so the patches can be removed from linux-linaro Remaining changes: - arm64 kernel installed to boot/Image-$version - dtb's installed to lib/firmware/$version/device-tree - arm64 boot wrapper installed to boot/ Change-Id: I2afcc2695edb9e45b90db53371a366504c829b01 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-04-22yaml-to-json: add DEVICE_TARGET supportFathi Boudra
in order to specify a specific device to target in a LAVA job submission, add DEVICE_TARGET environment variable support. Note: LAVA is using "target" in JSON but it's too mcuh generic to use the same variable as-is. Hence we prefix with DEVICE_, along the same line as DEVICE_TYPE Change-Id: I8fffb6d2295fe858992840fd4b103eb8900fb0b3 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2015-04-17silent -> make_silentRiku Voipio
Since 0a1f00a1c86421cc07cec87011c7cf4df68ee54b in kernel, silent is now used inside kernel makefiles. Use make_silent instead. Change-Id: I176965451edc3aaa82aea328ceac093d3e212f3f Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2015-04-16dtb-to-device: add LAVA safety checksMilosz Wasilewski
Added safety checks to avoid exceptions during LAVA job submission Change-Id: I67a4b573bca08739adf6786064eae9c848feb9fd Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
2015-04-16dtb-to-device: remove origenMilosz Wasilewski
origen boards are not present in the LAB any more. Therefore submission of origen jobs fails. Removing origen from mapping. Change-Id: I6bb395d68ddc35bfeb00c0b474776098b19742bb Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
2015-04-03yaml-to-json: add rootfs_type supportFathi Boudra
Change-Id: I4d8426632da13fbe5bd0d04bbd29ada5fba2bdbd Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2015-03-04dtb-to-device: add stih410-b2120Fathi Boudra
Change-Id: Ie6dbe5efcdf93c44da469d016857ef42e1bd4b29 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2015-01-15bootwrapper: use configure --with-dtb parameterFathi Boudra
Change-Id: I63fab543a70316c2accdbc855360c3387d44c634 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2015-01-11builddeb: fix dtb copyFathi Boudra
sync builddeb with 3.19 and fix device tree copy Change-Id: Ifc948f26e5cdb090872388e23512522802afef55 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2015-01-11fix dtb location introduced with 3.19Fathi Boudra
Change-Id: I1382b10cf5c15f6073f2638ab161dcbe830d3b7f Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2015-01-10make the boot-wrapper repository configurableFathi Boudra
with the 3.19 kernel, dtb on arm64 are now located under a vendor subdir. this change allow to provide an updated boot-wrapper until it's fixed upstream. Change-Id: Iaaa089075e51900890cbfeac713ab96e0ee7fa66 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-12-16Add a FIXME to use ordered dictionariesFathi Boudra
an ordered dictionary is required for LAVA "customize" syntax as the order of commands is relevant. Change-Id: I14e8a0b9d9889f99b6ef9c54e75dd7bdd1e8e9ff Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-12-13yaml-to-json: add BOOT_URL, DATA_URL and SYSTEM_URL supportFathi Boudra
Change-Id: Ia7c9933c8a0b3fddebd3804576d759914accff93 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-12-13yaml-to-json: add IMAGE_URL supportFathi Boudra
Change-Id: I7a4c58432582b10e544aad41b1b5ec2d4be80a4b Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-12-10dtb-to-device: add hix5hd2-dkb.dtb mappingFathi Boudra
Change-Id: I65f76a036490ba5a36278c8fa64fa435c0c90a60 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-10-27dtb-to-device: rename wg to junoFathi Boudra
Change-Id: I7796966e6c110539f826c0ee80653511a660b08a Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-09-12dtb-to-device: fix yaml-to-json pathFathi Boudra
It's expected in lci-build-tools tree Change-Id: Ia10f6e5e61c100aab3e734cb179f591325967df4 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-09-12Split yaml to json conversion into its own programFathi Boudra
Change-Id: I31bf97795eac4366b4f4352126013c387af1f0e8 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-09-12dtb-to-device: use argument instead of hardcoded valueFathi Boudra
Change-Id: I8f5907b001f377fb488d7836c8f05eec18d1a21f Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-09-12Add support for make_installFathi Boudra
It creates an "out" dir suitable for linaro-cp and copy kernel config, image and device tree. Change-Id: I418f6c9b0f14ee1a2d682694ac4e225fd1952d0c Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-09-09dtb-to-device: handle unsupported dtb and some cleanupFathi Boudra
Change-Id: If24ed53a6a1b5cbe865133649209b3bb82ebed97 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-09-08Add scripts for upstream kernel CIFathi Boudra
Submit LAVA job based on the dtbs and include a custom job definition example. Change-Id: I9065b10b9e5238f016a04ce44e57d48c33989561 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-08-19builddeb generates linux-*.deb packages - clean up only themFathi Boudra
Change-Id: I25776818e8bb1e50884a06a70e5290fb3c5a1744 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-07-24Fix package version mismatchRiku Voipio
As reported in https://bugs.launchpad.net/linaro-ci/+bug/1300023, kernel and package disagree in package version. This is because we pass KERNELRELEASE only to deb-pkg, not to make Image and make modules before it. Change-Id: Ie4fc8e444d97c6e9ed8277190ce711dd82d96949 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-07-14Sync builddeb script to 3.16-rc5Riku Voipio
3.16-rcX builds might fail since 9da0763b which made kbuild use relative paths. Relevant changes upstream are in a765a7c. This commit also merges in other changes from upstream. Remaining changes from upstream: - arm64 to use Image filename - dtb files to package - adding bootwrapper axf to package Change-Id: Ia03869b5dab7953d46fca850747a0405ccc09049 Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-06-23Add .gitreview.Paul Sokolovsky
2014-06-12Minor code re-ordering to keep linaro-image-tools operations togetherFathi Boudra
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-06-12Use linaro-hwpack-replace after renamingFathi Boudra
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-06-12Use kernel_debarch variableFathi Boudra
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2014-06-12Replace linux-headers packageFathi Boudra
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>