diff options
Diffstat (limited to 'recipes-connectivity/openssl/ocf-linux.inc')
| -rw-r--r-- | recipes-connectivity/openssl/ocf-linux.inc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-connectivity/openssl/ocf-linux.inc b/recipes-connectivity/openssl/ocf-linux.inc new file mode 100644 index 0000000000..9d8e08911c --- /dev/null +++ b/recipes-connectivity/openssl/ocf-linux.inc | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | DESCRIPTION = "Install required headers to enable OCF Linux support" | ||
| 2 | LICENSE = "BSD" | ||
| 3 | |||
| 4 | INC_PR = "r0" | ||
| 5 | |||
| 6 | SRC_URI = "http://sourceforge.net/projects/ocf-linux/files/ocf-linux/${PV}/ocf-linux-${PV}.tar.gz" | ||
| 7 | |||
| 8 | S = "${WORKDIR}/ocf-linux-${PV}" | ||
| 9 | |||
| 10 | # Need to unpack the the ocf-linux.tar.gz file contained inside the | ||
| 11 | # downloaded tarball | ||
| 12 | do_install_prepend() { | ||
| 13 | cd ${S} | ||
| 14 | tar xzf ocf-linux.tar.gz | ||
| 15 | } | ||
| 16 | |||
| 17 | # Install the OCF Linux headers so that other packages such as openssl | ||
| 18 | # can find them. The headers must be in a crypto directory according to | ||
| 19 | # the README file. | ||
| 20 | do_install() { | ||
| 21 | install -d ${D}${includedir}/crypto | ||
| 22 | install -m 0644 ${S}/ocf/*.h ${D}${includedir}/crypto/ | ||
| 23 | } | ||
