Commit Graph

58 Commits

Author SHA1 Message Date
Gabriel Valcazar 6ecae7b7d4 linux-dey: fix trustfence_sign() errors
Device tree files no longer have the kernel type prefixed to their name, so the
trustfence_sign() function must be updated to reflect this change or else
errors will occur.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-03-06 10:58:33 +01:00
Arturo Buzarra b90068bc8e thud migration: linux-dey: replace old variable name
KERNEL_IMAGE_BASE_NAME was replaced by KERNEL_IMAGE_NAME for
consistency between variable names.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-02-07 11:30:19 +01:00
Arturo Buzarra 40b9db221e sumo migration: Replaced kernel with ${KERNEL_PACKAGE_NAME}
new version allows building multiple flavors of the kernel and
module packages by templatizing kernel package names via a new
KERNEL_PACKAGE_NAME variable in kernel.bbclass.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-01-16 11:31:00 +01:00
Arturo Buzarra 5eb88b8c5d sumo migration: meta-digi: replace the deprecated base_conditional function
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2019-01-11 13:26:44 +01:00
Alex Gonzalez 2eaade486f meta-digi-arm: ccimx6ul: Add support to build mainline BSP
Just add the following to the conf/local.conf file:

MACHINEOVERRIDES .= ":use-mainline-bsp"

The defconfig is the mainline imx_v6_v7_defconfig.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2018-10-09 14:57:59 +02:00
Hector Palacios 8e246b98be Merge branch 'dey-2.4/master' into 'dey-2.4/maint'
Conflicts:
	meta-digi-arm/recipes-bsp/u-boot/u-boot-dey_2015.04.bb
	meta-digi-arm/recipes-digi/trustfence/trustfence-sign-tools_git.bb
	meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm.bb
	meta-digi-arm/recipes-kernel/linux/linux-dey.inc
	meta-digi-arm/recipes-kernel/linux/linux-dey_4.9.bb
	meta-digi-dey/recipes-digi/dey-examples/awsiotsdk-demo_git.bb
	meta-digi-dey/recipes-digi/dey-examples/dey-examples-cryptochip.bb
	meta-digi-dey/recipes-digi/dey-examples/dey-examples-digiapix.bb
	meta-digi-dey/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.%.bbappend
	meta-digi-dey/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.%.bbappend
	meta-digi-dey/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.12.%.bbappend
	meta-digi-dey/recipes-multimedia/gstreamer/gstreamer1.0_1.12.%.bbappend
	meta-digi-dey/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.4.0.bb

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-08-31 13:18:29 +02:00
Gabriel Valcazar bfe528abbc linux-dey: separate kernel source information into a new file
This way, other recipes (like the ones for kernel modules) can re-use the
sources if needed.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2018-08-21 17:12:47 +02:00
Hector Palacios 55af779bf6 linux-dey: use custom kernel defconfig or else the one in the Linux tree
With this patch a user can provide his own kernel 'defconfig' file by:

 - setting the variable KERNEL_DEFCONFIG to a custom kernel configuration
   file inside the kernel repository.

 - setting the variable KERNEL_DEFCONFIG to a kernel configuration file
   using the full path to the file.

 - clearing the variable KERNEL_DEFCONFIG and providing a kernel
   configuration file in the layer (in this case the file must be named
   'defconfig').

Otherwise the default platform's kernel configuration file will be taken
directly from the Linux source code tree.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-06-01 17:04:52 +02:00
Hector Palacios 47f42f7606 meta-digi: revert revisions to AUTOREV
This reverts commit 1246ecff2c.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-03-12 17:19:48 +01:00
Hector Palacios 1246ecff2c meta-digi: update revisions for dey-2.4-r1.2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2018-03-12 10:33:55 +01:00
Arturo Buzarra e3d086c472 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-02-27 16:05:38 +01:00
Arturo Buzarra 42d43ff5fb meta-digi: update revisions for dey-2.4-r1.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2018-02-27 15:56:19 +01:00
Hector Palacios 02504c6730 ccimx6: default kernel image to zImage
As a side effect, remove U-Boot entry point variable and LOADADDR
extra parameter from the kernel recipe.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-5554
2018-01-18 18:50:18 +01:00
Jose Diaz de Grenu 8a81b2cb25 rocko migration: trustfence: fix dependencies
https://jira.digi.com/browse/DEL-5518

