# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0

HOMEPAGE = "https://booting.oniroproject.org/distro/components/pim435"
SUMMARY = "A userspace driver application for PIM435 written in C"
DESCRIPTION = "A userspace driver application for PIM435 (Pimoroni LED matrix) \
written in C"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSES/MIT.txt;md5=7dda4e90ded66ab88b86f76169f28663"

SRC_URI = "git://booting.oniroproject.org/distro/components/pim435;protocol=https;branch=main"
SRCREV = "ee07a83de4d0ecdf4b5de20a7e374d36a9a6f5d5"
S = "${WORKDIR}/git"

DEPENDS = "i2c-tools"

EXTRA_OEMAKE += "DESTDIR=${D}"

do_install() {
    oe_runmake install
}

Add recipe for C implementation for userspace driver app
pim435: Add recipe for C implementation for userspace driver app

Origin: https://booting.oniroproject.org/distro/oniro/-/merge_requests/402
Forwarded: https://github.com/openembedded/meta-openembedded/pull/493
Relate-to: https://git.ostc-eu.org/distro/components/vending-machine-control-application/-/issues/2
Relate-to: https://booting.oniroproject.org/distro/oniro/-/merge_requests/416
Thanks-to: Andrei Gherzan's avatarAndrei Gherzan <0401b4310c02ae595fc6a2b84ead073cab9b0442@huawei.com>
Signed-off-by: Philippe Coval <ff46fec9739d31cce915aabcc3a7a2c00eee4d6c@huawei.com>
Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
