<commit_before>DESCRIPTION = "Initscript for flashing images at boot"

OPN := "${PN}"
PN = "${OPN}-${WANTED_ROOT_DEV}"
FILESEXTRAPATHS_prepend := "${THISDIR}/${OPN}:"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

PACKAGE_ARCH = "${MACHINE_ARCH}"

SRC_URI = "file://flash-device.sh \
"

SRC_URI_append_curie = "\
    file://init.ssd \
    file://init.curie \
    file://hw.curie \
    file://post.curie \
"

SRC_URI_append_bohr = "\
    file://init.mtd \
    file://init.ssd \
    file://init.bohr \
    file://hw.bohr \
    file://post.bohr \
    file://ubinize.cfg \
"

SRC_URI_append_bohr-update = "\
    file://init.mtd \
    file://init.bohr-update \
    file://hw.bohr-update \
    file://post.bohr-update \
    file://ubinize.cfg \
"

def all_root_dev_names (d) :
    rc = []
    root_dev_names = d.getVar("AVAIL_ROOT_DEVS", True).split(" ")
    for dev in root_dev_names:
        devnm = "ROOT_DEV_NAME-" + dev
        rc.append("s,@" + devnm + "[@]," + d.getVar(devnm, True) + ",g")
    return " ".join(rc)

FINALIZE_FLASH = "reboot"
FINALIZE_FLASH_bohr-update = "poweroff"

do_compile () {
    set -x

    ALL_ROOT_DEV_NAMES=""
    ALL_ROOT_DEV_NAMES_S=""<commit_msg>flash-device: add extra dependencies for usb updater<commit_after>DESCRIPTION = "Initscript for flashing images at boot"

OPN := "${PN}"
PN = "${OPN}-${WANTED_ROOT_DEV}"
FILESEXTRAPATHS_prepend := "${THISDIR}/${OPN}:"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

PACKAGE_ARCH = "${MACHINE_ARCH}"

SRC_URI = "file://flash-device.sh \
"

SRC_URI_append_curie = "\
    file://init.ssd \
    file://init.curie \
    file://hw.curie \
    file://post.curie \
"

SRC_URI_append_bohr = "\
    file://init.mtd \
    file://init.ssd \
    file://init.bohr \
    file://hw.bohr \
    file://post.bohr \
    file://ubinize.cfg \
"

SRC_URI_append_bohr-update = "\
    file://init.mtd \
    file://init.bohr-update \
    file://hw.bohr-update \
    file://post.bohr-update \
    file://ubinize.cfg \
"

DEPENDS_append_bohr-update = "\
    openssl \
    u-boot-fw-utils \
"

def all_root_dev_names (d) :
    rc = []
    root_dev_names = d.getVar("AVAIL_ROOT_DEVS", True).split(" ")
    for dev in root_dev_names:
        devnm = "ROOT_DEV_NAME-" + dev
        rc.append("s,@" + devnm + "[@]," + d.getVar(devnm, True) + ",g")
    return " ".join(rc)

FINALIZE_FLASH = "reboot"
FINALIZE_FLASH_bohr-update = "poweroff"

do_compile () {
    set -x

    ALL_ROOT_DEV_NAMES=""
    ALL_ROOT_DEV_NAMES_S=""
{'fraction_non_alphanumeric': 0.18, 'fraction_numerical': 0.021538461538461538, 'mean_word_length': 2.8590504451038576, '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': '6697326', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1087, 'n_words': 146}