42 lines
1.2 KiB
BlitzBasic
42 lines
1.2 KiB
BlitzBasic
# Copyright (C) 2017-2019 Digi International Inc.
|
|
|
|
SUMMARY = "Microchip CryptoAuthentication Library"
|
|
SECTION = "libs"
|
|
LICENSE = "MICROCHIP_CRYPTOAUTHLIB_LICENSE"
|
|
LIC_FILES_CHKSUM = "file://license.txt;md5=84f2905dc39d2f8cdffb00af6f9e6d4e"
|
|
|
|
SRCREV = "a0007d2f6c42fddab5dca1575e0f404788829ddc"
|
|
|
|
GIT_URI ?= "git://github.com/MicrochipTech/cryptoauthlib.git;protocol=https"
|
|
|
|
SRC_URI = " \
|
|
${GIT_URI};nobranch=1 \
|
|
file://0001-lib-add-parameters-to-be-able-to-modify-default-I2C-.patch \
|
|
file://0002-lib-apply-library-version-number-to-CMake-VERSION-pr.patch \
|
|
file://0003-pkcs11-rename-template-configuration-file-to-its-int.patch \
|
|
file://0004-lib-install-pkg-config-file-and-header-files.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
I2C_BUS = ""
|
|
I2C_BUS_ccimx6qpsbc = "1"
|
|
I2C_BUS_ccimx6ul = "0"
|
|
I2C_BUS_ccimx8x = "0"
|
|
|
|
I2C_SPEED ?= "100000"
|
|
|
|
EXTRA_OECMAKE += "-DATCA_HAL_I2C_BUS=${I2C_BUS} -DATCA_HAL_I2C_SPEED=${I2C_SPEED}"
|
|
|
|
inherit cmake
|
|
|
|
do_install_append() {
|
|
# Rename the folder containing the header files to be more package-specific
|
|
mv ${D}${includedir}/lib ${D}${includedir}/cryptoauthlib
|
|
}
|
|
|
|
RDEPENDS_${PN} = "libp11"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
COMPATIBLE_MACHINE = "(ccimx6qpsbc|ccimx6ul|ccimx8x)"
|