PageRenderTime 127ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/package/systemd/systemd.mk

https://bitbucket.org/fhunleth/dm36x-buildroot
Makefile | 72 lines | 54 code | 10 blank | 8 comment | 0 complexity | 0a4de1194d44ba9ac4fab1044c27aa05 MD5 | raw file
Possible License(s): GPL-2.0
  1. #############################################################
  2. #
  3. # systemd
  4. #
  5. #############################################################
  6. SYSTEMD_VERSION = 44
  7. SYSTEMD_SITE = http://www.freedesktop.org/software/systemd/
  8. SYSTEMD_SOURCE = systemd-$(SYSTEMD_VERSION).tar.xz
  9. SYSTEMD_INSTALL_STAGING = YES
  10. SYSTEMD_DEPENDENCIES = \
  11. host-intltool \
  12. libcap \
  13. udev \
  14. dbus
  15. # Make sure that systemd will always be built after busybox so that we have
  16. # a consistent init setup between two builds
  17. ifeq ($(BR2_PACKAGE_BUSYBOX),y)
  18. SYSTEMD_DEPENDENCIES += busybox
  19. endif
  20. SYSTEMD_CONF_OPT += \
  21. --with-distro=other \
  22. --disable-selinux \
  23. --disable-pam \
  24. --disable-libcryptsetup \
  25. --disable-gtk \
  26. --disable-plymouth \
  27. --with-rootdir=/ \
  28. --with-dbuspolicydir=/etc/dbus-1/system.d \
  29. --with-dbussessionservicedir=/usr/share/dbus-1/services \
  30. --with-dbussystemservicedir=/usr/share/dbus-1/system-services \
  31. --with-dbusinterfacedir=/usr/share/dbus-1/interfaces \
  32. --with-udevrulesdir=/etc/udev/rules.d \
  33. --with-sysvinit-path=/etc/init.d/ \
  34. --without-sysvrcd-path \
  35. --enable-split-usr
  36. ifeq ($(BR2_PACKAGE_ACL),y)
  37. SYSTEMD_CONF_OPT += --enable-acl
  38. SYSTEMD_DEPENDENCIES += acl
  39. else
  40. SYSTEMD_CONF_OPT += --disable-acl
  41. endif
  42. ifneq ($(BR2_LARGEFILE),y)
  43. SYSTEMD_CONF_OPT += --disable-largefile
  44. endif
  45. # mq_getattr needs -lrt
  46. SYSTEMD_MAKE_OPT += LIBS=-lrt
  47. SYSTEMD_MAKE_OPT += LDFLAGS+=-ldl
  48. define SYSTEMD_INSTALL_INIT_HOOK
  49. ln -fs ../usr/lib/systemd/systemd $(TARGET_DIR)/sbin/init
  50. ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/halt
  51. ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/poweroff
  52. ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/reboot
  53. ln -fs ../../../usr/lib/systemd/system/multi-user.target $(TARGET_DIR)/etc/systemd/system/default.target
  54. endef
  55. define SYSTEMD_INSTALL_TTY_HOOK
  56. rm -f $(TARGET_DIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
  57. 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
  58. endef
  59. SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
  60. SYSTEMD_INSTALL_INIT_HOOK \
  61. SYSTEMD_INSTALL_TTY_HOOK \
  62. $(eval $(autotools-package))