<commit_before>#
# Default implementations of board routines.
#

# Boards that need more than this can define their own.
BOARD_FREEBSD_MOUNTPOINT=${WORKDIR}/_.mount.freebsd
BOARD_BOOT_MOUNTPOINT=${WORKDIR}/_.mount.boot

# Default is to install world ...
FREEBSD_INSTALL_WORLD=y

# List of all board dirs.
BOARDDIRS=""

# $1: name of board directory
#
board_setup ( ) {
    BOARDDIR=${TOPDIR}/board/$1
    if [ ! -e ${BOARDDIR}/setup.sh ]; then
        echo "Can't setup board $1."
        echo "No setup.sh in ${BOARDDIR}."
        exit 1
    fi
    BOARDDIRS="$BOARDDIRS $BOARDDIR"
    echo "Board: $1"
    . $BOARDDIR/setup.sh

    PRIORITY=20 strategy_add $PHASE_FREEBSD_BOARD_INSTALL board_overlay_files $BOARDDIR
    BOARDDIR=
}

board_generate_image_name ( ) {
    if [ -z "${IMG}" ]; then
        IMG=${WORKDIR}/FreeBSD-${TARGET_ARCH}-${OS_VERSION}-${KERNCONF}.img
    fi<commit_msg>if source revision is known, add it to the image file name<commit_after>#
# Default implementations of board routines.
#

# Boards that need more than this can define their own.
BOARD_FREEBSD_MOUNTPOINT=${WORKDIR}/_.mount.freebsd
BOARD_BOOT_MOUNTPOINT=${WORKDIR}/_.mount.boot

# Default is to install world ...
FREEBSD_INSTALL_WORLD=y

# List of all board dirs.
BOARDDIRS=""

# $1: name of board directory
#
board_setup ( ) {
    BOARDDIR=${TOPDIR}/board/$1
    if [ ! -e ${BOARDDIR}/setup.sh ]; then
        echo "Can't setup board $1."
        echo "No setup.sh in ${BOARDDIR}."
        exit 1
    fi
    BOARDDIRS="$BOARDDIRS $BOARDDIR"
    echo "Board: $1"
    . $BOARDDIR/setup.sh

    PRIORITY=20 strategy_add $PHASE_FREEBSD_BOARD_INSTALL board_overlay_files $BOARDDIR
    BOARDDIR=
}

board_generate_image_name ( ) {
    if [ -z "${IMG}" ]; then
        if [ -z "${SOURCE_VERSION}" ]; then
           IMG=${WORKDIR}/FreeBSD-${TARGET_ARCH}-${OS_VERSION}-${KERNCONF}.img
       else
           IMG=${WORKDIR}/FreeBSD-${TARGET_ARCH}-${OS_VERSION}-${KERNCONF}-r${SOURCE_VERSION}.img
       fi
    fi
{'fraction_non_alphanumeric': 0.13353413654618473, 'fraction_numerical': 0.007028112449799197, 'mean_word_length': 3.2952586206896552, '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': '2790741', 'n_tokens_mistral': 723, 'n_tokens_neox': 691, 'n_words': 163}