Signed-off-by: Jose Diaz de Grenu <Jose.DiazdeGrenu@digi.com>
2018-01-12 15:59:04 +01:00
Javier Viguera 372a063ac4 linux-dey: adapt trustfence_sign function after migration
The way the kernel artifacts are generated has change as of Yocto 2.2.
Also some of the variables (e.g. KERNEL_IMAGE_SYMLINK_NAME) have changed
their default values.

Thus the trustfence_sign function needed some tweaks to continue working
properly.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-03-02 16:25:09 +01:00
Javier Viguera fc488b7f1b linux-dey: fix 'do_deploy' failure by removing not needed symlink
KERNEL_IMAGE_BASE_NAME and KERNEL_IMAGE_SYMLINK_NAME default values have
changed in Yocto 2.2, so now this appended command is failing because
it's translated to:

ln -sf -4.1-r0.2-ccimx6ulstarter-20170216122147.bin ccimx6ulstarter

which fails with:

ln: invalid option -- '4'

Just remove it, because we don't need that symlink anymore. New U-Boot's
'zimage' and 'uimage' environment variables have default values ending in
'.bin' which is what Yocto provides.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2017-02-28 11:46:57 +01:00
Alex Gonzalez 26187f47c6 meta-digi-arm: Add weak assignment for Linux and U-Boot
This will allow to override the variable easily.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2017-01-31 17:47:32 +01:00
Diaz de Grenu, Jose 6b1d790c95 meta-digi-arm: linux-dey: create postfunc for trustfence
The kernel recipe was modifying the device tree blobs in place within the
kernel build temporal directory. This can cause problems after several
compilations, only the deployed artifacts should be signed/encrypted.

The deployment of the DTBs is done by do_deploy_appends in other layers which
are appended after this recipe, so it is required to use a postfunc to do the
trustfence related process after the deployment of all the artifacts.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-12-19 16:52:21 +01:00
Diaz de Grenu, Jose c1d2ee02f5 trustfence: sign device tree blobs
https://jira.digi.com/browse/DUB-614

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-10-19 10:33:10 +02:00
Diaz de Grenu, Jose 5c4df1ddfd trustfence: add support for signing and encrypting DTBs and ramdisks
This patch introduces some parameters which allow to select the type of image
to be signed. Currently the supported types are:

* linux kernel (-l)
* DTB (-d)
* initramfs (-i)

This also moves the CONFIG_PLATFORM environment variable to a parameter, for
consistency.

https://jira.digi.com/browse/DUB-614
https://jira.digi.com/browse/DUB-615

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-10-19 10:33:08 +02:00
Diaz de Grenu, Jose 6b0fbddf3b meta-digi-arm: trustfence-sign-tools: simplify script usage outside Yocto
* Check number of arguments
* Add platform argument
* Read user configuration from .config file
* Remove unused variable (dek_blob_size)
* Remove noise in output messages

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-09-12 18:07:28 +02:00
Diaz de Grenu, Jose c8ec33129d meta-digi-arm: trustfence-sign-tools: add sign tools recipe
Add a recipe to include all signing and encryption tools for U-Boot and
kernel images to the SDK. Move existing trustfence kernel scripts to this
new recipe.

This allows to use these scripts not only from the Yocto build system but
also as standalone tools for image signing and encryption.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-09-12 18:07:28 +02:00
Javier Viguera ab5f50e16a meta-digi: trailing whitespace cleanup
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-08-31 13:52:15 +02:00
Alex Gonzalez 106efc4970 meta-digi-arm: linux-dey: Add TrustFence dependencies on Linux kernel.
When changing any of the secure boot configurable macros the Linux kernel
should be re-deployed so that it can be signed/encrypted as needed.

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

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2016-08-03 15:42:07 +02:00
Diaz de Grenu, Jose 84cad4e4ad meta-digi-arm: linux-dey: fix check for uImage signing
TRUSTFENCE_SIGN can be defined to "0" to explicitly disable uImage sign and
encryption.

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

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-21 11:38:01 +02:00
Diaz de Grenu, Jose d91661d7de meta-digi-arm: add support for signed and encrypted uImages
https://jira.digi.com/browse/DUB-534
https://jira.digi.com/browse/DUB-602

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 15:48:12 +02:00
Diaz de Grenu, Jose 8ac7da51ef meta-digi-arm: add recipe for the Code Signing Tools
NXP Code signing Tool for the High Assurance Boot library is needed for
signing and encrypting different artifacts (U-Boot image, uImage, ...).

