rk3568_ubuntu_r60_v1.3.2/yocto/meta-quectel-app/recipes/rktoolkit/rktoolkit_git.bb
2023-11-03 06:12:44 +00:00

36 lines
1.3 KiB
BlitzBasic
Executable File

HOMEPAGE = "http://support.cdmatech.com"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/\
${LICENSE};md5=89aea4e17d99a7cacdbeed46a0096b10"
PACKAGE_ARCH ?= "${MACHINE_ARCH}"
DESCRIPTION = "A toolkit for RK devices"
FILESPATH =+ "${TOPDIR}/../../external/:"
SRC_URI = "file://rktoolkit"
S = "${WORKDIR}/rktoolkit"
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} ${S}/vendor_storage.c -DBUILD_LIB_VENDOR_STORAGE -shared -fPIC -o ${S}/libvendor_storage.so
${CC} ${CFLAGS} ${LDFLAGS} ${S}/io.c -o ${S}/io
${CC} ${CFLAGS} ${LDFLAGS} ${S}/update.c ${S}/update_recv/update_recv.c -I${S}/update_recv/ -o ${S}/update
${CC} ${CFLAGS} ${LDFLAGS} ${S}/vendor_storage.c -o ${S}/vendor_storage
}
do_install() {
install -d ${D}/usr/bin
install -m 755 ${S}/io ${D}/usr/bin/io
install -m 755 ${S}/update ${D}/usr/bin/update
install -m 755 ${S}/vendor_storage ${D}/usr/bin/vendor_storage
install -d ${D}/usr/lib
install -m 755 ${S}/libvendor_storage.so ${D}/usr/lib
install -d ${D}/usr/include
install -m 755 ${S}/vendor_storage.h ${D}/usr/include
}
FILES_${PN} += "/usr/bin/io /usr/bin/update /usr/bin/vendor_storage /usr/lib/libvendor_storage.so /usr/include/vendor_storage.h"
INSANE_SKIP:${PN}-dev += "dev-elf"