linux-omap-psp: add OCF support
PATCH 1/3 linux-omap-psp: add OCF support
* Add a patch to put OCF support into the linux-omap-psp kernel for am37x-evm devices, which is the only device that this has been validated on.
* Add support to the defconfig file for am37x-evm for OCF
* Bump the MACHINE_KERNEL_PR
--- conf/machine/include/omap3.inc | 2 +- ...x-omap3-PSP-3.0.1.6-kernel-with-OCF-Linux.patch |88794 ++++++++++++++++++++ .../linux-omap-psp-2.6.32/am37x-evm/defconfig | 21 + recipes/linux/linux-omap-psp_2.6.32.bb | 2 + 4 files changed, 88818 insertions(+), 1 deletions(-) create mode 100644 recipes/linux/linux-omap-psp-2.6.32/am37x-evm/0001-linux-omap3-PSP-3.0.1.6-kernel-with-OCF-Linux.patch
conf/machine/include/omap3.inc +1 -1
@@ -4,7 +4,7 @@ TARGET_ARCH = "arm" require conf/machine/include/tune-cortexa8.inc PREFERRED_PROVIDER_virtual/kernel = "linux-omap" # Increase this everytime you change something in the kernel -MACHINE_KERNEL_PR = "r97" +MACHINE_KERNEL_PR = "r98" KERNEL_IMAGETYPE = "uImage"
recipes/linux/linux-omap-psp-2.6.32/am37x-evm/0001-linux-omap3-PSP-3.0.1.6-kernel-with-OCF-Linux.patch new file +88794 -0
2,992 lines not on this page · raw message
recipes/linux/linux-omap-psp-2.6.32/am37x-evm/defconfig +21 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.0.4
Part of the diff is not shown here. View the raw message.
PATCH 2/3 kernel class: stage ocf directory
* Added the crypto/ocf directory to the list of directories to be staged when building the kernel (if it is present)
* This is required when building OCF modules that allow access to crypto hardware outside of the kernel tree.
--- classes/kernel.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
classes/kernel.bbclass +1 -1
@@ -167,7 +167,7 @@ sysroot_stage_all_append() { mkdir -p $kerneldir/include/asm-generic cp -fR include/asm-generic/* $kerneldir/include/asm-generic/ - for entry in drivers/crypto drivers/media include/generated include/linux include/net include/pcmcia include/media include/acpi include/sound include/video include/scsi include/trace include/mtd include/rdma include/drm include/xen; do + for entry in drivers/crypto drivers/media include/generated include/linux include/net include/pcmcia include/media include/acpi include/sound include/video include/scsi include/trace include/mtd include/rdma include/drm include/xen crypto/ocf; do if [ -d $entry ]; then mkdir -p $kerneldir/$entry cp -fR $entry/* $kerneldir/$entry/
Signature · 1 line
1.7.0.4
PATCH 3/3 ti-ocf-crypto-module: add crypto module for hw accel
In reply to Chase Maupin* Added the module for the OCF subsystem that allows access to the crypto accelerator hardware on the am37x device.
--- recipes/ti/ti-ocf-crypto-module_1.0.bb | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 recipes/ti/ti-ocf-crypto-module_1.0.bb
recipes/ti/ti-ocf-crypto-module_1.0.bb new file +25 -0
@@ -0,0 +1,25 @@ +DESCRIPTION = "Builds Crypto module used by OCF-Linux driver in OpenSSL example applications" +HOMEPAGE = "https://gforge.ti.com/gf/project/arm_crypto/" +LICENSE = "BSD GPLv2" + +COMPATIBLE_MACHINE = "am37x-evm" + +SRC_URI = "svn://gforge.ti.com/svn/arm_crypto/;module=trunk;proto=https;user=anonymous;pswd=''" + +#gforge source revision +SRCREV = "11" + +PACKAGE_STRIP = "no" + +S = "${WORKDIR}/trunk" + +inherit module + +PR = "${MACHINE_KERNEL_PR}+svnr${SRCPV}" + +do_install () { + install -d ${D}/lib/modules/${KERNEL_VERSION}/crypto/ocf/ + install -m 0755 ${S}/ocf_omap3_cryptok.ko ${D}/lib/modules/${KERNEL_VERSION}/crypto/ocf/ +} + +FILES_${PN} = "/lib/modules/${KERNEL_VERSION}/crypto/ocf/ocf_omap3_cryptok.ko"
Signature · 1 line
1.7.0.4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 4 lines · Chase Maupin
* Add a patch to put OCF support into the linux-omap-psp kernel for am37x-evm devices, which is the only device that this has been validated on.
* Add support to the defconfig file for am37x-evm for OCF
NAK! This patch should be added globally so machine maintainers only have to turn it on in the defconfig. It makes no sense to have a SoC specific patch tied to a specific machine. To make it worse, the exact same machine dm37x-evm isn't getting patched.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFNJXaIMkyGM64RGpERAseVAJ4wqHpDmMUcB+XVjcMJhCYQVhmi1wCdFHun J3b4vSPeiDH303I94fLFt9A=
=LTLk
-----END PGP SIGNATURE-----