aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2019-06-12aglsetup: be less restrictive on machines/features definitionsStephane Desneux1-1/+1
When a private definition for a machine or feature has to be maintained, the easy way is to have an extra layer 'meta-xxxxxx' containing specific definitions on top of AGL. This layer can be fetched beside other meta-agl repos. In the past, aglsetup used to include any definition located in the $METADIR folder ($METADIR/*/templates/...). With the new layout and change 2b3a44b, a restriction has been put on folders matching 'meta-ag*', which is very restrictive. This patch does something in between, by matching all folders 'meta-*'. NB: with the new layout, this shouldn't include bsp layers or external layers so it's pretty safe. Bug-AGL: SPEC-2450 Change-Id: I459ea778380580e5b80685cc86779f36a232ac7c Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2019-06-10Changes to support the repo clone reworkJan-Simon Möller1-10/+12
To be merged together with: https://gerrit.automotivelinux.org/gerrit/#/c/AGL/AGL-repo/+/21389/ v2: fix the aglsetup script v3: fix scripts to extract m3ulcb v4: use single folder for BSPs Bug-AGL: SPEC-2450 Change-Id: I3227896c68ec1413f55cf67ad8f15a7adfe87a52 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2018-11-23distro-manifest-generator: add support for JSON output formatguppy_6.99.1guppy/6.99.16.99.1Stephane Desneux1-49/+206
Distro build manifest is easier to parse if output is made in a structured format. Adding JSON output format will allow bindings to read information more easily. The files created are now: On target: * /etc/platform-info/build (shell format) * /etc/platform-info/build.json (JSON format) In image deploy dir (.../tmp/deploy/images/$MACHINE/): * build-info (shell format) * build-info.json (JSON format) In sdk deploy dir (.../tmp/deploy/sdk/): * poky-agl-<version details>.build-info (shell format) * poky-agl-<version details>.build-info.json (JSON format) Bug-AGL: SPEC-720, SPEC-1917 Change-Id: If45d2c5dd96b15ce790aa7f7f97c24f119ad117b Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-11-22distro-build-manifest: don't use BB_ENV_EXTRAWHITEStephane Desneux1-8/+8
To keep the workflow compliant with upstream Yocto projects, it's better to not use BB_ENV_EXTRAWHITE to pass variables to recipes. This commit updates aglsetup to generate the file agl-init-build-env as 'before' (=before the addition of distro-build-manifest) Bug-AGL: SPEC-720, SPEC-1741 Change-Id: I96df245e099c15a1d2425052c4d8cc64363042c8 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-10-24aglsetup: Fix mix of spaces and tabsJosé Bollo1-4/+4
Change-Id: I6579e0bc79e030b64bfbf936fc90d42298e73732 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-10-09aglsetup: generate setup manifest fileStephane Desneux2-0/+195
This patch modifies aglsetup to output the execution context in a "setup manifest" located in $builddir/aglsetup.manifest This file can then be processed by another script (distro-manifest-generator.sh) to generate a complete distro manifest at build time. Bug-AGL: SPEC-720, SPEC-1741 Change-Id: I1f9bc8a6d8bc4c659e59ed0025f71ad9e1c86355 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-09-28Add an AGL revision to the RPM packageRonan Le Martret1-17/+29
* To update a rpm file (with dnf) we need to have a valid rpm revision. Let 2 packages pkg_1 and pkg_2 (built in yocto). If pkg_2 is newer than pkg_1, and one wants to be able to update it with dnf, it must respect some rpm naming rules. if ${pkg_2_name} > ${pkg_1_name} -> pkg_2 is newer than pkg_1 elif ${pkg_2_name} = ${pkg_1_name} and ${pkg_2_revision} > ${pkg_1_revision} -> pkg_2 is newer than pkg_1 else -> pkg_2 is equal or older than pkg_1 Currently, the Yocto build process (used by AGL, so whithout special service) doesn't change revisions for a build. So packages are not updatable from a repository with dnf. * This patch adds an option -r|--rpm-revision <schema> to aglsetup.sh so that RPMs produced by bitbake will have correct revisions suitable for binary publishing. <schema> can be: 'prservice[:<address>]' : Use a PR service daemon. if <address> is not specified, the default value 'localhost:0' is used (shortcut for a PR service started by bitbake) 'timestamp' : Use a generated time stamp (UTC). 'value:<revision>' : Use <revision> explicitly. 'none' : Do nothing. p16: change --rpm-revision options parsing, use UTC timestamps, refactor code p19: remove smart parsing of host:port for prservice option - back to dumb option Bug-AGL: SPEC-920 Change-Id: I1f4c9fd093fa350d19450a12ac1847885740596d Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Signed-off-by: Johann CAHIER <johann.cahier@iot.bzh> Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-09-06scripts/mkefi-agl.sh: fix cleanupStephane Desneux1-1/+1
This patch fixes the removal of the huge file /tmp/TMP-AGL-wic-image.wic Change-Id: I8858109dca62eb20d4bdabab3d7a593205a30ea6 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-08-01Remove porter reference from meta-aglRonan Le Martret1-3/+5
* Remove, from recipes, reference to porter, gen2, krogoth. * cleanup mardown from reference to porter. * cleanup markdown (markdownlint score 0). Change-Id: I70b9880fc52ef3c848da588d3a256fa8eee48606 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2018-04-03Make better use of UUIDs on Intel platform wks filesTom Rini2-0/+6
- Stop using --ondisk XXX in the wks files, that enforces using USB/SATA/etc as /etc/fstab will be referencing these devices. - Pass --use-uuid for the boot partition - Update mkefi-agl.sh and mkabl-agl.sh to modify the final fstab to use the PARTUUID they create rather than the PARTUUID of the resulting wic file. Change-Id: I450ba77805fdb83e31411ea48b25aad415fa8a69 Bug-AGL: SPEC-1300 Signed-off-by: Tom Rini <trini@konsulko.com>
2018-03-01Adding support for NVM Express partitionsDominig ar Foll Intel Open Source1-2/+2
Change-Id: I245d77f231fbb625d5e13a2c7e0e9cbabfebdf80 Signed-off-by: Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
2018-02-01warning for microcode being ignored when presentDominig ar Foll Intel Open Source1-1/+1
Change-Id: I748d4858c523e8c41d41a9acdd4b117b40937400 Signed-off-by: Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
2017-12-22adding copying of microcode.cpio if presentDominig ar Foll Intel Open Source1-1/+5
Change-Id: Ia1903d6e5906f3353ba1ad1f9c259865bf507330 Signed-off-by: Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
2017-12-18Adding mkabl to support MRB platforms (non signed kernel) and ↵Dominig ar Foll Intel Open Source3-3/+706
detection/rejection of configiguration with initrd=microcode.cpio Change-Id: Iff7cbd34fb8abd0f0860fe183018a2d9a133614e Signed-off-by: Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12663 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-12-10adding support for .wic .wic.xz as source for imageDominig ar Foll Intel Open Source2-28/+120
Change-Id: I94c09c6105ac06a37cedc04c777dd1372015a02d Signed-off-by: Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12263 ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-11-23aglsetup: exit with error if fragment script failsStephane Desneux1-1/+1
Bug-AGL: SPEC-1002 Change-Id: I93407ca24c67b6b7c4e9aa09325fbf78d01f1c64 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12111 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-09-11small improvment and correction in mkefi-agl.sh scriptDominig ar Foll (Intel Open Source)1-26/+33
Change-Id: I5d191ba33b4a1a561daeff89f17dd62ce329d079 Signed-off-by: Dominig ar Foll (Intel Open Source) <dominig.arfoll@fridu.net> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10767 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-03-03handling of console device by local.conf to automate Joule supportDominig ar Foll (Intel Open Source)1-24/+18
Change-Id: I884827ed221ad7dc53512aa213291b1f48e60dac Signed-off-by: Dominig ar Foll (Intel Open Source) <dominig.arfoll@fridu.net>
2017-03-01aglsetup: check build dir integrity (no spaces)Stephane Desneux1-1/+9
The absolute build path shouldn't contain any space. Discussion: https://lists.linuxfoundation.org/pipermail/automotive-discussions/2017-February/003522.html Change-Id: If3de580a2a8fd0f944c40f669a9fcd2de7e1f04b Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-01-27scripts/aglsetup: remove duplicate features before generating configStephane Desneux1-2/+2
With features dependencies, it may happen that the final list of features to handle contains duplicates. With recent changes on configuration fragments, this produces some WARNINGS due to multiple inclusions of the same file in the generated local.conf . This commit cleans up the features list resolved internally by removing duplicates before generating local.conf Change-Id: I009c41108086e76b76272e62c8ba9101fcc45437 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-11-24Convert feature.inc to feature.depJan-Simon Möller1-21/+0
This converts the included features used for CI purposes to use the dependency format introduced. Change-Id: I405af9ffbd6954d0e78b5f738e762a80687337d7 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2016-11-16Add feature shortcuts matching ci systemJan-Simon Möller1-0/+21
These features (shortcuts) do activate the feature set for: - the changeset builds (agl-ci-change-features) - the snapshot builds (agl-ci-snapshot-features) Change-Id: I4972f61b070836fedef8e06d32deaf07b8978dfb Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2016-11-08allow dependency between agl featureRonan1-9/+40
* you can add included.inc file for each feature * if features is include into an other feature, they are print during the --help command #source meta-agl/scripts/aglsetup.sh -h ... Available features: [meta-agl] agl-all-features :( agl-demo agl-appfw-smack agl-devel agl-netboot agl-sota ) agl-archiver agl-devel agl-isafw agl-netboot [meta-agl-devel] agl-renesas-kernel [meta-agl-extra] agl-appfw-smack agl-demo :( agl-appfw-smack agl-devel) Change-Id: I4a72abd48f70a9262203acba84fac24d9dd4dce0 Signed-off-by: Ronan <ronan.lemartret@iot.bzh>
2016-10-24Adding support for systemd-boot (or ex-gummyboot) on top of grubDominig ar Foll1-4/+30
Change-Id: I3e3306ec9c8b2cd898beb779bbbade235a83901e Signed-off-by: Dominig ar Foll <dominig.arfoll@fridu.net>
2016-10-19Add shortcut to enable all featuresJan-Simon Möller1-0/+9
This change introduces an agl-all-features flag. It is basically a feature that will enable a list of 'known-good' features from an included file. It is meant to serve two purposes: - simplify automation scripts - ease-of-use for users building the whole set of features Change-Id: Ia962d6ec8a6c6345fb27e303cabbf805e729a8ca Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2016-10-18Fix aglsetup always succeeded regardless of whether errors or notTadao Tanikawa1-11/+11
The aglsetup is always succeeded regardless of whether got errors while executing sub scripts or not. This is caused by following script. call_func 2>&1 | tee xxxx.log The result of this line always becomes 0 (succeeded) by result of command 'tee'. The '$PIPESTATUS[]' should be used for this case. Change-Id: I67bf0dbc86331ec7858bd8edb4739a5e7729275b Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2016-10-05adding mkefi-agl.sh create boot devices from AGL images for UEFI bootDominig ar Foll2-0/+413
Change-Id: I0e89fc869c048d6bd1b49904a683f645ca51ebec Signed-off-by: Dominig ar Foll <dominig.arfoll@fridu.net>
2016-09-09aglsetup.sh: handle machines/features from any layerStephane Desneux1-12/+45
This patch allows the setup script called by scripts/aglsetup.sh to search for available machines and features in all repositories located in the meta directory (the directory where meta-agl has been cloned). In particular, this now allows to specify a machine or a feature located in meta-agl-devel. Important note: duplicate machines or features in different layers are detected and forbidden (script fails with error) to avoid any ambiguity. Change-Id: If55105a05889ca95da856d65986a86f4ef5f4b2c Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-07-08aglsetup script: fix interactive execution of the script generated from ↵Stephane Desneux1-1/+1
fragments This fixes the problem with Qualcomm boards where EULA approval is required. See: https://lists.linuxfoundation.org/pipermail/automotive-discussions/2016-July/002279.html Change-Id: Ifad216bf559a246d6883e7c2828dacd7bd225075 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-07-05new configuration templates based on fragmentsStephane Desneux3-202/+537
This is the application of the process proposed here: https://lists.linuxfoundation.org/pipermail/automotive-discussions/2016-June/002232.html Bug-AGL: SPEC-180 Change-Id: I5a7015fa810547a9ecf4fb096367323af3cdc670 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-05-02Add DragonBoard-410c as target boardKotaro Hashimoto1-0/+97
This patch adds the dragonboard-410c as DragonBoard-410c target. There are instructions to write image into eMMC and boot system at: https://github.com/96boards/documentation/wiki/Dragonboard-410c-Installation-Guide-for-Linux-and-Android#flash-the-bootloader-into-on-board-emmc v2: Rebase after merge conflict (jsmoeller) v3: Generalize the eula script into function to be reuseable (jsmoeller) Depends-On: Idcad2c27539af130704a3c66efe6b91868eef534 Change-Id: I52e5d732c865989796158016758e6e745c74cac8 Signed-off-by: Kotaro Hashimoto <Hashimoto.Kotaro@ds.MitsubishiElectric.co.jp> Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2016-05-01Add raspberrypi 2 and 3Jan-Simon Möller1-0/+4
This adds the rpi 2 and 3 to the mix. Untested! It merely enables the layer and nothing else. Patches/fixes welcome. Depends-On: I08ec2e9e41003b9dc8244f86d50ccf64e112aba2 Change-Id: If512487c6bd57a7640cbf2f07a12f6877137daee Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2016-05-01Introduce TI DRA7 vayu and cleanup template filesJan-Simon Möller1-2/+14
This changeset introduces the TI 'vayu' board. We need to adapt the provided bsp layer 'meta-ti' as it is only at YP 1.8 fido right now. Two changes are needed/known: a) BBMASK eudev bbappend (local.conf.sample) b) apply patch for gcc5 to u-boot-ti-staging On top thie changeset also does janitorial work on the templates: - conf-notes is now in a folder common and symlinked - layer additions have been sync'ed - file layout sync'ed with templates in meta-agl-demo Change-Id: Ib52a9252800d54d5105ac1f5354ad3a3b014188f Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2016-04-28scripts: fix regression on reuse of shell environment variablesYannick Gicquel1-5/+5
instead of editing local.conf to defines DL_DIR and SSTATE_DIR, the shell environment variables can be propagated in poky/oe build env. BB_ENV_EXTRAWHITE is defined in "poky/scripts/oe-buildenv-internal" Thus, variable append step should occurs _after_ setup poky/oe. Change-Id: I5d4901435812d2d82950588a89b8ec67f2b01ea8 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
2016-04-09Add machine porter-nogfxJan-Simon Möller1-0/+7
This alias will not extract the tarballs and allow us to build core-image-minimal for the renesas board w/o the proprietary blobs. Change-Id: I22061a87f5802e6ce2bc6a8260eeee4cfa2ab1f7 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2016-02-19Allow alias names in envsetup.sh - here for minnowboardJan-Simon Möller1-4/+12
This commit allows us to define also alias names for MACHINE. TEMPLATECONF moved down for this. Change-Id: Ibec9882ac5a7c3bf734ead8a05b452bb655bbeeb Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2016-02-09Add wandboard as target boardJan-Simon Möller1-5/+7
This patch adds the wandboard as i.mx6 target. Change-Id: Iae25b991d475ce321b4192cbac130ad389021c72 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2016-02-08Fix error by envsetup.sh when reuse a terminalTadao Tanikawa1-0/+1
When reuse a terminal between defferent targets, poky's setup script report error and setup is terminated. E.g. Setup for qemu first, then setup for porter. $ source meta-agl/scripts/envsetup.sh qemux86-64 build-qemu $ (bitbake or somthing) $ cd .. $ source meta-agl/scripts/envsetup.sh porter build-porter ERROR: OE-core's config sanity cheker detected a potential misconfiguration. ... Change-Id: Ie8e6f723d447b1ea53ada333f03bbfb4f03433c4 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2016-01-20Provide template configuration for each machine or boardTadao Tanikawa1-12/+21
In previous patch, meta-intel layer is added to BBLAYERS for both QEMU(qemux86/qemux86-64) and Minnowboard MAX(intel-corei7-64) although QEMU target doesn't need it. It is preffered to prepare a template configuration for each machine or board. Change-Id: I19bd4e66e8375a1760d9850f4a056651ae0fa6ca Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2016-01-15Support MinnowBoard MAXTadao Tanikawa1-0/+4
To configure for MinnowBoard MAX, use 'intel-corei7-64' as MACHINE. E.g. set up build environment by meta-agl's script: $ source meta-agl/script/envsetup.sh intel-corei7-64 [build-dir] There are instructions to write image into SD card and boot system at "http://elinux.org/Minnowboard:MinnowMaxYoctoProject". Change-Id: I19062482848bb6157791ab698bf92984e24a6d9a Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
2015-12-05Bugfix for envsetup.sh script.Jan-Simon Möller1-2/+2
A sourced script cannot use exit as it will terminate the shell session. "return -1" is not supported due to the negative value. Use "return 1" instead. Change-Id: I7452b7939c5c843eaf76b6600e5eb55c06d17668 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2015-10-06Improve instructions to build AGL DistributionTadao Tanikawa1-0/+64
New build instructions are avairable. - Using 'repo' to download all repositories. - Only 1 shell script need to be run. To install Repo: $ mkdir ~/bin $ export PATH=~/bin:$PATH $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo To build meta-agl/meta-agl-demo: $ repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo $ repo sync $ source meta-agl/scripts/envsetup.sh <porter|qemux86-64|...> [build-dir] $ bitbake <target> Note: currently AGL Distro supports only 2 machines, porter and qemux86-64. Note for porter: Anyone who want to build for R-Car2 M2 Porter should download Grahics Drivers and Multimedia Softwares from Renesas. If not, envsetup.sh will stop and show some instruction, then please follow it. Change-Id: I1213130333e9a316bc3be5913cf2511c0cfb2853 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>