diff options
author | Jianxun Zhang <jianxun.zhang@linux.intel.com> | 2016-05-05 11:20:37 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-03 13:13:25 +0100 |
commit | c71f5ab37416629793b9f826480d440d67531791 (patch) | |
tree | 3a605787ba786549c99b8923133ea38c24f4af3d /meta/recipes-core/systemd | |
parent | 408297489d1b368e8cc539ce93fbe566976b0f3a (diff) | |
download | poky-c71f5ab37416629793b9f826480d440d67531791.tar.gz |
systemd: support systemd-boot as a stand-alone EFI bootloader
The "systemd-boot" is gummiboot now included into systemd project.
The old gummiboot project supported in OE is dead.
Our intention is to get a gummiboot-like EFI bootloader without
much dependency on systemd and its features.
This work is largely derived from the existing bbclass and recipes
of gummiboot and systemd.
(commit tip: ee25d0e3987d7732a2e46e1640693b4cf419a9fc)
Please refer to the history up to the tip for authorship and
credit information for the original works.
To enable the systemd-boot in build, add this line
EFI_PROVIDER = "systemd-boot" in your machine conf file.
(From OE-Core rev: e9add1cd01e498d2aa52528ec52342cae48a387a)
Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd')
-rw-r--r-- | meta/recipes-core/systemd/systemd.inc | 25 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd_229.bb | 26 |
2 files changed, 27 insertions, 24 deletions
diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc new file mode 100644 index 0000000000..824713057d --- /dev/null +++ b/meta/recipes-core/systemd/systemd.inc | |||
@@ -0,0 +1,25 @@ | |||
1 | SUMMARY = "A System and service manager" | ||
2 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd" | ||
3 | |||
4 | DESCRIPTION = "systemd is a system and service manager for Linux, compatible with \ | ||
5 | SysV and LSB init scripts. systemd provides aggressive parallelization \ | ||
6 | capabilities, uses socket and D-Bus activation for starting services, \ | ||
7 | offers on-demand starting of daemons, keeps track of processes using \ | ||
8 | Linux cgroups, supports snapshotting and restoring of the system \ | ||
9 | state, maintains mount and automount points and implements an \ | ||
10 | elaborate transactional dependency-based service control logic. It can \ | ||
11 | work as a drop-in replacement for sysvinit." | ||
12 | |||
13 | LICENSE = "GPLv2 & LGPLv2.1" | ||
14 | LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \ | ||
15 | file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c" | ||
16 | |||
17 | SRCREV = "714c62b46379abb7558c544665522aca91691e10" | ||
18 | |||
19 | SRC_URI = "git://github.com/systemd/systemd.git;protocol=git" | ||
20 | |||
21 | PV = "229+git${SRCPV}" | ||
22 | |||
23 | S = "${WORKDIR}/git" | ||
24 | |||
25 | LDFLAGS_append_libc-uclibc = " -lrt -lssp_nonshared -lssp " | ||
diff --git a/meta/recipes-core/systemd/systemd_229.bb b/meta/recipes-core/systemd/systemd_229.bb index ae63c58056..c2cc06991b 100644 --- a/meta/recipes-core/systemd/systemd_229.bb +++ b/meta/recipes-core/systemd/systemd_229.bb | |||
@@ -1,18 +1,4 @@ | |||
1 | SUMMARY = "A System and service manager" | 1 | require systemd.inc |
2 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd" | ||
3 | |||
4 | DESCRIPTION = "systemd is a system and service manager for Linux, compatible with \ | ||
5 | SysV and LSB init scripts. systemd provides aggressive parallelization \ | ||
6 | capabilities, uses socket and D-Bus activation for starting services, \ | ||
7 | offers on-demand starting of daemons, keeps track of processes using \ | ||
8 | Linux cgroups, supports snapshotting and restoring of the system \ | ||
9 | state, maintains mount and automount points and implements an \ | ||
10 | elaborate transactional dependency-based service control logic. It can \ | ||
11 | work as a drop-in replacement for sysvinit." | ||
12 | |||
13 | LICENSE = "GPLv2 & LGPLv2.1" | ||
14 | LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \ | ||
15 | file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c" | ||
16 | 2 | ||
17 | PROVIDES = "udev" | 3 | PROVIDES = "udev" |
18 | 4 | ||
@@ -24,11 +10,7 @@ SECTION = "base/shell" | |||
24 | 10 | ||
25 | inherit useradd pkgconfig autotools perlnative update-rc.d update-alternatives qemu systemd ptest gettext bash-completion | 11 | inherit useradd pkgconfig autotools perlnative update-rc.d update-alternatives qemu systemd ptest gettext bash-completion |
26 | 12 | ||
27 | SRCREV = "714c62b46379abb7558c544665522aca91691e10" | 13 | SRC_URI += " \ |
28 | |||
29 | PV = "229+git${SRCPV}" | ||
30 | |||
31 | SRC_URI = "git://github.com/systemd/systemd.git;protocol=git \ | ||
32 | file://touchscreen.rules \ | 14 | file://touchscreen.rules \ |
33 | file://00-create-volatile.conf \ | 15 | file://00-create-volatile.conf \ |
34 | file://init \ | 16 | file://init \ |
@@ -61,10 +43,6 @@ SRC_URI_append_libc-uclibc = "\ | |||
61 | " | 43 | " |
62 | SRC_URI_append_qemuall = " file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch" | 44 | SRC_URI_append_qemuall = " file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch" |
63 | 45 | ||
64 | S = "${WORKDIR}/git" | ||
65 | |||
66 | LDFLAGS_append_libc-uclibc = " -lrt -lssp_nonshared -lssp " | ||
67 | |||
68 | GTKDOC_DOCDIR = "${S}/docs/" | 46 | GTKDOC_DOCDIR = "${S}/docs/" |
69 | 47 | ||
70 | PACKAGECONFIG ??= "xz \ | 48 | PACKAGECONFIG ??= "xz \ |