As the CST cannot be included in DEY, the user needs to download the
tarball and add it to the recipe folder.

https://jira.digi.com/browse/DUB-618

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
2016-07-19 15:48:12 +02:00
Javier Viguera 792d214927 meta-digi: revert kernel and u-boot revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-15 18:02:34 +01:00
Javier Viguera 5ca0bf76c9 meta-digi: update revisions for dey-2.0-r1.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-15 17:51:17 +01:00
Javier Viguera 76415ed99e meta-digi: revert kernel and u-boot revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-02 17:45:16 +01:00
Javier Viguera 842c17a9b2 meta-digi: update revisions for dey-2.0-r1.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-02 17:16:14 +01:00
Javier Viguera 7915cc9c3f meta-digi: update to new github account 'digi-embedded'
As the plan is to use the same git objects (SHA1) in the internal and
github repos, also remove that internal/external SRCREV infrastructure.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2016-02-01 18:52:45 +01:00
Javier Viguera 79cca553e5 meta-digi: revert kernel and u-boot revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-04 14:43:05 +01:00
Javier Viguera cd2e929c92 meta-digi: update revisions for dey-2.0.0.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-12-04 14:28:05 +01:00
Javier Viguera 73f08aeb0a meta-digi-arm: remove 'linux-dey' recipe dependence on linux-imx
https://jira.digi.com/browse/DEL-1890

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-11-05 14:02:31 +01:00
Alex Gonzalez a81a7d586c meta-digi: revert revisions to AUTOREV
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-10-15 15:36:10 +02:00
Alex Gonzalez f032e1a132 meta-digi: update SRCREVs for dey-1.8.0.2
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-10-15 15:35:36 +02:00
Javier Viguera 1b63048467 meta-digi-arm: rework Linux kernel recipes
* Move kernel configuration fragments to 2.6.35 recipe (that's the only
  kernel version using them)

* Move compile-time dependences to common include linux-dey.inc

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-10-07 16:44:26 +02:00
Alex Gonzalez fec876dfb9 meta-digi: revert revisions to AUTOREV
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-08-18 19:28:43 +02:00
Alex Gonzalez a37674d4a1 meta-digi: update SRCREVs for dey-1.8.0.1
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2015-08-18 19:26:54 +02:00
Javier Viguera 3c1526ede5 meta-digi-arm: enable SPIDEV for ccardimx28js in kernel 3.10
Also remove kernel configuration fragments for kernel 3.10. This is not
needed for 3.10 as all the configuration is done via device-trees.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit b0031915f1c7f3eeba680161827e78bbac9eebb4)
2015-07-17 10:21:03 +02:00
Javier Viguera b386710979 meta-digi-arm: fix building kernel using out-of-tree
The way the kernel is built in yocto 1.8 has changed. Now the
build is done under ${WORKDIR}/build while the source code is at
STAGING_KERNEL_DIR, so we need to modify the '.config' in the build
directory instead of in the source directory.

This fixes:

kernel-source is not clean, please run 'make mrproper'
make[2]: *** [prepare3] Error 1
make[1]: *** [sub-make] Error 2

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-03-12 14:44:25 +01:00
Javier Viguera e814742ebd meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-13 18:22:07 +01:00
Javier Viguera 1cd75a0a30 meta-digi: update revisions for dey-1.7.0.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2015-01-13 18:19:32 +01:00
Javier Viguera 1c5d54a4c3 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-17 20:03:08 +02:00
Javier Viguera a3c1aa7626 meta-digi: update revisions for dey-1.6.2.2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-15 17:16:56 +02:00
Javier Viguera 3b6835ac1b meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-09-15 11:17:21 +02:00
Javier Viguera fb1da18ea1 meta-digi: update revisions for dey-1.6.2.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-08-07 14:26:48 +02:00
Javier Viguera 4cb49ab09d meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-27 14:13:23 +02:00
Javier Viguera 8514398726 meta-digi: update revisions for dey-1.6.1.1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2014-05-27 14:09:32 +02:00