summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-iot-cloud/recipes-aws/aws-iot-device-sdk-embedded-c/aws-iot-device-sdk-embedded-c.bb
blob: a4719280b3bdc3c075f2400ed1979519fa95b885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
DESCRIPTION = "AWS IoT device SDK for embedded C"
AUTHOR = "AWS"
HOMEPAGE = "https://github.com/aws/aws-iot-device-sdk-embedded-C"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=acc7a1bf87c055789657b148939e4b40"

SRC_URI = "\
    git://github.com/aws/aws-iot-device-sdk-embedded-C.git;protocol=https;branch=master \
    file://Makefile.aws \
    file://aws_iot_config.h \
    file://awsiotsdk.pc \
"
SRCREV = "d039f075e1cc2a2a7fc20edc6868f328d8d36b2f"

S = "${WORKDIR}/git"
B = "${WORKDIR}/build"

DEPENDS = "mbedtls"
RDEPENDS:${PN} += "mbedtls"

do_configure:prepend() {
	cp ${WORKDIR}/Makefile.aws ${S}/src
	cp ${WORKDIR}/aws_iot_config.h ${S}/include
	cp ${WORKDIR}/awsiotsdk.pc ${S}
}

do_compile() {
	cd ${S}/src
	oe_runmake -f ./Makefile.aws DESTDIR=${D} all
}

do_install() {
	cd ${S}/src
	oe_runmake -f ./Makefile.aws DESTDIR=${D} install
}

BBCLASSEXTEND = "native nativesdk"

ALLOW_EMPTY:${PN} = "1"