Commit Graph

100 Commits

Author SHA1 Message Date
Javier Viguera 3dcc4f8f49 build.sh: fix random build failures in the buildserver
We have seen lately random build failures in the buildserver due to
missing QT5 base libraries that are needed when building some other
QT5 packages.

Examples:

Compiling qtdeclarative:

error: cannot open .../tmp/work/cortexa9hf-vfp-neon-mx6qdl-dey-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/build/lib/libQt5Core.so: No such file or directory

error: cannot open .../tmp/work/cortexa9hf-vfp-neon-mx6qdl-dey-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/build/lib/libQt5Network.so: No such file or directory

error: cannot open .../tmp/work/cortexa9hf-vfp-neon-mx6qdl-dey-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/build/lib/libQt5Widgets.so: No such file or directory

The problem here is that 'qtdeclarative' is trying to get the needed
libraries from the 'qtbase' temporary work directory. But because in the
buildserver we have 'rm_work' enabled to save space, sometimes the
rm-work class has removed the 'qtbase' work directory before
'qtdeclarative' has been built, leading to the compilation error.

This is probably a bug in 'meta-qt5', because the different packages
needing QT5 base libraries should take them at compile time from the
sysroot and not from the qtbase work directory.

At the moment just workaround this adding an exception to the rm-work
class to not remove the 'qtbase' temporary work directory.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-29 18:52:44 +02:00
Javier Viguera 02c961eb3f build.sh: add support to build a toolchain for CC6UL
The build script was filtering out toolchain builds for all image
recipes not starting with 'dey-image-', but for the CC6UL we are
building by default 'core-image-base', so update the regular expression
to allow building the toolchain for 'core-image-*' image recipes.

https://jira.digi.com/browse/DEL-2837

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-07-26 19:45:30 +02:00
Diego Escalona 24fb7f5bd4 build.sh: add support for the manufacturing build job
- Added a checker with the job name to declare the manufacturing var
- Changed the name of the repo manifest file for the manufacturing job
- Added a checker to updated the bblayers.conf file with the mfg layer

Signed-off-by: Diego Escalona <diego.escalona@digi.com>
2016-07-19 11:33:06 +02:00
Javier Viguera 7db92fc476 build.sh: allow to define per platform bitbake image target
Instead of having one default image target for all platforms allow to
define this per platform.

This is needed because for example for the 'ccimx6ulstarter' we want to
define a default command line image instead of a QT-based one.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-06-20 19:18:49 +02:00
Isaac Hermida 0f5820f111 sdk: Support for ccimx6ulstarter
Adding sdk support by copying the files from ccimx6sbc and replacing the
machine.

https://jira.digi.com/browse/DEL-2529

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2016-05-13 10:10:13 +02:00
Javier Viguera 8952bc58de build.sh: use LOG-SLN-JENKINS for packages mirror
'build-linux.digi.com' is the old DEL buildserver that sooner than later
will be decommisioned (hopefully) so just don't depend on it for DEY
builds.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-04-22 11:44:25 +02:00
Javier Viguera f0c62bbd7d build scripts: adapt to new DEY images
https://jira.digi.com/browse/DEL-2197

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-05 18:07:49 +01:00
Urko Nalda 3428eee3d1 build.sh: add support for dey-image-tiny and dey-image-tiny-initramfs
In order to build tiny or tiny-initramfs images, the script adds
the line:

 DISTRO_FEATURES_remove = "x11"

to 'conf/local.conf' file.

https://jira.digi.com/browse/DEL-2106

Signed-off-by: Urko Nalda <Urko.Nalda@digi.com>
2015-12-10 12:42:23 +01:00
Javier Viguera 16b2740fd5 build.sh: generate tarballs from git repositories
This is needed when you use a PREMIRROR (as we usually do in buildserver
builds). Otherwise there is a strange corner case where the do_fetch
task fails when the upstream git repo has been rebased and the old mirror
tarball does not have the new SHA1 revision.

ERROR: Function failed: Fetcher failure for URL: 'git://git.yoctoproject.org/matchbox-window-manager'. Unable to fetch URL from any source.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-10 13:47:45 +01:00
Javier Viguera d35ac42dd0 meta-digi: remove support for MX5X platforms
ccimx51js and ccimx53js are not supported in this version of DEY.
Support for those platforms is in previous versions of DEY.

https://jira.digi.com/browse/DEL-1890

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 13:56:38 +01:00
Javier Viguera 12cb58a565 build scripts: remove stale branches before sync'ing
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 8b30168930e65debc2c3a7b54e6b86e16784b50e)
2015-10-21 11:00:19 +02:00
Javier Viguera 51a3bdb25f meta-digi: remove Linux preferred versions
There is only one kernel supported for each platform, so there is no
need to explicitly set the kernel preferred version.

Also:

