Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mail.openembedded.org (Postfix) with ESMTP id 234C4787F9 for ; Mon, 26 Feb 2018 20:12:29 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2018 12:12:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,397,1515484800"; d="scan'208";a="203914603" Received: from clsulliv.jf.intel.com ([10.7.201.36]) by orsmga005.jf.intel.com with ESMTP; 26 Feb 2018 12:12:30 -0800 From: California Sullivan To: openembedded-core@lists.openembedded.org Date: Mon, 26 Feb 2018 12:12:12 -0800 Message-Id: <20180226201216.33204-13-california.l.sullivan@intel.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180226201216.33204-1-california.l.sullivan@intel.com> References: <20180226201216.33204-1-california.l.sullivan@intel.com> Subject: [PATCH 12/16] systemd: add systemd-bootconf recipe X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2018 20:12:30 -0000 Reuses our systemd-boot-cfg bbclass to generate systemd-boot configuration files. Signed-off-by: California Sullivan --- meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd-bootconf_1.00.bb diff --git a/meta/recipes-core/systemd/systemd-bootconf_1.00.bb b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb new file mode 100644 index 00000000000..bd291e65115 --- /dev/null +++ b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb @@ -0,0 +1,29 @@ +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +RPROVIDES_${PN} += "virtual/systemd-bootconf" + +inherit systemd-boot-cfg + +S = "${WORKDIR}" + +LABELS = "boot" + +APPEND_append = " root=/dev/sda2" + +python do_configure() { + bb.build.exec_func('build_efi_cfg', d) +} + +do_configure[vardeps] += "APPEND" + +do_install() { + install -d ${D}/boot + install -d ${D}/boot/loader + install -d ${D}/boot/loader/entries + install -m 0744 loader.conf ${D}/boot/loader/ + rm loader.conf + install -m 077 *.conf ${D}/boot/loader/entries/ +} + +FILES_${PN} = "/boot/loader/* /boot/loader/entries/*" -- 2.14.3