# Firmware metadata and shared definitions for nerves_system_openwrt_one
#
# These can be overridden via environment variables of the same name when
# building the .fw file.

define(NERVES_FW_PRODUCT, "Nerves Firmware")
define(NERVES_FW_DESCRIPTION, "")
define(NERVES_FW_VERSION, "${NERVES_SDK_VERSION}")
define(NERVES_FW_PLATFORM, "openwrt_one")
define(NERVES_FW_ARCHITECTURE, "aarch64")
define(NERVES_FW_AUTHOR, "Herman verschooten")

# OpenWRT One uses SPI NAND with UBI volumes, not a single block device.
# These devpaths point at the in-Linux representations exposed by mtd/ubi.
define(NERVES_FW_DEVPATH, "/dev/ubi0")
define(NERVES_FW_APPLICATION_PART0_DEVPATH, "/dev/ubiblock0_4")
define(NERVES_FW_APPLICATION_PART0_FSTYPE, "squashfs")
define(NERVES_FW_APPLICATION_PART0_TARGET, "/root")
define(NERVES_PROVISIONING, "${NERVES_SYSTEM}/images/fwup_include/provisioning.conf")

# Default rootfs path. mix firmware overrides this.
define(ROOTFS, "${NERVES_SYSTEM}/images/rootfs.squashfs")

# Firmware archive metadata
meta-product = ${NERVES_FW_PRODUCT}
meta-description = ${NERVES_FW_DESCRIPTION}
meta-version = ${NERVES_FW_VERSION}
meta-platform = ${NERVES_FW_PLATFORM}
meta-architecture = ${NERVES_FW_ARCHITECTURE}
meta-author = ${NERVES_FW_AUTHOR}
meta-vcs-identifier = ${NERVES_FW_VCS_IDENTIFIER}
meta-misc = ${NERVES_FW_MISC}
