Compare commits

...

129 Commits
1.2.4 ... main

Author SHA1 Message Date
Mr Jenkins d66262f1eb submodules: updated netmodule hashes, triggered by Jenkins (userId=downstream) 2022-06-09 12:36:30 +02:00
Mr Jenkins a34e053f01 submodules: updated netmodule hashes, triggered by Marc Mattmüller (userId=mattmueller) 2022-05-31 12:22:52 +02:00
Marc Mattmueller b54fdeff4b autorev-packages: remove wlconf-bin from AUTOREV list
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-05-24 16:18:48 +02:00
Marc Mattmueller e2d5290e3c autorev-packages: removed FGPA recipe from AUTOREV list
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-05-24 16:17:50 +02:00
Marc Mattmueller f1c5588914 autorev-packages.inc: added storage info to the list of autorev packages
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-05-23 15:05:40 +02:00
Alexandre Bard c42ad8d655 env: Add HW17 environment
BugzID: 77953
2022-05-05 15:54:46 +02:00
Mr Jenkins 10a2dff839 submodules: updated community hashes, triggered by Alexandre Bard (userId=bard) 2022-05-02 11:13:42 +02:00
Mr Jenkins 797c94d2df submodules: updated community hashes, triggered by Alexandre Bard (userId=bard) 2022-04-07 10:13:39 +02:00
Marc Mattmueller 1a4ec56472 autorev-packages: remove unused scripts from features repo
see appropriate branch in meta-netmmodule-distro

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-03-21 10:55:51 +01:00
Marc Mattmueller 696db7ca10 ci/cd env: removed all jenkins files and src-rev scripts
The scripts and the pipelines are now located in the build
directory

BugzID: 78260
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-02-22 11:24:17 +01:00
Marc Mattmueller 7a078ecee0 Jenkinsfiles: adapted loading yocto environment before building
the yocto environment load path changes, i.e. to load the env for
an ostree image changed from '. ./env.image-ostree' to
'. ./env/distro/ostree-image'

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-02-10 15:20:53 +01:00
Alexandre Bard 75b959e552 Improve environment files
With this changes it is possible to source from anywhere a machine or
distro file.

It is also cleaning all the environment files in the main directory.

As example, to load environment for HW21 and lava image for example the
following command can be used:

