<commit_before>inherit uhd_images_downloader

LICENSE = "LGPLv3+"

FILES_${PN} = " \
    /lib/firmware/ni/cpld-x410.* \
    /lib/firmware/ni/cpld-zbx.* \
    "

UHD_IMAGES_TO_DOWNLOAD_ni-titanium ?= " \
    ${@ '' if d.getVar('EXTERNALSRC') else 'x4xx_x410_cpld_default'} \
    ${@ '' if d.getVar('EXTERNALSRC') else 'x4xx_zbx_cpld_default'} \
    "

MB_CPLD_SUBDIRECTORY ?= ""
ZBX_CPLD_SUBDIRECTORY ?= ""

do_install() {
    install -d "${D}/lib/firmware/ni"
    install -D "${S}/${MB_CPLD_SUBDIRECTORY}/usrp_x410_cpld.rpd" "${D}/lib/firmware/ni/cpld-x410.rpd"
    install -D "${S}/${MB_CPLD_SUBDIRECTORY}/usrp_x410_cpld.svf" "${D}/lib/firmware/ni/cpld-x410.svf"
    install -D "${S}/${ZBX_CPLD_SUBDIRECTORY}/usrp_zbx_cpld.rpd" "${D}/lib/firmware/ni/cpld-zbx.rpd"
    install -D "${S}/${ZBX_CPLD_SUBDIRECTORY}/usrp_zbx_cpld.svf" "${D}/lib/firmware/ni/cpld-zbx.svf"
}<commit_msg>meta-titanium: recipes-support: add max10 variants<commit_after>inherit uhd_images_downloader

LICENSE = "LGPLv3+"

FILES_${PN} = " \
    /lib/firmware/ni/cpld-x410-*.* \
    /lib/firmware/ni/cpld-zbx.* \
    "

UHD_IMAGES_TO_DOWNLOAD_ni-titanium ?= " \
    ${@ '' if d.getVar('EXTERNALSRC') else 'x4xx_x410_cpld_default'} \
    ${@ '' if d.getVar('EXTERNALSRC') else 'x4xx_zbx_cpld_default'} \
    "

MB_CPLD_SUBDIRECTORY ?= ""
ZBX_CPLD_SUBDIRECTORY ?= ""

do_install() {
    install -d "${D}/lib/firmware/ni"
    install -D "${S}/${MB_CPLD_SUBDIRECTORY}/usrp_x410_cpld_10m04.rpd" "${D}/lib/firmware/ni/cpld-x410-10m04.rpd"
    install -D "${S}/${MB_CPLD_SUBDIRECTORY}/usrp_x410_cpld_10m04.svf" "${D}/lib/firmware/ni/cpld-x410-10m04.svf"
    install -D "${S}/${MB_CPLD_SUBDIRECTORY}/usrp_x410_cpld_10m08.rpd" "${D}/lib/firmware/ni/cpld-x410-10m08.rpd"
    install -D "${S}/${MB_CPLD_SUBDIRECTORY}/usrp_x410_cpld_10m08.svf" "${D}/lib/firmware/ni/cpld-x410-10m08.svf"
    install -D "${S}/${ZBX_CPLD_SUBDIRECTORY}/usrp_zbx_cpld.rpd" "${D}/lib/firmware/ni/cpld-zbx.rpd"
    install -D "${S}/${ZBX_CPLD_SUBDIRECTORY}/usrp_zbx_cpld.svf" "${D}/lib/firmware/ni/cpld-zbx.svf"
}
{'fraction_non_alphanumeric': 0.2000976085895559, 'fraction_numerical': 0.042947779404587605, 'mean_word_length': 4.1767676767676765, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2886187', 'n_tokens_mistral': 1046, 'n_tokens_neox': 1007, 'n_words': 88}