* Remove IS_KERNEL_2X variable which is no longer needed.
* Simplify jenkins build script, now that we do not need to build two
  kernel versions for ccardimx28.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-07 16:44:26 +02:00
Javier Viguera f20b82c7cd meta-digi: remove automatic acceptance of FSL EULA
https://jira.digi.com/browse/DEL-1734

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 35a78b13f72963205dc1ae1e05ee851ca6cc4f28)
2015-09-29 11:52:10 +02:00
Javier Viguera ee1bf7d441 meta-digi-dey: remove sares-image bbclass
This was used just for SARES testing and according to the SA team it is
not needed anymore, so just remove it.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-08-27 11:10:15 +02:00
Javier Viguera 6a7f06b410 meta-digi-arm: remove support for kernel 2.6.35 on ccardimx28js
https://jira.digi.com/browse/DEL-1747

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-08-05 11:54:55 +02:00
Javier Viguera 20671e874d meta-digi: remove current variants support for CC6
Remove the current DEY variants support and framework for CC6 because in
following commits we will add support for all *hardware* variants in
just one set of DEY images for CC6.

https://jira.digi.com/browse/DEL-1569

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-05-15 17:12:45 +02:00
Javier Viguera 8b2e4812fc meta-digi-dey: create sares-image bbclass
Remove 'dey-test' image feature and create a SARES bbclass with the
same functionality. This makes easier the creation of images suitable
for SARES testing just adding:

INHERIT += "sares-image"

to your project's local.conf

https://jira.digi.com/browse/DEL-1558

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-13 18:43:11 +01:00
Javier Viguera 8b0db7612d build scripts: create MD5SUMS file
Minor improvements:

  * Remove 'README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt' file
  * Create MD5SUMS file

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 4be702c44945d200c01818227604cc6d0f818931)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-02-20 11:17:57 +01:00
Javier Viguera f3dfa6a3b6 meta-digi-arm: support variants for ccimx6sbc
This completes the support for ccimx6sbc variants:

* support device tree variants
* split variants '0x01,0x02,0x04' group in two different groups (with or
  without kinetis)

https://jira.digi.com/browse/DEL-1359

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 3f20015411f4e270b2e2c8faf292678c75ff2aff)
2015-02-05 16:37:42 +01:00
Javier Viguera 315e479b5a build.sh: support building platform variants
Depending on DY_BUILD_VARIANTS variable (set by Jenkins):

  'false':     don't build variants (only the default)
  <empty>:     build all the variants supported by the platform
  'var1 var2': build the ones specified in the variable

