1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-07-14 02:02:37 +01:00
Files
operating-system/buildroot-external/scripts/name.sh
T
Jan Čermák 6135ecdcc7 Use Genimage for declarative image layout (#3388)
* Use Genimage for declarative image layout instead of s[fg]disk and dd

* Change partition type to hybrid for M1, M1S and Green

This is what it really is, so just make sure only one "fix" function is
called.

* Change efi BOOT_SYS to gpt

There is no reason to have separate efi and boot sys, since all boards
that use efi also use grub as the loader.

* Change BOOT_SYS to more explanatory PARTITION_TABLE_TYPE

* Add units to DISK_SIZE

* Add forced-primary patch and use it in MBR images

* Avoid disabling SC2155, remove old comments
2024-06-07 13:44:14 +02:00

47 lines
922 B
Bash
Executable File

#!/bin/bash
function hassos_image_name() {
echo "${BINARIES_DIR}/${HASSOS_ID}_${BOARD_ID}-$(hassos_version).${1}"
}
function hassos_image_basename() {
echo "${BINARIES_DIR}/${HASSOS_ID}_${BOARD_ID}-$(hassos_version)"
}
function hassos_rauc_compatible() {
echo "${HASSOS_ID}-${BOARD_ID}"
}
function hassos_version() {
if [ -z "${VERSION_SUFFIX}" ]; then
echo "${VERSION_MAJOR}.${VERSION_MINOR}"
else
echo "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_SUFFIX}"
fi
}
function path_kernel_img() {
echo "${BINARIES_DIR}/kernel.img"
}
function path_boot_img() {
echo "${BINARIES_DIR}/boot.vfat"
}
function path_boot_dir() {
echo "${BINARIES_DIR}/boot"
}
function path_data_img() {
echo "${BINARIES_DIR}/data.ext4"
}
function path_overlay_img() {
echo "${BINARIES_DIR}/overlay.ext4"
}
function path_rootfs_img() {
echo "${BINARIES_DIR}/rootfs.squashfs"
}