Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | LICENSE = "MIT" |
| 2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
| 3 | SUMMARY = "Basic systemd-boot configuration files" |
| 4 | |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 5 | RPROVIDES:${PN} += "virtual-systemd-bootconf" |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 6 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | |
| 8 | inherit systemd-boot-cfg |
| 9 | |
| 10 | S = "${WORKDIR}" |
| 11 | |
| 12 | LABELS = "boot" |
| 13 | |
| 14 | ROOT ?= "root=/dev/sda2" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 15 | APPEND:append = " ${ROOT}" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | |
| 17 | python do_configure() { |
| 18 | bb.build.exec_func('build_efi_cfg', d) |
| 19 | } |
| 20 | |
| 21 | do_configure[vardeps] += "APPEND" |
| 22 | |
| 23 | do_install() { |
| 24 | install -d ${D}/boot |
| 25 | install -d ${D}/boot/loader |
| 26 | install -d ${D}/boot/loader/entries |
| 27 | install loader.conf ${D}/boot/loader/ |
| 28 | rm loader.conf |
| 29 | install *.conf ${D}/boot/loader/entries/ |
| 30 | } |
| 31 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 32 | FILES:${PN} = "/boot/loader/* /boot/loader/entries/*" |