https://jira.digi.com/browse/DEL-1360

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit de58d3fac52448ee7b1828c6ac71c6c10a3442ff)
2015-02-05 16:30:21 +01:00
Javier Viguera dbd966543e meta-digi: remove not supported ccimx6adpt
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-12-01 12:15:54 +01:00
Javier Viguera 9542bd6b13 build.sh: copy SDK only if built
Fix jenkins error:
cp: cannot stat `tmp/deploy/sdk': No such file or directory

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-07 10:34:14 +02:00
Javier Viguera c4cc0c4329 build.sh: adapt script to build DEY toolchains
https://jira.digi.com/browse/DEL-1003

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-10-02 19:28:48 +02:00
Javier Viguera c9b82ed477 build.sh: adapt script after 'dey-gui' distro removal
https://jira.digi.com/browse/DEL-858

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-25 16:23:40 +02:00
Javier Viguera 5a450ae240 build.sh: do not rm-work linux, u-boot and dey images
These are key packages that we may need to debug in the buildserver, so
do not remove the object files.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-08 11:30:13 +02:00
Javier Viguera 98c8a75a2f build.sh: adapt script to new ccard default kernel 3.10
Adapt the jenkins build script to build for ccardimx28js by default
linux 3.10 and u-boot 2013.01 and as alternative configuration linux
2.6.35.14 and u-boot 2009.08

https://jira.digi.com/browse/DEL-1168

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-01 19:04:06 +02:00
Javier Viguera c91898e4b1 build.sh: purge sstate of all packagegroups between builds
Packagegroups define sets of packages to be installed in the rootfs
*depending* on the hardware variant (~MACHINE_FEATURES). For example
installing or not the bluetooth firmware depending on machine variant
having bluetooth.

It may happen that we build sequentially machines with different
features using the same sstate and thus it may happen we end with a
rootfs lacking bluetooth firmware for a bluetooth variant.

So add all packagegroups to the list of packages to purge state-cache
between platform builds.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-06-16 11:31:55 +02:00
Alex Gonzalez 7ca94dba05 sdk: Add ccimx6sbc support.
Copied from the ccimx6adpt.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2014-05-09 17:34:10 +02:00
Javier Viguera 5569e543d0 build.sh: make sure the clean command returns success
This is needed so jenkins jobs not using 'meta-digi-dey' (the layer
containing the cleaned recipe) can complete. Otherwise they fail with:

ERROR: Nothing PROVIDES 'packagegroup-dey-examples'

(for example using just the BSP layer 'meta-digi-arm' with standard
image recipes, e.g. core-image-minimal)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-25 12:11:29 +02:00
Javier Viguera aa6daab533 build.sh: purge the state-cache of problematic packages
In the buildserver we share the state-cache for all the different
platforms we build in a jenkins job. This may cause problems with
some packages that have different runtime dependencies depending on
the platform or variant.

Purge then the state-cache of those problematic packages between
platform builds.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-04-03 10:40:21 +02:00
Javier Viguera 5651ce96f1 build.sh: support ccimx6adpt
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-02-28 11:48:43 +01:00
Javier Viguera b89f5f6911 meta-digi: remove wr21 platform
This needs to be supported in 'meta-digi-dlr' layer.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-15 11:00:47 +01:00
Javier Viguera 1cb6073749 meta-digi: remove cpx2 platform
This needs to be supported in the DBL layer.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-08 14:21:09 +01:00
Javier Viguera 43918960f0 build.sh: copy individual packages only for release builds
For daily builds just copy the firmware images to avoid running out of
space in the buildserver.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-11-05 11:18:54 +01:00
Javier Viguera 5f442b5caf build.sh: update manifest URL after stash migration
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-08 14:16:14 +02:00
Javier Viguera a04ea9af59 build.sh: add support to build kernel version 3.x
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-10-08 14:15:43 +02:00
Javier Viguera 10af7f7107 build.sh: time 'repo sync'
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-07-16 10:25:53 +02:00
Javier Viguera 211daed75d build.sh: remove 'meta-digi-dey' layer if not using DEY based distros
This allows to build 'core-image-minimal' or 'core-image-sato' standard
images using only the BSP layer meta-digi-arm.

https://jira.digi.com/browse/DEL-547

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-07-02 13:35:37 +02:00
Alex Gonzalez dc9d56dc47 build.sh: Add an RM_WORK option.
This will allow to remove the packages working directories to save disk
space.

https://jira.digi.com/browse/DEL-521

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-19 17:54:59 +02:00
Alex Gonzalez e04b4329ab build.sh: Allow to build for more than one target.
https://jira.digi.com/browse/DEL-504

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-18 16:51:22 +02:00
Alex Gonzalez 3984323bd3 build.sh: Fix error when building targets without images.
Some targets, like meta-toolchain, will not create a tmp/deploy/images
folder.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-18 16:50:40 +02:00
Alex Gonzalez e500e6b66e builds.sh: Update manifest URL.
The manifest git repository has changed location.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-13 09:55:55 +02:00
Alex Gonzalez 8988542df3 meta-digi: Rename from DEL to DEY.
The final product will be called "Digi Embedded for Yocto" or DEY for
short.

This commit renames all relevant files.

https://jira.digi.com/browse/DEL-474

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-12 13:18:37 +02:00
Alex Gonzalez 48d9b9079a build.sh: Add a platform specific path to TEMPLATECONF
If TEMPLATECONF is set in the environment, we will add the platform to
the path so that it's possible to use specific template configurations
for different platforms in the build server.

https://jira.digi.com/browse/DEL-497

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-06-12 10:59:50 +02:00
Javier Viguera 10c7594119 meta-digi: use global variable to use internal git repos
https://jira.digi.com/browse/DEL-472

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-06-04 18:08:02 +02:00
Alex Gonzalez a6a3a9a220 build.sh: Parametrize the distribution to build.
This allows to build for all supported distributions:

del (del-image-minimal)
del-gui (del-image-graphical
poky (core-image-minimal etc.)
dbl (dbl-image-base)

https://jira.digi.com/browse/DEL-481

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-05-23 16:21:10 +02:00
Alex Gonzalez db55ff5a32 build.sh: Changes from review.
http://fisheye.digi.com:8060/cru/CR-DEL-28#CFR-517

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-05-22 17:40:58 +02:00
Alex Gonzalez 7bb61a45b9 build.sh: Parametrize the single target image name
This will allow to compile del-image-graphical or any of the other standard
Yocto image targets as meta-toolchain, meta-toolchain-sdk, adt-installer,
or meta-ide-support.

https://jira.digi.com/browse/DEL-476

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2013-05-22 17:33:21 +02:00
Francis Sreeves 6db91dc1a3 meta-digi: add WR21 machine
https://jira.digi.com/browse/DEL-455

Signed-off-by: Francis Sreeves <francis.sreeves@digi.com>
2013-05-22 10:30:01 +01:00
Javier Viguera 077894da5b meta-digi: add jenkins build script
https://jira.digi.com/browse/DEL-460

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2013-05-15 16:30:24 +02:00