]> code.ossystems Code Review - meta-freescale.git/commitdiff
cryptodev: Avoid contamination OE-Core recipe
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 29 Jul 2015 18:53:31 +0000 (15:53 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:14 +0000 (15:03 -0300)
The QorIQ version of cryptodev needs to use another recipe name and
have a common provider, which is than choosen for QorIQ-based
machines.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
conf/machine/include/qoriq-arm.inc
conf/machine/include/qoriq-base.inc
recipes-kernel/cryptodev/cryptodev-qoriq-linux_1.7.bb [moved from recipes-kernel/cryptodev/cryptodev-linux_1.7.bb with 71% similarity]
recipes-kernel/cryptodev/cryptodev-qoriq-module_1.7.bb [moved from recipes-kernel/cryptodev/cryptodev-module_1.7.bb with 68% similarity]
recipes-kernel/cryptodev/cryptodev-qoriq-tests_1.7.bb [moved from recipes-kernel/cryptodev/cryptodev-tests_1.7.bb with 74% similarity]
recipes-kernel/cryptodev/cryptodev-qoriq_1.7.inc [moved from recipes-kernel/cryptodev/cryptodev_1.7.inc with 100% similarity]

index 20a759450b79767f969fab82bf6a05e265ad6aeb..ba6345cf58384eaaa394fd6c934d328dbcbc0122 100644 (file)
@@ -4,6 +4,9 @@ require conf/machine/include/soc-family.inc
 PREFERRED_PROVIDER_u-boot_ls102xa ?= "u-boot-ls1"
 PREFERRED_PROVIDER_virtual/bootloader_ls102xa ?= "u-boot-ls1"
 PREFERRED_PROVIDER_virtual/kernel_ls102xa ?= "linux-ls1"
+PREFERRED_PROVIDER_cryptodev_ls102xa = "cryptodev-qoriq"
+PREFERRED_PROVIDER_cryptodev-module_ls102xa = "cryptodev-qoriq-module"
+PREFERRED_PROVIDER_cryptodev-tests_ls102xa = "cryptodev-qoriq-tests"
 
 # Define the default image type
 IMAGE_CLASSES ?= "image_types_uboot"
index 25d2297815401917e39071a5020f04e2e1ac6e63..e5949fa4c0b236448056c8ea81b875d346f11cd3 100644 (file)
@@ -4,6 +4,9 @@ require conf/machine/include/soc-family.inc
 # providers
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq"
 PREFERRED_PROVIDER_u-boot ?= "u-boot-qoriq"
+PREFERRED_PROVIDER_cryptodev = "cryptodev-qoriq"
+PREFERRED_PROVIDER_cryptodev-module = "cryptodev-qoriq-module"
+PREFERRED_PROVIDER_cryptodev-tests = "cryptodev-qoriq-tests"
 
 # versions
 PREFERRED_VERSION_qemu = "2.2.0+fsl"
similarity index 71%
rename from recipes-kernel/cryptodev/cryptodev-linux_1.7.bb
rename to recipes-kernel/cryptodev/cryptodev-qoriq-linux_1.7.bb
index 92ccd717436287b77c15b6d9dbc8d053b0dc9c6c..a388b4c89b15a050fdf73e8d1a760f71c3c0aa93 100644 (file)
@@ -1,7 +1,9 @@
-require cryptodev_${PV}.inc
+require cryptodev-qoriq_${PV}.inc
 
 SUMMARY = "A /dev/crypto device driver header file"
 
+PROVIDES = "cryptodev-linux"
+
 do_compile[noexec] = "1"
 
 # Just install cryptodev.h which is the only header file needed to be exported
@@ -10,3 +12,5 @@ do_install() {
 }
 
 ALLOW_EMPTY_${PN} = "1"
+
+COMPATIBLE_MACHINE = "(qoriq-arm|qoriq-ppc)"
similarity index 68%
rename from recipes-kernel/cryptodev/cryptodev-module_1.7.bb
rename to recipes-kernel/cryptodev/cryptodev-qoriq-module_1.7.bb
index e6b1f27cfb8a07930952d23e621aeafc22c7c8be..df2e5464539a0631c006dccf4b401267cd731d10 100644 (file)
@@ -1,10 +1,14 @@
-require cryptodev_${PV}.inc
+require cryptodev-qoriq_${PV}.inc
 
 SUMMARY = "A /dev/crypto device driver kernel module"
 
+PROVIDES = "cryptodev-module"
+
 inherit module qoriq_build_64bit_kernel
 
 # Header file provided by a separate package
 DEPENDS += "cryptodev-linux"
 
 EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
+
+COMPATIBLE_MACHINE = "(qoriq-arm|qoriq-ppc)"
similarity index 74%
rename from recipes-kernel/cryptodev/cryptodev-tests_1.7.bb
rename to recipes-kernel/cryptodev/cryptodev-qoriq-tests_1.7.bb
index 128ccc99b4096d8c9dd4eeb58d27541ef6d6e9c2..dd0afecd7eaec0bec3b49b3f4449301034f20add 100644 (file)
@@ -1,8 +1,10 @@
-require cryptodev_${PV}.inc
+require cryptodev-qoriq_${PV}.inc
 
 SUMMARY = "A test suite for /dev/crypto device driver"
 DEPENDS = "openssl"
 
+PROVIDES = "cryptodev-tests"
+
 EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
 
 do_compile() {
@@ -15,3 +17,5 @@ do_install() {
 
 FILES_${PN}-dbg += "${bindir}/tests_cryptodev/.debug"
 FILES_${PN} = "${bindir}/tests_cryptodev/*"
+
+COMPATIBLE_MACHINE = "(qoriq-arm|qoriq-ppc)"