. env/distro/lava-image && . ../env/machine/hw21
2022-02-10 15:20:53 +01:00
Alexandre Bard 2f3120ccca conf: Use netmodules templateconf
These templates are shown when source openembedded build environment.
2022-02-10 09:30:01 +01:00
Mr Jenkins 7090550157 submodules: updated netmodule hashes, triggered by Jenkins (userId=downstream) 2022-02-08 21:46:18 +01:00
Mr Jenkins 7dd2298dde submodules: updated netmodule hashes, triggered by Jenkins (userId=downstream) 2022-01-10 17:39:20 +01:00
Mr Jenkins b46a3e72f1 submodules: updated community hashes, triggered by Alexandre Bard (userId=bard) 2021-12-29 15:45:44 +01:00
Marc Mattmueller a8c96aa206 jenkins/mmc: adapted for archiving armada bootloader artifacts
BugzID: 75924
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-12-14 12:32:53 +01:00
Marc Mattmueller 19e6acb19c jenkins: adapted clean build behavior
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-12-14 12:28:22 +01:00
Marc Mattmueller 0ebff0951e jenkins/sdk: added hw18 machine as preparation
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-12-13 15:53:02 +01:00
Marc Mattmueller 01fc39dd61 jenkins: added hw18 to the list of machines to build
BugzID: 75924
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-12-13 12:34:49 +01:00
Marc Mattmueller 413c6f554c jenkins: updated build discarder due to the additional images
The nightly build holds now 2x mmc and 1x ramdisk image for each
hw type. Thus the build discarder was updated.

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-12-06 15:55:30 +01:00
Alexandre Bard e05c9765f0 Jenkinsfile_mmcImages: Fix building of vcu images with wrong env
The vcu image has its one environment because it has its own
distribution.
2021-12-03 17:49:55 +01:00
Marc Mattmueller f8f47c11fb jenkins-mmc: added image type vcu as IMG_TYPE parameter
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-12-02 13:13:47 +01:00
Marc Mattmueller 87e59c35ed jenkins mmc: fixed release-image builds
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-11-30 09:08:29 +01:00
Mr Jenkins d33d96c505 submodules: updated netmodule hashes, triggered by Jenkins (userId=downstream) 2021-11-09 18:06:42 +01:00
Marc Mattmueller 6b8a34bd85 jenkins/update2head: exclude bblayers.conf from automatic commit
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-11-09 16:07:51 +01:00
Marc Mattmueller 68c04583aa jenkins/update2head: use src rev update in same shell command
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-11-01 09:25:41 +01:00
Mr Jenkins 7c77ed4315 submodules: updated netmodule hashes, triggered by Marc Mattmüller (userId=mattmueller) 2021-11-01 09:24:38 +01:00
Marc Mattmueller c987422f62 local.conf: set parallel threads to 8 (server has now 8 vcpu's)
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-27 15:59:50 +02:00
Marc Mattmueller 01e8be71b0 jenkins: used credential ID of the belonging server
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-27 15:58:42 +02:00
Marc Mattmueller 526eb8729b jenkins/ramdisk/mmc: provide ssh credential for build
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-27 11:56:20 +02:00
Marc Mattmueller bc58edf65d local.conf: remove check of /tmp (space and inodes)
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-27 11:45:10 +02:00
Marc Mattmueller 071a721e80 jenkins/sdk: provide ssh credential for sdk build
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-27 11:44:55 +02:00
Marc Mattmueller 55ac1c7307 jenkins: provided ssh credentials from master for git commands
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-26 19:24:43 +02:00
Marc Mattmueller 6a56c05981 jenkins/common: made cleanWorkspace dash compatible
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-21 11:57:08 +02:00
Marc Mattmueller cd3de28e5b jenkins/sdk: increased timeout from 5 to 8 hours
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-19 08:04:03 +02:00
Marc Mattmueller ea6bd036e1 jenkins/ramdisk/mmc: added parameter to overwrite the build node
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-14 13:02:15 +02:00
Marc Mattmueller 969fa192e9 jenkins/common: reverted the rsync part but added the set +x
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-13 14:21:15 +02:00
Marc Mattmueller b2ea75f1b9 jenkins/common: used set +x to remove rsync log output
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-13 13:36:14 +02:00
Marc Mattmueller 6848564543 src-rev/jenkins: adapted src-rev to handle packages from a file
the file autorev-packages.inc holds holds all recipes with a
SRCREV set to AUTOREV.
When releasing this file shall be used as base which recipes to
update.

BugzID: 75209
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-13 13:17:37 +02:00
Marc Mattmueller 0704618e91 jenkins/update2head: fixed coding convention
the curly brackets shall be used even on if statements with
only one line

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-13 13:17:37 +02:00
Marc Mattmueller f332dc9de8 autorev: added pathfile to autorevision list
As there might be multiple bb files which hold the same name, it
might be difficult in the future which one to set to AUTOREV. Thus
the list autorev-packages.inc was adapted with the path to the bb
file in the comment.

BugzID: 75209
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-13 13:17:37 +02:00
Marc Mattmueller 35cd165fd8 jenkins/common: set rsync to be quiet on jenkins output
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-13 12:32:37 +02:00
Marc Mattmueller 988558b95d jenkins/common: escaped $ from rsync command
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-13 08:37:35 +02:00
Marc Mattmueller d676264535 jenkins/common: replaced bash- to groovy comment sign
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-13 07:59:57 +02:00
Alexandre Bard e3cf8861d0 Jenkinsfile_Common: Reduce logs from rsync command
The "*" is expanded when the script is running on jenkins and the SRC is
local files. This expansion is hundreds of files, leading to hundreds of
lines in the jenkins logs. We don't need these lines.

BugzID: 75217
2021-10-12 15:53:59 +02:00
Marc Mattmueller 2ada8afbf8 jenkins/update2head/sdk: changed logrotator to 5 items to keep
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-12 14:26:44 +02:00
Marc Mattmueller fc4dd66c9f jenkins: added autorevision handling to mmc-, ramdisk and sdk pipelines
BugzID: 75209
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-12 11:58:35 +02:00
Marc Mattmueller e549b2b7fc jenkins: removed updating the source revisions
BugzID: 75209
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-12 11:45:53 +02:00
Marc Mattmueller c2f977f9fd local.conf: added autorev-packages file and included it in local.conf
BugzID: 75209
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-12 11:43:12 +02:00
Mr Jenkins 9ec3663642 submodules: updated community hashes, triggered by Alexandre Bard (userId=bard) 2021-10-11 14:12:51 +02:00
Alexandre Bard 0664961570 Jenkinsfile_update2head: Better display which layers are updated 2021-10-11 13:58:42 +02:00
Marc Mattmueller c459438f49 jenkins/common: put yocto env loading and src-rev handling in one command
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-11 13:13:19 +02:00
Marc Mattmueller 9fe49c131b jenkins/update2head: integrated updating source revisions
BugzID: 74523
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-11 09:26:12 +02:00
Marc Mattmueller 9b82e098ff src-rev-commit: added script to commit src rev changes
BugzID: 74523
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-11 09:26:12 +02:00
Marc Mattmueller 73fcaacfab jenkins/update2head: fixed typo
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-11 09:26:12 +02:00
Marc Mattmueller d50515c6d5 jenkins: added updating source revisions for nightly builds
BugzID: 74523
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-11 09:26:12 +02:00
Marc Mattmueller 85ca7a099e repo: added src-rev script to update source revisions
BugzID: 74523
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-11 09:26:12 +02:00
Marc Mattmueller d530642b18 jenkins/common: prevent cleaning when directory is not existing
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-05 10:22:52 +02:00
Marc Mattmueller c40dcce3d5 jenkins/common: added trailing slash to path for cleanup
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-10-04 11:14:26 +02:00
Mr Jenkins 331fecad75 submodules: updated netmodule hashes, triggered by Jenkins (userId=downstream) 2021-09-30 15:38:08 +02:00
Marc Mattmueller 07b6bc9641 jenkins: added cleaning workspace
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-09-29 14:34:58 +02:00
Marc Mattmueller a773ef59f0 release 1.4.0: fix netmodule submodules
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-09-17 08:25:35 +02:00
Marc Mattmueller d0467a5829 jenkins: increased artifact days to keep in ramdisk and mmc build
BugzID: 74496
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-09-16 08:05:11 +02:00
Marc Mattmueller deb8763414 mmcImages: mask out the bootloader artifacts using the machine type
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-09-06 19:24:56 +02:00
Alexandre Bard 9a4f1db328 Jenkinsfiles: Hide bitbake welcome message 2021-08-26 15:09:34 +02:00
Alexandre Bard d9f7f04bfc Jenkinsfiles: Execute commands silently 2021-08-26 14:03:14 +02:00
Marc Mattmueller dcc5b24f9e jenkins/sdk: added parameter for build node
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-08-26 08:54:13 +02:00
Mr Jenkins 912d04ac0a submodules: updated community hashes, triggered by Alexandre Bard (userId=bard) 2021-08-25 09:48:29 +02:00
Marc Mattmueller 6fcf293fc2 jenkins/mmcImages: removed fitImage artifact from package
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-08-23 17:34:47 +02:00
Marc Mattmueller 0db0db4cb5 jenkins/sdk: set build label to oem-ci as trial
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-08-23 10:19:25 +02:00
Alexandre Bard 79c39921ce RamdiskImages: Remove tmp dir once archived
BugzID: 74217
2021-08-12 18:42:14 +02:00
Alexandre Bard bab4288468 env files: Simplify
We don't need anymore the DISTRO_TYPE, DISTRO_OSTREE and MACHINE_TYPE.

Also the "set -a" was causing troubles after sourcing the script in ZSH
and doing copy-pastes. Therefore we just export the required variables.
2021-08-12 17:55:48 +02:00
Marc Mattmueller 515c0c494e jenkins/mmc: adapted fitImage name for the artifact archiving
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-08-03 13:20:01 +02:00
Marc Mattmueller 8f59810e3d jenkins/ramdisk: updated pipeline with removal of the rootfs tar.gz
the tar.gz is no replaced with the cpio.gz package, i.e. the cpio.gz
package is included in the deployed package

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-08-03 12:23:35 +02:00
Marc Mattmueller 1999738798 jenkins/ramdisk: removed additional directory in deploy dir
there is no difference between lava and minimal image regarding
content of the deploy dir. The difference is made on the build
directory itself

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-08-03 09:50:50 +02:00
Marc Mattmueller e592e847b2 jenkins/sdk: use lxbuild4 to build sdks in parallel
as the number of parallel threads are set back to 4 the SDK can
be built on lxbuild4 in parallel

BugzID: 74051
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-08-02 11:29:35 +02:00
Marc Mattmueller bc7ef4cd89 jenkins/sdk: fetch all before cleaning all
BugzID: 74051
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-08-02 11:12:33 +02:00
Marc Mattmueller e7d3a5a4e7 jenkins/sdk: removed disabling concurrent build
BugzID: 74051
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-08-02 10:39:11 +02:00
Marc Mattmueller 2849ade985 jenkins/sdk: set label to balance on both build server
BugzID: 74051
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-08-02 10:27:52 +02:00
Marc Mattmueller be3a70b6c2 local.conf: set parallel threads back to 4 (due to 2 jobs in parallel)
it is possible that two build jobs run on the same build server (e.g.
mmc- and a ramdisk job). Thus 8 parallel threads are slowing the
build more down than speeding it up.

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-29 21:41:06 +02:00
Marc Mattmueller d28fa7cd28 jenkins/mmc: added cleaning leftovers in perparing stage
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-29 15:55:22 +02:00
Marc Mattmueller f08b93c154 jenkins: cleaned the artifact directory instead of tmp-out dir
cleaning the tmp-out dir if desired, which is needed when building
the dev image where the bootloader is archived first

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-29 15:26:25 +02:00
Marc Mattmueller daca933bfd jenkins: added image type argument to archive different images in one job
BugzID: 73966
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-29 08:55:31 +02:00
Marc Mattmueller 88508cb44e jenkins: set build dir postfix in prepare stage and re-ordered cleanup in sdk
the environment variable of the build dir postfix part was null and
thus the wrong path set up.

in the sdk prepare part there is a cleaning of left overs before
the submodules might be available.

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-28 13:42:29 +02:00
Marc Mattmueller 701dbdc6f0 jenkins/common: created download directory in build-common on clean build
BugzID: 73973
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-28 11:04:39 +02:00
Marc Mattmueller c87a2558b4 local.conf: increased the number of parallel threads from 4 to 8 for fct and min
as we have now different build directories, the different config files
need to be adapted too

BugzID: 73967
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-28 10:46:44 +02:00
Marc Mattmueller 58108d6b66 jenkins/common: adpated path of the download directory
in case 73920 the download directory path was adapted too. Thus the
path needed to be adpated.

BugzID: 73973
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-28 10:42:45 +02:00
Marc Mattmueller 9e0a7a6ab4 jenkins: changed yocto build directories
In case 73920 are additional build directories created. The yocto
build pipelines needed to be updated.

BugzID: 73973
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-28 10:42:45 +02:00
Marc Mattmueller 0e595a5b30 local.conf: increased the number of parallel builds from 4 to 8
BugzID: 73967
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-28 10:17:10 +02:00
Marc Mattmueller 69a7bdec43 jenkins/mmcImages: changed pipeline as bootloader is built with dev image
BugzID: 73966
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-28 10:16:45 +02:00
Lucien Mueller c9caaba9ad Update BUILDHISTORY_COMMIT_AUTHOR.
Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-07-28 09:56:03 +02:00
Lucien Mueller 1fdf613433 Create additional build folders.
minimal-image -> build-minimal
ostree images (dev,vcu) -> build
fct/lava-image -> build-fct

BugzID: 73920

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2021-07-28 09:56:03 +02:00
Marc Mattmueller b2eae52e5c jenkins/mmcImages: use ostree environment for bootloader
BugzID: 73919
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-26 14:40:58 +02:00
Marc Mattmueller 154496719e jenkins/update2head: skip push if nothing available to commit
BugzID_ 73789
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-21 11:10:20 +02:00
Marc Mattmueller 664c1f68d5 jenkins/update2head: moved archive submoudle hash file to update stage
the residing file is now also removed

BugzID: 73789
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-21 10:59:29 +02:00
Marc Mattmueller b106e6f4fe jenkins/update2head: fixed triggered user when cron starts a build
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-21 09:47:50 +02:00
Marc Mattmueller 612524ea30 jenkinsfile: removed jenkinsfile, is replaced by mmc- and ramdiskImages
The jenkinsfile is split into separate pipelines for sdk, mmc images
and ramdisk images. Thus this file is obsolete and is removed

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-20 12:52:19 +02:00
Mr Jenkins c087d58bc3 submodules: updated netmodule hashes, triggered by null (userId=null) 2021-07-19 15:41:14 +02:00
Marc Mattmueller 7bafb55371 Jenkinsfiles: set ramdisk and mmc image build lavels to oem-ci
BugzID: 73757
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-14 11:37:53 +02:00
Marc Mattmueller 5b3c82c7e2 jenkins_common: use the same versioning for the sdk as for fct
BugzID: 73674
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-08 10:54:53 +02:00
Marc Mattmueller 3d0c6767c1 jenkins_sdk: cleaned up and changed archiving
the heap size of the java engine was exceeded when using archive
artifacts, thus the archiving is now done by deploying the sdk to
nexus.

additionally a cleaning of leftovers is added in the preparing
stage and the stage collecting the revisions is removed.

BugzID: 73631
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-08 09:48:18 +02:00
Marc Mattmueller 15832f8603 Jenkinsfile_mmcImages: do not archive ostree when building bootloader
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-07 16:16:27 +02:00
Marc Mattmueller c324a95b49 Jenkinsfile_sdk: made artifact path relative to use regex
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-07 15:32:52 +02:00
Marc Mattmueller d7c7c7af87 jenkins: set build timeout from 8h down to 5h
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-07 14:50:20 +02:00
Marc Mattmueller f48295d249 jenkins_common: fixed variable typo
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-07 09:45:40 +02:00
Marc Mattmueller 2c34abe54b jenkinsfiles: set status aborted if machine parameter is missing
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-07 09:15:44 +02:00
Marc Mattmueller bf7d5e86a4 Jenkinsfile_update2head: checkout branch before committing
the job is performing a swallowed checkout which leads to a
detached HEAD. Thus the branch need to be checked out before
committing and pushing

BugzID: 74574
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-06 16:43:21 +02:00
Mr Jenkins 24866de9a0 submodules: updated community hashes, triggered by Marc Mattmüller (userId=mattmueller) 2021-07-06 16:40:33 +02:00
Marc Mattmueller 9321361765 Jenkinsfiles: integrated updating only netmodule layers in split job files
Within the big jenkins file only the netmodule layers are updated
when the release string is empty of latest. This change is now
integrated into the split jenkins files.

BugzID: 73564
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-06 16:18:35 +02:00
Marc Mattmueller 8a477f0117 jenkinsfile_update2head: set build server with label oem-linux
perform an update in the submodule init part

BugzID: 73574
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-06 12:55:01 +02:00
Marc Mattmueller 32ab6f42ca jenkinsfile_update2head: added info about triggered user to commit msg
BugzID: 73574
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-06 12:55:01 +02:00
Marc Mattmueller d34fa204e1 jenkinsfile_update2head: added info about updated layers to commit msg
BugzID: 73574
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-06 12:55:01 +02:00
Marc Mattmueller e9ee8240e3 jenkinsfile_update2head: added pipeline for automatic submodule updating
BugzID: 73574
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-06 12:55:01 +02:00
Marc Mattmueller d04eba6caa jenkinsfile: update only netmodule layers in a nightly build
BugzID: 73574
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-06 12:55:01 +02:00
Marc Mattmueller f4596c90b3 jenkinsfile_sdk: added flag to build sdk from dev image
After a team discussion it would be good to have the possibility to
build an SDK from a dev image. Therefore a job parameter is
added.

BugzID: 73564

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-05 14:11:28 +02:00
Marc Mattmueller 55c9f8d9b0 Jenkinsfile_sdk: adapted build command according changes in fb73552
BugzID: 73564

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-01 12:51:29 +02:00
Marc Mattmueller 11962381b9 jenkinsfile: added jenkins pipeline for building the SDK
The SDK bases on the ostree dev image

BugzID: 73564

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-01 09:08:17 +02:00
Marc Mattmueller 3534420590 jenkinsfile: split ramdisk and mmc images into separate pipelines
Common parts of those pipelines are extracted into a common part.
Each pipeline loads this common part as module to get access to
its functions.
This is also the base for adding a job generating the SDK

BugzID: 73564

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-07-01 09:01:20 +02:00
Marc Mattmueller 212ddb8d13 1.2.5: prepared submodules for rls 1.2.5
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-06-10 19:45:14 +02:00
Marc Mattmueller 0aed4eb233 jenkins: fixed bad subtitution in bootloader build and archive
BugzID: 72761

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-20 08:05:55 +02:00
Marc Mattmueller 7a132670d1 reverting "jenkins: remove build history directory before collecting srcrevs"
This reverts commit af6f1b4c4e.

This revert shall test if this is the reason that the nightly
build takes that long...
2021-05-11 14:29:15 +02:00
Marc Mattmueller 69eec3c790 jenkins: using build_user and sshagent for sync-ing yocto downloads
our AD user 'build_user' was adapted for having an SSH key. Jenkins
was configured to have this user with its key under Credentials so
that the sshagent could be used.
This way seems to be the most secure way performing ssh connections.

BugzID: 71491

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-06 15:21:05 +02:00
Marc Mattmueller 9a3028afaa jenkins: sync binary storage before and after build
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-06 12:07:03 +02:00
Marc Mattmueller db60b919eb jenkins: prepared function to synchronize yocto downloads
BugzID: 71491

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-06 12:07:03 +02:00
Marc Mattmueller 669ba32c6a jenkins: harmonized parameter references renamed MACHINE_TYPE to MACHINE
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-06 12:07:03 +02:00
Marc Mattmueller bf0c96713a jenkins: harmonized syntax of function names
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-06 12:05:35 +02:00
Marc Mattmueller 02c486bd2f openembedded: added new hash for tracking nightly builds
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-06 08:41:58 +02:00
Marc Mattmueller af6f1b4c4e jenkins: remove build history directory before collecting srcrevs
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-05 11:21:36 +02:00
45 changed files with 306 additions and 339 deletions

277
Jenkinsfile vendored
View File

@ -1,277 +0,0 @@
// declarative pipeline
pipeline {
agent {
node {
label 'lxbuild4'
}
}
parameters {
choice(name: 'MACHINE_TYPE', choices: ['select...', 'am335x-nrhw20', 'am335x-nmhw21', 'imx8-nmhw23', 'am335x-nmhw24', 'am335x-hw25', 'am335x-hw26'], description: 'choose target platform')
choice(name: 'IMAGE_TYPE', choices: ['bootloader', 'release', 'dev', 'vcu', 'lava', 'fct', 'minimal', 'sdk'], description: 'choose target platform')
string(name: 'RLS_VERSION', defaultValue: '', description: 'Set the version to build and use committed submodules')
booleanParam(name: 'COLLECT_REV', defaultValue: false, description: 'collect the used revisions')
booleanParam(name: 'CLEAN_BUILD', defaultValue: false, description: 'clean all temp directories before build starts')
}
environment {
PACKAGE_NAME = 'nm-os'
MACHINE = "${MACHINE_TYPE}"
SHARED_BUILD = "${WORKSPACE}/build"
build_deploy = "${SHARED_BUILD}/tmp/deploy/images/${MACHINE}"
build_licenses = "${SHARED_BUILD}/tmp/deploy/licenses"
buildhistory = "${SHARED_BUILD}/buildhistory"
DISTRO_VERSION_PATHNAME = "${SHARED_BUILD}/conf/distro_version.inc"
DISTRO_VERSION_FILE = "distro_version.inc"
SUBMODULE_VERION_FILE = "submodule_revisions"
AUTOREV_VERSION_FILE = "autorev_revisions.inc"
}
options {
timeout(time: 8, unit: 'HOURS')
buildDiscarder(
logRotator(numToKeepStr: '50',
daysToKeepStr: '1',
artifactNumToKeepStr: '50',
artifactDaysToKeepStr: '1'
)
)
disableConcurrentBuilds()
}
stages {
stage('prepare') {
steps {
script {
if("${params.MACHINE_TYPE}" == "select...") {
error("Missing machine type --> select parameter MACHINE_TYPE for a proper build")
}
handle_submodules("${params.RLS_VERSION}")
version = build_version("${params.RLS_VERSION}")
println "----------------------------------\n Job Parameters:\n----------------------------------\n\
MACHINE_TYPE = ${params.MACHINE_TYPE}\n\
IMAGE_TYPE = ${params.IMAGE_TYPE}\n\
CLEAN_BUILD = ${params.CLEAN_BUILD}\n\
COLLECT_REV = ${params.COLLECT_REV}\n\
RLS_VERSION = ${params.RLS_VERSION}\n\
--> version = ${version}\n\
----------------------------------\n"
env.BUILD_VERSION = "${version}"
currentBuild.displayName = "${version}-${MACHINE}-${IMAGE_TYPE}" //replace Bitbake timestamp after building
change_distro_version("${version}")
}
writeFile file: 'VERSION', text: "${PACKAGE_NAME}: ${BUILD_VERSION}"
}
}
stage('clean') {
when { expression { return params.CLEAN_BUILD } }
steps {
dir ("${SHARED_BUILD}/tmp") { deleteDir() }
dir ("${SHARED_BUILD}/tmp-glibc") { deleteDir() }
}
}
stage('collect versions') {
when { expression { return params.COLLECT_REV } }
steps {
script {
revisions = getAutoRevHashes()
writeFile(file: "${env.AUTOREV_VERSION_FILE}", text: "${revisions}")
}
}
post {
success {
archiveArtifacts(artifacts: "${env.SUBMODULE_VERION_FILE}, ${env.AUTOREV_VERSION_FILE}, ${env.DISTRO_VERSION_FILE}", onlyIfSuccessful: false)
}
}
}
stage('build') {
steps {
script {
build_and_archive()
}
dir ('tmp/artifacts') {
zip archive: true, dir: "${WORKSPACE}/tmp/build-output", glob: "*", zipFile: "${PACKAGE_NAME}-${BUILD_VERSION}-${machine}-${IMAGE_TYPE}.zip"
}
sh "rm -rf ${WORKSPACE}/tmp"
}
}
} // stages
}
def isRelease(versionParam) {
if((versionParam == "") || (versionParam == "latest")) {
return false
}
return true
}
def handle_submodules(versionParam) {
sh 'git submodule init'
if(isRelease(versionParam)) {
sh 'git submodule update' // set all submodules to freezed commit
}
else {
sh 'git submodule update --remote --rebase' // update all submodules to HEAD
}
submoduleStatus = sh(returnStdout: true, script: "git submodule status").trim() // print submodule hashes to jenkins log
println "${submoduleStatus}"
writeFile(file: "${env.SUBMODULE_VERION_FILE}", text: "${submoduleStatus}")
}
def build_version(versionParam) {
sh 'git fetch -p'
sh 'git fetch -t'
def gitCmd = "git describe --tags"
if(!isRelease(versionParam)) {
gitCmd = "${gitCmd} --dirty"
}
gitversion = sh(returnStdout: true, script: "${gitCmd}").trim()
String[] versionArr = "${gitversion}".split("-")
if(isRelease(versionParam)) {
String newVersionStr = versionParam
versionArr[0] = newVersionStr
}
else {
if(params.IMAGE_TYPE != 'fct') {
def buildnbr = getTopUpstreamBuildNumber()
String nightlyPart = versionArr[0] + ".Test${buildnbr}"
versionArr[0] = nightlyPart
}
}
rlsVersion = versionArr.join("-")
return rlsVersion
}
def change_distro_version(versionString){
println "Set the distro version to ${versionString}..."
def versionTag = "DISTRO_VERSION = \"${versionString}\""
writeFile(file: "${env.DISTRO_VERSION_PATHNAME}", text: "${versionTag}")
sh(script: "cp ${env.DISTRO_VERSION_PATHNAME} ${env.DISTRO_VERSION_FILE}")
}
def cleanup_distro_version() {
println "cleaning repository regarding distro version..."
sh(script:"git clean -f ${env.DISTRO_VERSION_PATHNAME}")
}
def build_and_archive() {
if (params.IMAGE_TYPE == 'sdk') {
sh "bash -c '. ./env.image-ostree && bitbake -k netmodule-linux-image -c populate_sdk'"
zip archive: true, dir: "${HOME}/yocto-share/build/tmp/deploy/sdk", glob: '*.sh', zipFile: "${PACKAGE_NAME}-${BUILD_VERSION}-${MACHINE}-sdk.zip"
}
else if (params.IMAGE_TYPE == 'bootloader') {
sh "bash -c '. ./env.common && bitbake virtual/bootloader'"
dir ('tmp/build-output') {
sh 'cp ${build_deploy}/*u-boot-${MACHINE_TYPE}*.img . || true'
sh 'cp ${build_deploy}/*u-boot-${MACHINE_TYPE}*.xmodem.bin . || true'
sh 'cp ${build_deploy}/imx-boot . || true'
sh 'cp ${build_deploy}/imx-boot.sd . || true'
}
}
else if (params.IMAGE_TYPE == 'vcu') {
build('vcu', 'vcu', false)
archive('vcu', false)
}
else if (params.IMAGE_TYPE == 'lava' || params.IMAGE_TYPE == 'fct' || params.IMAGE_TYPE == 'minimal') {
build(params.IMAGE_TYPE, params.IMAGE_TYPE, true)
archive(params.IMAGE_TYPE, true)
}
else if (params.IMAGE_TYPE == 'release') {
build('ostree', '', false)
archive('', false)
}
else {
build('ostree', params.IMAGE_TYPE, false)
archive(params.IMAGE_TYPE, false)
}
}
def build(env_in, image_type_in, single_fitImage) {
def env = "${env_in}" == "" ? "" : "-${env_in}"
def image_type = "${image_type_in}" == "" ? "" : "-${image_type_in}"
if (single_fitImage) {
sh "bash -c '. ./env.image${env} && bitbake -k virtual/netmodule-image'"
} else {
/* The following workaround can be removed once the explanation for the missing lic has been found */
if (! fileExists("build/tmp/deploy/licenses/gpsd"))
sh "bash -c '. ./env.image${env} && bitbake -fc populate_lic gpsd'"
if (! fileExists("build/tmp/deploy/licenses/ostree-kernel-initramfs"))
sh "bash -c '. ./env.image${env} && bitbake -fc populate_lic ostree-kernel-initramfs'"
sh "bash -c '. ./env.image${env} && bitbake -k netmodule-linux-image${image_type}'"
}
}
def archive(image_type_in, single_fitImage) {
def image_type = "${image_type_in}" == "" ? "" : "-${image_type_in}"
dir ("tmp/build-output") {
def image_basename = "netmodule-linux-image${image_type}-${MACHINE}"
def basename_in = "${build_deploy}/${image_basename}"
def basename_out = "./image${image_type}-${MACHINE}"
sh "cp ${basename_in}.manifest ${basename_out}.manifest"
sh "bash -c '${WORKSPACE}/openembedded-core/scripts/buildhistory-collect-srcrevs -p ${buildhistory} > srcrev-${MACHINE}${image_type}.inc'"
sh label: 'Copy License Manifest', returnStatus: true, script: """
LATEST_LICENSE_DIR=\$(ls -Artd ${build_licenses}/netmodule-linux-image${image_type}* | tail -n 1)
cp \$LATEST_LICENSE_DIR/license.manifest ${basename_out}_license.manifest"""
if (single_fitImage == false) {
sh label: 'Copy initramfs License Manifest', returnStatus: true, script: """
LATEST_LICENSE_DIR=\$(ls -Artd ${build_licenses}/initramfs-ostree-image-${MACHINE}-* | tail -n 1)
cp \$LATEST_LICENSE_DIR/license.manifest initramfs-ostree-image_license.manifest
"""
}
if(single_fitImage){
if(image_type_in == "minimal")
sh "cp ${build_deploy}/initramfs-linux/fitImage-${image_basename}-${MACHINE} fitImage-${image_basename}"
else
sh "cp ${build_deploy}/fct-linux/fitImage-${image_basename}-${MACHINE} fitImage-${image_basename}"
sh "cp ${basename_in}.tar.gz ${basename_out}.tar.gz"
}
else {
sh "cp ${build_deploy}/fitImage-${MACHINE}.bin ."
sh "cp ${basename_in}.ota-ext4 ${basename_out}.ota-ext4"
sh "cp ${basename_in}.wic ${basename_out}.wic"
def ostree_archive = "ostree_repo${image_type}.tar.gz"
sh "tar czf ./${ostree_archive} -C ${build_deploy}/ostree_repo ."
archiveArtifacts artifacts: "${ostree_archive}", onlyIfSuccessful: true
sh "rm -f ./${ostree_archive}"
}
}
}
def getTopUpstreamBuildNumber() {
// Iterating though all upstream jobs:
// currentBuild.upstreamBuilds.each { item ->
// echo "upstream build: ${item}"
// def nbr = item.getNumber()
// echo "nbr=${nbr}"
// }
def upstreamJobList = currentBuild.upstreamBuilds
def nbrOfUpstreamJobs = upstreamJobList.size()
if (nbrOfUpstreamJobs == 0)
return 0;
def topJob = upstreamJobList[nbrOfUpstreamJobs-1]
println "Top upstream project: " + topJob.getFullDisplayName()
def topJobNbr = topJob.getNumber()
println "Top upstream job build Number = ${topJobNbr}"
return topJobNbr
}
def getAutoRevHashes() {
sh(script: "bash -c '. ./env.image-ostree && bitbake netmodule-linux-image-dev --runall=fetch'")
def revs = sh(returnStdout: true, script: "bash -c \". ./env.image-ostree > /dev/null && buildhistory-collect-srcrevs\"").trim()
return revs
}

54
autorev-packages.inc Normal file
View File

@ -0,0 +1,54 @@
#./meta-netmodule-bsp/recipes-kernel/ssc-sysstate-driver/ssc-sysstate-driver_git.bb
SRCREV_ssc-sysstate-driver = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-kernel/ssc-broker-driver/ssc-broker-driver_git.bb
SRCREV_ssc-broker-driver = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-kernel/ssc-extmod-driver/ssc-extmod-driver_git.bb
SRCREV_ssc-extmod-driver = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-kernel/dt-overlay/dt-overlay_1.0.bb
SRCREV_dt-overlay = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-kernel/linux/linux-netmodule_git.bb
SRCREV_linux-netmodule = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-connectivity/nmubxlib/nmubxlib.bb
SRCREV_nmubxlib = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-connectivity/gnss-mgr/gnss-mgr.bb
SRCREV_gnss-mgr = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-connectivity/wwan-config/wwan-config.bb
SRCREV_wwan-config = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-connectivity/modemmanager/modemmanager_git.bb
SRCREV_modemmanager = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-bsp/bootloader-config/bootloader-config.bb
SRCREV_bootloader-config = "${AUTOREV}"
#./meta-netmodule-bsp/freescale/recipes-imx/imx-atf/imx-atf_1.5.0.bb
SRCREV_imx-atf = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-bsp/u-boot/u-boot-imx8-nmhw23_git.bb
SRCREV_u-boot-imx8-nmhw23 = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-bsp/u-boot/u-boot-armada_git.bb
SRCREV_u-boot-armada = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-bsp/u-boot/u-boot-ti33x_git.bb
SRCREV_u-boot-ti33x = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-core/udev/udev-rules-nmhw_git.bb
SRCREV_udev-rules-nmhw = "${AUTOREV}"
#./meta-netmodule-distro/recipes-tools/nmhw-fwupdate/nmhw-fwupdate.bb
SRCREV_nmhw-fwupdate = "${AUTOREV}"
#./meta-netmodule-distro/recipes-tools/libnmapp/libnmapp_git.bb
SRCREV_libnmapp = "${AUTOREV}"
#./meta-netmodule-distro/recipes-tools/ssf-mgr/ssf-mgr_git.bb
SRCREV_ssf-mgr = "${AUTOREV}"
#./meta-netmodule-distro/recipes-tools/sys-mon/sys-mon_git.bb
SRCREV_sys-mon = "${AUTOREV}"
#./meta-netmodule-bsp/recipes-bsp/storage-info/storage-info.bb
SRCREV_storage-info = "${AUTOREV}"
#./meta-netmodule-distro/recipes-tools/battery-test/battery-test_git.bb
SRCREV_battery-test = "${AUTOREV}"
#./meta-netmodule-fct/recipes-testing/fct/fct.bb
SRCREV_fct = "${AUTOREV}"
#./meta-netmodule-fct/recipes-testing/provisioning/provisioning.bb
SRCREV_provisioning = "${AUTOREV}"
#./meta-netmodule-fct/recipes-testing/badassbd/badassbd.bb
SRCREV_badassbd = "${AUTOREV}"
#./meta-netmodule-fct/recipes-connectivity/toast/toast.bb
SRCREV_toast = "${AUTOREV}"
#./meta-netmodule-om/recipes-navigation/gpsd/gpsd_om-3.20.bb
SRCREV_gpsd_om = "${AUTOREV}"
#./meta-netmodule-private/recipes-extended/hydra/hydra_1.0.0.bb
SRCREV_hydra = "${AUTOREV}"

@ -1 +1 @@
Subproject commit 017a39ed05d065bf28fd38f91bcde8a098300551
Subproject commit 0784db7dd0fef6f0621ad8d74372f44e87fef950

View File

@ -0,0 +1,25 @@
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "7"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
YOCTOROOT = "${@os.path.abspath(os.path.join("${TOPDIR}", os.pardir))}"
BBLAYERS ?= " \
${YOCTOROOT}/openembedded-core/meta \
${YOCTOROOT}/meta-netmodule-wlan \
${YOCTOROOT}/meta-netmodule-bsp \
${YOCTOROOT}/meta-netmodule-distro \
${YOCTOROOT}/meta-netmodule-private \
${YOCTOROOT}/meta-openembedded/meta-python \
${YOCTOROOT}/meta-openembedded/meta-oe \
${YOCTOROOT}/meta-openembedded/meta-networking \
${YOCTOROOT}/meta-openembedded/meta-filesystems \
${YOCTOROOT}/meta-updater \
${YOCTOROOT}/meta-freescale \
${YOCTOROOT}/meta-ublox-module \
${YOCTOROOT}/meta-netmodule-om \
${YOCTOROOT}/meta-netmodule-fct \
"

48
build-fct/conf/local.conf Normal file
View File

@ -0,0 +1,48 @@
BB_NUMBER_THREADS ?= "8"
PARALLEL_MAKE ?= "-j 8"
PACKAGE_CLASSES ?= "package_rpm"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"
EXTRA_IMAGE_FEATURES_append = " debug-tweaks"
ERROR_QA_remove += "version-going-backwards"
#WARN_QA_append += "version-going-backwards"
#https://www.yoctoproject.org/docs/2.5.2/ref-manual/ref-manual.html#ref-classes-insane
#PRSERV_HOST = "localhost:0"
SSTATE_DIR="${YOCTOROOT}/build-common/sstate-cache"
DL_DIR="${YOCTOROOT}/build-common/downloads"
BUILDHISTORY_COMMIT = "1"
BUILDHISTORY_COMMIT_AUTHOR = "Mr Jenkins <alexandre.bard@netmodule.com>"
# Add licences file to the rootfs
COPY_LIC_MANIFEST = "1"
COPY_LIC_DIRS = "1"
LICENSE_CREATE_PACKAGE = "1"
INHERIT += "buildhistory buildstats-summary"
# enable upstream check to use head of branch:
UPSTREAM_CHECK_COMMITS = "1"
YOCTOROOT = "${@os.path.abspath(os.path.join("${TOPDIR}", os.pardir))}"
PREMIRRORS_prepend = "\
git://.*/.* file://${YOCTOROOT}/sla-mirror/ \n \
ftp://.*/.* file://${YOCTOROOT}/sla-mirror/ \n \
http://.*/.* file://${YOCTOROOT}/sla-mirror/ \n \
https://.*/.* file://${YOCTOROOT}/sla-mirror/ \n"
include ../../autorev-packages.inc
include distro_version.inc

View File

@ -0,0 +1 @@
../meta-netmodule-fct/conf

View File

@ -0,0 +1,24 @@
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "7"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
YOCTOROOT = "${@os.path.abspath(os.path.join("${TOPDIR}", os.pardir))}"
BBLAYERS ?= " \
${YOCTOROOT}/openembedded-core/meta \
${YOCTOROOT}/meta-netmodule-wlan \
${YOCTOROOT}/meta-netmodule-bsp \
${YOCTOROOT}/meta-netmodule-distro \
${YOCTOROOT}/meta-netmodule-private \
${YOCTOROOT}/meta-openembedded/meta-python \
${YOCTOROOT}/meta-openembedded/meta-oe \
${YOCTOROOT}/meta-openembedded/meta-networking \
${YOCTOROOT}/meta-openembedded/meta-filesystems \
${YOCTOROOT}/meta-updater \
${YOCTOROOT}/meta-freescale \
${YOCTOROOT}/meta-ublox-module \
${YOCTOROOT}/meta-netmodule-om \
"

View File

@ -0,0 +1,48 @@
BB_NUMBER_THREADS ?= "8"
PARALLEL_MAKE ?= "-j 8"
PACKAGE_CLASSES ?= "package_rpm"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"
EXTRA_IMAGE_FEATURES_append = " debug-tweaks"
ERROR_QA_remove += "version-going-backwards"
#WARN_QA_append += "version-going-backwards"
#https://www.yoctoproject.org/docs/2.5.2/ref-manual/ref-manual.html#ref-classes-insane
#PRSERV_HOST = "localhost:0"
SSTATE_DIR="${YOCTOROOT}/build-common/sstate-cache"
DL_DIR="${YOCTOROOT}/build-common/downloads"
BUILDHISTORY_COMMIT = "1"
BUILDHISTORY_COMMIT_AUTHOR = "Mr Jenkins <alexandre.bard@netmodule.com>"
# Add licences file to the rootfs
COPY_LIC_MANIFEST = "1"
COPY_LIC_DIRS = "1"
LICENSE_CREATE_PACKAGE = "1"
INHERIT += "buildhistory buildstats-summary"
# enable upstream check to use head of branch:
UPSTREAM_CHECK_COMMITS = "1"
YOCTOROOT = "${@os.path.abspath(os.path.join("${TOPDIR}", os.pardir))}"
PREMIRRORS_prepend = "\
git://.*/.* file://${YOCTOROOT}/sla-mirror/ \n \
ftp://.*/.* file://${YOCTOROOT}/sla-mirror/ \n \
http://.*/.* file://${YOCTOROOT}/sla-mirror/ \n \
https://.*/.* file://${YOCTOROOT}/sla-mirror/ \n"
include ../../autorev-packages.inc
include distro_version.inc

View File

@ -0,0 +1 @@
meta/conf

View File

@ -21,5 +21,4 @@ BBLAYERS ?= " \
${YOCTOROOT}/meta-freescale \
${YOCTOROOT}/meta-ublox-module \
${YOCTOROOT}/meta-netmodule-om \
${YOCTOROOT}/meta-netmodule-fct \
"

View File

@ -1,5 +1,5 @@
BB_NUMBER_THREADS ?= "4"
PARALLEL_MAKE ?= "-j 4"
BB_NUMBER_THREADS ?= "8"
PARALLEL_MAKE ?= "-j 8"
PACKAGE_CLASSES ?= "package_rpm"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
@ -7,11 +7,9 @@ BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
ABORT,${SSTATE_DIR},100M,1K"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"
EXTRA_IMAGE_FEATURES_append = " debug-tweaks"
@ -22,8 +20,11 @@ ERROR_QA_remove += "version-going-backwards"
#PRSERV_HOST = "localhost:0"
SSTATE_DIR="${YOCTOROOT}/build-common/sstate-cache"
DL_DIR="${YOCTOROOT}/build-common/downloads"
BUILDHISTORY_COMMIT = "1"
BUILDHISTORY_COMMIT_AUTHOR = "Mr Jenkins <ramon.moesching@netmodule.com>"
BUILDHISTORY_COMMIT_AUTHOR = "Mr Jenkins <alexandre.bard@netmodule.com>"
# Add licences file to the rootfs
COPY_LIC_MANIFEST = "1"
@ -32,6 +33,9 @@ LICENSE_CREATE_PACKAGE = "1"
INHERIT += "buildhistory buildstats-summary"
# enable upstream check to use head of branch:
UPSTREAM_CHECK_COMMITS = "1"
YOCTOROOT = "${@os.path.abspath(os.path.join("${TOPDIR}", os.pardir))}"
PREMIRRORS_prepend = "\
@ -40,4 +44,6 @@ PREMIRRORS_prepend = "\
http://.*/.* file://${YOCTOROOT}/sla-mirror/ \n \
https://.*/.* file://${YOCTOROOT}/sla-mirror/ \n"
include ../../autorev-packages.inc
include distro_version.inc

View File

@ -0,0 +1 @@
../meta-netmodule-distro/conf

View File

@ -1,18 +0,0 @@
set -a # exports all variables
# exporting DISTRO*
DISTRO_OSTREE=$DISTRO_OSTREE
DISTRO_TYPE=$DISTRO_TYPE
DISTRO=netmodule-linux$DISTRO_OSTREE$DISTRO_TYPE
if [ -z "$MACHINE" ]; then
. ./machine_select
fi
MACHINE_TYPE=$(echo $MACHINE | rev | cut -f2- -d- | rev)
echo Building for machine $MACHINE, distro: $DISTRO
OSTREE_OSNAME=nm-linux
. ./openembedded-core/oe-init-build-env

View File

@ -1,4 +0,0 @@
DISTRO_OSTREE=""
DISTRO_TYPE=""
. ./env.common

View File

@ -1,4 +0,0 @@
DISTRO_OSTREE=""
DISTRO_TYPE="-fct"
. ./env.common

View File

@ -1,4 +0,0 @@
DISTRO_OSTREE=""
DISTRO_TYPE="-lava"
. ./env.common

View File

@ -1,4 +0,0 @@
DISTRO_OSTREE=""
DISTRO_TYPE="-minimal"
. ./env.common

View File

@ -1,4 +0,0 @@
DISTRO_OSTREE="-ostree"
DISTRO_TYPE=""
. ./env.common

View File

@ -1,5 +0,0 @@
DISTRO_OSTREE="-ostree"
DISTRO_TYPE="-vcu"
. ./env.common

24
env/common vendored Normal file
View File

@ -0,0 +1,24 @@
if [ -z "$DISTRO" ]; then
echo "No distro selected. Please source a helper script (env/distro/*)"
return
fi
if [ -z "$MACHINE" ]; then
echo "No machine selected. Please source a helper script (env/machine/*)"
return
fi
echo
echo Build parameters:
printf "\tMACHINE = $MACHINE\n"
printf "\tDISTRO = $DISTRO\n"
echo
export DISTRO
export MACHINE
export OSTREE_OSNAME=nm-linux
# Moving back to top yocto directory (env/..)
env_path=${BASH_SOURCE:-$0}
cd $(dirname $env_path)/..
source openembedded-core/oe-init-build-env build$BUILD_FOLDER_APPEND

4
env/distro/base-image vendored Normal file
View File

@ -0,0 +1,4 @@
DISTRO="netmodule-linux"
BUILD_FOLDER_APPEND=""
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

4
env/distro/fct-image vendored Normal file
View File

@ -0,0 +1,4 @@
DISTRO="netmodule-linux-fct"
BUILD_FOLDER_APPEND="-fct"
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

4
env/distro/lava-image vendored Normal file
View File

@ -0,0 +1,4 @@
DISTRO="netmodule-linux-lava"
BUILD_FOLDER_APPEND="-fct"
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

4
env/distro/minimal-image vendored Normal file
View File

@ -0,0 +1,4 @@
DISTRO="netmodule-linux-minimal"
BUILD_FOLDER_APPEND="-minimal"
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

4
env/distro/ostree-image vendored Normal file
View File

@ -0,0 +1,4 @@
DISTRO="netmodule-linux-ostree"
BUILD_FOLDER_APPEND=""
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

4
env/distro/vcu-image vendored Normal file
View File

@ -0,0 +1,4 @@
DISTRO="netmodule-linux-ostree-vcu"
BUILD_FOLDER_APPEND=""
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

View File

@ -4,6 +4,7 @@
PS3='Please choose a machine: '
HW16="nrhw16 - NB800"
HW17="hw17 - NB2800"
HW18="nrhw18 - NB1800"
HW20="nrhw20 - NB1601"
HW21="nmhw21 - VCU1"
@ -13,14 +14,17 @@ HW24="nrhw24 - NB800 facelift"
HW25="hw25 - TC Router"
HW26="hw26 - NG800"
set -a
select opt in HW16 HW18 HW20 HW21 HW23 DLM HW24 HW25 HW26
select opt in HW16 HW17 HW18 HW20 HW21 HW23 DLM HW24 HW25 HW26
do
case $opt in
HW16)
MACHINE=am335x-nrhw16
break
;;
HW17)
MACHINE=armada-385-hw17
break
;;
HW18)
MACHINE=armada-385-nrhw18
break
@ -58,3 +62,4 @@ do
done
echo $MACHINE
export MACHINE

