# Recipe created by recipetool # This is the basis of a recipe and may need further editing in order to be fully functional. # (Feel free to remove these comments when editing.) # WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is # your responsibility to verify that the values are complete and correct. LICENSE = "CLOSED" LIC_FILES_CHKSUM = "file://LICENSE;md5=e8c1458438ead3c34974bc0be3a03ed6" # No information for SRC_URI yet (only an external source tree was specified) SRC_URI = "" inherit get_release_mode MDIO_SRC_DIR = "${OEROOT}/source/unisoc/perflink/rtl8367/mdio-tool" MDIO_INSTALL_DIR = "${DEPLOY_OUT_DIR}/mdio-tool" MDIO_RELEASE_DIR = "${PREBUILTS_OUT_DIR}/mdio-tool" export MDIO_SRC_MODE="${@get_release_mode(d, "${MDIO_SRC_DIR}")}" EXTERNALSRC = "${@bb.utils.contains("MDIO_SRC_MODE","customer","${MDIO_RELEASE_DIR}","${MDIO_SRC_DIR}",d)}" EXTERNALSRC_BUILD = "${EXTERNALSRC}" do_install:prepend() { if [ ${MDIO_SRC_MODE} != "customer" ]; then rm -rf ${MDIO_INSTALL_DIR}/ install -d ${MDIO_INSTALL_DIR}/ install -m 0755 ${S}/mdio-tool ${MDIO_INSTALL_DIR}/ fi } do_install() { install -d ${D}${bindir}/ install -m 0755 ${S}/mdio-tool ${D}${bindir}/ } # Specify any options you want to pass to cmake using EXTRA_OECMAKE: EXTRA_OECMAKE = ""