<commit_before># Original recipe core-image-full-cmdline
IMAGE_FEATURES += "ssh-server-openssh"
IMAGE_INSTALL = " \
                  packagegroup-core-boot \
                  ${CORE_IMAGE_EXTRA_INSTALL} \
"
inherit core-image python3-dir

SUMMARY = ""
DESCRIPTION = "Medusa image"
LICENSE = "MIT"

# Added packets from and for manufacturer:
# barebox - bootloader
# dt-utils-barebox-state - linux packet for set/get shared barebox variables
# kernel-image - copy kernel into rootfs (boot directory)
# kernel-devicetree - copy dtb into rootfs (boot directory)
# openssh-sshd - ssh connection used during production
# bluez-tools - bt-adapter used during production for obtaining MAC
# iperf3 - used during production for bandwidth test
# medusa-version - used during production for obtaining version
IMAGE_INSTALL_append = " barebox dt-utils-barebox-state \
                         kernel-image kernel-devicetree \
                         openssh-sshd \
                         bluez-tools \
                         iperf3 \
                         medusa-version \
"

# Added packets from Stromer:
# busybox - contains a lot of tools in a single executable or in very small binaries (depending on CONFIG_FEATURE_INDIVIDUAL) while providing a small footprint
# tzdata - timezone database
# acl fuse-exfat ntfs-3g - extended filesystem support
# systemd-analyze - debug information collection
# gdb ltrace perf strace - debugging
# gdbserver tcf-agent - low level debugging
# openssh-scp openssh-sftp-server - scp and sftp
# hostapd linux-firmware-rtl8192cu - wifi
# bind-utils iftop iproute2-ss iputils nmap ppp-tools socat tcpdump - networking tools
IMAGE_INSTALL_append = " busybox \
                         tzdata tzdata-misc tzdata-africa tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific \
                         acl fuse-exfat ntfs-3g \
                         systemd-analyze \
                         gdb ltrace perf strace \
                         gdbserver tcf-agent \
                         openssh-scp openssh-sftp-server \
                         hostapd linux-firmware-rtl8192cu \
                         bind-utils iftop iproute2-ss iputils nmap ppp-tools socat tcpdump \
                         bbu bluez5-noinst-tools dtc fbgrab fbtest glibc-utils htop less lsof memtester mtd-utils-tests nano ncurses-tools nmon rsyslog sudo systemd-extra-utils systemd-journal-upload \
"

# Revert installation of links in update-alternative scheme due to the following reasons:
# - In a non-interactively used system, there is no use of having alternatives since the
#   alternative with the highest priority will be used and all other alternatives are not.
# - The update-alternative scheme creates symlinks and thus increases the amount of files in the image.
#   Having more files in the images increases the time required to perform the installation of the image.
# Remark: Doing this as ROOTFS_POSTPROCESS_COMMAND to avoid having influence on the SDK.
resolve_symlinks_to_busybox() {
    cat ${IMAGE_ROOTFS}/etc/busybox.links | while read FILE; do<commit_msg>Removed bluez5-noinst-tools from image appends. Since it is now required from our app layer.<commit_after># Original recipe core-image-full-cmdline
IMAGE_FEATURES += "ssh-server-openssh"
IMAGE_INSTALL = " \
                  packagegroup-core-boot \
                  ${CORE_IMAGE_EXTRA_INSTALL} \
"
inherit core-image python3-dir

SUMMARY = ""
DESCRIPTION = "Medusa image"
LICENSE = "MIT"

# Added packets from and for manufacturer:
# barebox - bootloader
# dt-utils-barebox-state - linux packet for set/get shared barebox variables
# kernel-image - copy kernel into rootfs (boot directory)
# kernel-devicetree - copy dtb into rootfs (boot directory)
# openssh-sshd - ssh connection used during production
# bluez-tools - bt-adapter used during production for obtaining MAC
# iperf3 - used during production for bandwidth test
# medusa-version - used during production for obtaining version
IMAGE_INSTALL_append = " barebox dt-utils-barebox-state \
                         kernel-image kernel-devicetree \
                         openssh-sshd \
                         bluez-tools \
                         iperf3 \
                         medusa-version \
"

# Added packets from Stromer:
# busybox - contains a lot of tools in a single executable or in very small binaries (depending on CONFIG_FEATURE_INDIVIDUAL) while providing a small footprint
# tzdata - timezone database
# acl fuse-exfat ntfs-3g - extended filesystem support
# systemd-analyze - debug information collection
# gdb ltrace perf strace - debugging
# gdbserver tcf-agent - low level debugging
# openssh-scp openssh-sftp-server - scp and sftp
# hostapd linux-firmware-rtl8192cu - wifi
# bind-utils iftop iproute2-ss iputils nmap ppp-tools socat tcpdump - networking tools
IMAGE_INSTALL_append = " busybox \
                         tzdata tzdata-misc tzdata-africa tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific \
                         acl fuse-exfat ntfs-3g \
                         systemd-analyze \
                         gdb ltrace perf strace \
                         gdbserver tcf-agent \
                         openssh-scp openssh-sftp-server \
                         hostapd linux-firmware-rtl8192cu \
                         bind-utils iftop iproute2-ss iputils nmap ppp-tools socat tcpdump \
                         bbu dtc fbgrab fbtest glibc-utils htop less lsof memtester mtd-utils-tests nano ncurses-tools nmon rsyslog sudo systemd-extra-utils systemd-journal-upload \
"

# Revert installation of links in update-alternative scheme due to the following reasons:
# - In a non-interactively used system, there is no use of having alternatives since the
#   alternative with the highest priority will be used and all other alternatives are not.
# - The update-alternative scheme creates symlinks and thus increases the amount of files in the image.
#   Having more files in the images increases the time required to perform the installation of the image.
# Remark: Doing this as ROOTFS_POSTPROCESS_COMMAND to avoid having influence on the SDK.
resolve_symlinks_to_busybox() {
    cat ${IMAGE_ROOTFS}/etc/busybox.links | while read FILE; do
{'fraction_non_alphanumeric': 0.06056802134002824, 'fraction_numerical': 0.005021183116271772, 'mean_word_length': 2.5430794886047803, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '112358', 'n_tokens_mistral': 1862, 'n_tokens_neox': 1713, 'n_words': 605}