3
env/machine/hw16 vendored Normal file
View File

@ -0,0 +1,3 @@
MACHINE=am335x-nrhw16
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

3
env/machine/hw17 vendored Normal file
View File

@ -0,0 +1,3 @@
MACHINE=armada-385-hw17
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

3
env/machine/hw18 vendored Normal file
View File

@ -0,0 +1,3 @@
MACHINE=armada-385-nrhw18
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

3
env/machine/hw20 vendored Normal file
View File

@ -0,0 +1,3 @@
MACHINE=am335x-nrhw20
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

3
env/machine/hw21 vendored Normal file
View File

@ -0,0 +1,3 @@
MACHINE=am335x-nmhw21
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

3
env/machine/hw23 vendored Normal file
View File

@ -0,0 +1,3 @@
MACHINE=imx8-nmhw23
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

3
env/machine/hw24 vendored Normal file
View File

@ -0,0 +1,3 @@
MACHINE=am335x-nmhw24
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

3
env/machine/hw25 vendored Normal file
View File

@ -0,0 +1,3 @@
MACHINE=am335x-hw25
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

3
env/machine/hw26 vendored Normal file
View File

@ -0,0 +1,3 @@
MACHINE=am335x-hw26
env_path=${BASH_SOURCE:-$0}
. $(dirname $env_path)/../common

