# SPDX-FileCopyrightText: 2021 Unisoc (Shanghai) Technologies Co., Ltd. # # SPDX-License-Identifier: LicenseRef-Unisoc-General-1.0 DESCRIPTION = "Unisoc libhalo module" HOMEPAGE = "http://www.unisoc.com/" LICENSE = "Unisoc-General-1.0" SECTION:${PN} = "libs" SRC_URI = "ssh://gitadmin@gitmirror.unisoc.com/yocto/unisoc/engpc;protocol=ssh;branch=unc_glp_engpc" # Modify these as desired PV = "1.0+git${SRCPV}" SRCREV = "${AUTOREV}" DEPENDS = "engpc halo-control" RDEPENDS:${PN} = "halo-control" EXTERNALSRC_BUILD = "${EXTERNALSRC}" EXTRA_OEMAKE = "\ 'CC=${CC}' \ 'AR=${AR}' \ 'LDFLAGS=${LDFLAGS}' \ " LIBMISCDATA_SECSET ?= "${@bb.utils.contains('STORAGE_TYPE','nand','-DCONFIG_NAND','',d)}" export CONFIG_NAND_FLAG="${LIBMISCDATA_SECSET}" do_compile () { # Specify compilation commands here echo "Recipe-sysroot: ${RECIPE_SYSROOT}" echo "LDFLAGS: ${LDFLAGS}" oe_runmake -C ${S} } do_install () { # Specify install commands here oe_runmake -C ${S} install DESTDIR=${D} } FILES:${PN} += " \ ${libdir}/npidevice/libhalo.so \ ${libdir}/libhaloap.so \ " INSANE_SKIP:${PN} += "file-rdeps" TARGET_CC_ARCH += "${LDFLAGS}"