• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/systemd/systemd.mk
Alexandre BelloniAlexandre Belloni committed 8dfd59d114406 Jun 2013
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# systemd
4
#
5
################################################################################
6
​
7
SYSTEMD_VERSION = 44
8
SYSTEMD_SITE = http://www.freedesktop.org/software/systemd/
9
SYSTEMD_SOURCE = systemd-$(SYSTEMD_VERSION).tar.xz
10
SYSTEMD_INSTALL_STAGING = YES
11
SYSTEMD_DEPENDENCIES = \
12
    host-intltool \
13
    libcap \
14
    udev \
15
    dbus
16
​
17
# Make sure that systemd will always be built after busybox so that we have
18
# a consistent init setup between two builds
19
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
20
    SYSTEMD_DEPENDENCIES += busybox
21
endif
22
​
23
SYSTEMD_CONF_OPT += \
24
    --with-distro=other \
25
    --disable-selinux \
26
    --disable-pam \
27
    --disable-libcryptsetup \
28
    --disable-gtk \
29
    --disable-plymouth \
30
    --with-rootdir=/ \
31
    --with-dbuspolicydir=/etc/dbus-1/system.d \
32
    --with-dbussessionservicedir=/usr/share/dbus-1/services \
33
    --with-dbussystemservicedir=/usr/share/dbus-1/system-services \
34
    --with-dbusinterfacedir=/usr/share/dbus-1/interfaces \
35
    --with-udevrulesdir=/etc/udev/rules.d \
36
    --with-sysvinit-path=/etc/init.d/ \
37
    --without-sysvrcd-path \
38
    --enable-split-usr
39
​
40
ifeq ($(BR2_PACKAGE_ACL),y)
41
    SYSTEMD_CONF_OPT += --enable-acl
42
    SYSTEMD_DEPENDENCIES += acl
43
else
44
    SYSTEMD_CONF_OPT += --disable-acl
45
endif
46
​
47
ifneq ($(BR2_LARGEFILE),y)
48
    SYSTEMD_CONF_OPT += --disable-largefile
49
endif
50
​
51
# mq_getattr needs -lrt
52
SYSTEMD_MAKE_OPT += LIBS=-lrt
53
SYSTEMD_MAKE_OPT += LDFLAGS+=-ldl
54
​
55
define SYSTEMD_INSTALL_INIT_HOOK
56
    ln -fs ../usr/lib/systemd/systemd $(TARGET_DIR)/sbin/init
57
    ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/halt
58
    ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/poweroff
59
    ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/reboot
60
​
61
    ln -fs ../../../usr/lib/systemd/system/multi-user.target $(TARGET_DIR)/etc/systemd/system/default.target
62
endef
63
​
64
define SYSTEMD_INSTALL_TTY_HOOK
65
    rm -f $(TARGET_DIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
66
    ln -fs ../../../../usr/lib/systemd/system/serial-getty@.service $(TARGET_DIR)/etc/systemd/system/getty.target.wants/serial-getty@$(BR2_TARGET_GENERIC_GETTY_PORT).service
67
endef
68
​
69
SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
70
    SYSTEMD_INSTALL_INIT_HOOK \
71
    SYSTEMD_INSTALL_TTY_HOOK \
72
​
73
$(eval $(autotools-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.