@ -1 +1 @@
Subproject commit f2421b9fa04e9cad0109bfbd095ea0684c5e2281
Subproject commit 3dbca0ef2ae1ea3862e540c59ad77adbcb419d57

@ -1 +1 @@
Subproject commit 0f78b1b8e54290f955d62ba7afe717c372961a99
Subproject commit 901c12f911e4fa4ae351ca6da07e4b4dacd1d6f1

@ -1 +1 @@
Subproject commit 719b0a2fdeb6ca1ddb1eafc335368808f3339a67
Subproject commit 30d95eb8c877bb655cfd11a5dd1f7ba0a533e2b7

@ -1 +1 @@
Subproject commit 261cf1775c2336c1e3141be033171d01f0cb8e68
Subproject commit 7538f89cfdd7624df5c2a7ba9d3ceb01d8536671

@ -1 +1 @@
Subproject commit 7fe9a70175a40c7d78ff6ccb0c6f5eb5cf7f1329
Subproject commit 8bd0b8ee7ade4aaec66d0a1dfe4d6aa65e8dd661

@ -1 +1 @@
Subproject commit ab04a2ac667067516f51ddbd3ac499986a606813
Subproject commit afeb746c8e8d3b6daf5f05cdb1e692ea593db696

@ -1 +1 @@
Subproject commit c1a50683225b0bf10f8d7a18280acefa7469ecc2
Subproject commit 8ff12bfffcf0840d5518788a53d88d708ad3aae0

@ -1 +1 @@
Subproject commit 5d49b28570ed030924ed5d45fbced24d3cb6e588
Subproject commit f2f5ca077baa1f08001cff9608ae59ed4dbeca3d

@ -1 +1 @@
Subproject commit 2cc9e06807026b86038db88c2175c626feadc0be
Subproject commit 8e81d38048c953d0823abf04d5b2506cd988f0bb