blob: 19637546a99cb1f6118d6f784c7985a5bfafd6d1 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001LICENSE = "MIT"
2LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
3SUMMARY = "Basic systemd-boot configuration files"
4
Andrew Geisslerd159c7f2021-09-02 21:05:58 -05005RPROVIDES:${PN} += "virtual-systemd-bootconf"
Brad Bishop96ff1982019-08-19 13:50:42 -04006PACKAGE_ARCH = "${MACHINE_ARCH}"
Brad Bishop316dfdd2018-06-25 12:45:53 -04007
8inherit systemd-boot-cfg
9
10S = "${WORKDIR}"
11
12LABELS = "boot"
13
14ROOT ?= "root=/dev/sda2"
Patrick Williams213cb262021-08-07 19:21:33 -050015APPEND:append = " ${ROOT}"
Brad Bishop316dfdd2018-06-25 12:45:53 -040016
17python do_configure() {
18 bb.build.exec_func('build_efi_cfg', d)
19}
20
21do_configure[vardeps] += "APPEND"
22
23do_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 Williams213cb262021-08-07 19:21:33 -050032FILES:${PN} = "/boot/loader/* /boot/loader/entries/*"