<commit_before>inherit esw_examples features_check

ESW_COMPONENT_SRC = "/lib/sw_services/xilffs/examples/"

DEPENDS += "xilffs"<commit_msg>meta-xilinx-standalone-experimental: xilffs-example: Fix YAML file dependency for compilation<commit_after>inherit esw deploy

ESW_COMPONENT_SRC = "/lib/sw_services/xilffs/examples/"

DEPENDS += "xilffs xiltimer"

do_configure_prepend() {
    cd ${S}
    lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC}
    install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/
    install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/
}

ESW_CUSTOM_LINKER_FILE ?= "None"
EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}"

do_install() {
    install -d ${D}/${base_libdir}/firmware
    install -m 0755  ${B}/*.elf ${D}/${base_libdir}/firmware
}

do_deploy() {
    install -d ${DEPLOYDIR}/${MACHINE}-${BPN}/
    install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${MACHINE}-${BPN}/
}
addtask deploy before do_build after do_package

FILES_${PN} = "${base_libdir}/firmware/*.elf"
{'fraction_non_alphanumeric': 0.1663619744058501, 'fraction_numerical': 0.014625228519195612, 'mean_word_length': 5.151685393258427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6989821', 'n_tokens_mistral': 472, 'n_tokens_neox': 444, 'n_words': 69}