1*4882a593SmuzhiyunSUMMARY = "Configuration files for kexecboot" 2*4882a593SmuzhiyunDESCRIPTION = "Default icon and boot.cfg for kexecboot linux-as-bootloader." 3*4882a593SmuzhiyunSECTION = "base" 4*4882a593SmuzhiyunLICENSE = "MIT" 5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSRC_URI = "file://icon.xpm" 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunS = "${WORKDIR}" 10*4882a593Smuzhiyun 11*4882a593Smuzhiyundo_install:prepend () { 12*4882a593Smuzhiyunecho '# /boot/boot.cfg - KEXECBOOT configuration file. 13*4882a593Smuzhiyun# 14*4882a593Smuzhiyun# First kernel stanza. 15*4882a593Smuzhiyun# Show this label in kexecboot menu. 16*4882a593Smuzhiyun# 17*4882a593SmuzhiyunLABEL=${KEXECBOOT_LABEL} 18*4882a593Smuzhiyun# 19*4882a593Smuzhiyun# Specify full kernel path on target. 20*4882a593SmuzhiyunKERNEL=/boot/${KERNEL_IMAGETYPE} 21*4882a593Smuzhiyun# 22*4882a593Smuzhiyun# Specify which device tree blob to use 23*4882a593Smuzhiyun# DTB=/boot/my-own-dtb 24*4882a593Smuzhiyun# 25*4882a593Smuzhiyun# Append this tags to the kernel cmdline. 26*4882a593SmuzhiyunAPPEND=${CMDLINE} ${CMDLINE_DEBUG} 27*4882a593Smuzhiyun# 28*4882a593Smuzhiyun# Overwrite kernel command line instead of appending to it 29*4882a593Smuzhiyun# CMDLINE=console=/dev/tty0 root=/dev/sdb1 30*4882a593Smuzhiyun# 31*4882a593Smuzhiyun# Specify optional initrd/initramfs. 32*4882a593Smuzhiyun# INITRD=/boot/initramfs.cpio.gz 33*4882a593Smuzhiyun# 34*4882a593Smuzhiyun# Specify full path for a custom icon for the menu-item. 35*4882a593Smuzhiyun# If not set, use device-icons as default (NAND, SD, CF, ...). 36*4882a593Smuzhiyun# ICON=/boot/icon.xpm 37*4882a593Smuzhiyun# 38*4882a593Smuzhiyun# Priority of item in kexecboot menu. 39*4882a593Smuzhiyun# Items with highest priority will be shown at top of menu. 40*4882a593Smuzhiyun# Default: 0 (lowest, ordered by device ordering) 41*4882a593Smuzhiyun# PRIORITY=10 42*4882a593Smuzhiyun# 43*4882a593Smuzhiyun# 44*4882a593Smuzhiyun# Second kernel stanza. 45*4882a593Smuzhiyun# LABEL=${KEXECBOOT_LABEL}-test 46*4882a593Smuzhiyun# KERNEL=/boot/${KERNEL_IMAGETYPE}-test 47*4882a593Smuzhiyun# APPEND=${CMDLINE} 48*4882a593Smuzhiyun#' > ${S}/boot.cfg 49*4882a593Smuzhiyun} 50*4882a593Smuzhiyundo_install () { 51*4882a593Smuzhiyun install -d ${D}/boot 52*4882a593Smuzhiyun install -m 0644 boot.cfg ${D}/boot/boot.cfg 53*4882a593Smuzhiyun install -m 0644 icon.xpm ${D}/boot/icon.xpm 54*4882a593Smuzhiyun} 55*4882a593Smuzhiyun 56*4882a593SmuzhiyunPACKAGE_ARCH = "${MACHINE_ARCH}" 57*4882a593Smuzhiyun 58*4882a593SmuzhiyunFILES:${PN} += "/boot/*" 59*4882a593Smuzhiyun 60*4882a593SmuzhiyunCMDLINE ?= "" 61*4882a593SmuzhiyunCMDLINE_DEBUG ?= "quiet" 62*4882a593Smuzhiyun 63*4882a593SmuzhiyunINHIBIT_DEFAULT_DEPS = "1" 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun# Note: for qvga the label is currently limited to about 24 chars 66*4882a593SmuzhiyunKEXECBOOT_LABEL ?= "${@d.getVar('DISTRO') or d.getVar('DISTRO_VERSION')}-${MACHINE}" 67