From patchwork Fri Jul 31 21:18:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Norbert Lange X-Patchwork-Id: 1339609 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=lp7zhnzm; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BJKsY43NWz9sSt for ; Sat, 1 Aug 2020 07:19:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6149E204ED; Fri, 31 Jul 2020 21:19:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sf2IkKsJdXMF; Fri, 31 Jul 2020 21:19:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C506620519; Fri, 31 Jul 2020 21:19:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 0C58B1BF2CA for ; Fri, 31 Jul 2020 21:19:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 08F6288382 for ; Fri, 31 Jul 2020 21:19:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1O4TQsCqds1z for ; Fri, 31 Jul 2020 21:19:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 28F38881D7 for ; Fri, 31 Jul 2020 21:19:03 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id k20so10373254wmi.5 for ; Fri, 31 Jul 2020 14:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W/jwj8LY5V93CxwlScC+p+wPeO9dUV49D1RqafKHwqs=; b=lp7zhnzmD5x2WpLuaYNOjb7oTMD/Ac4h4T1oZqc2ZeRXEJ8tV8gUJ2eUJrExfngJ7V RB0GLliPrVgTViiqQrcizXpqnhbvjI5514gG0UTc6Rc85F7ElFCCxMmkwSkMdpqgoDIE xtMr0sHAN7J4b5XRMiYYiYlyfFRwq23bofi7amZ7wIMctzRowf1+sxeCF9p7Dv+qqdh7 ahvagYDkQuFUkTWa23M61KhyLnbXY7xVTjZI137dAf4utcQqdCzZJeQM+UrYgMrwuHeG GAGhjQK67Rp4oY4IKionW/6rkv/jD+5FYtlYKlcjLmSQh8NFsfC0Y3Q+czW0t8Ll4+id oWlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W/jwj8LY5V93CxwlScC+p+wPeO9dUV49D1RqafKHwqs=; b=f+hOfeF/vPHx0aS1IvP5kqqPWe8bbD2Oe0L981MazH8WNVVIUgGTteNgVx/f1lDWb1 ioMwthdaKc+iQgPyY47zJb8hscHK4UmmRQJVY7S5sGmykxHxT/9wRRCi0nuR1bQNCs6A HZh6tU/3evd4jerKQqHiGuTsqKsr0hLJ3P7Vgm8VzxWTc7ybjMpM07bQ2PkfrJXZkAV+ fJl0IYWGSrCV9vU/syHZeY7e/oEb6zYkXXbcycvhg1MCK1HNFL404eFPACDCoz07VPu+ kb6Lvif0fgAzRvmTnpAdwtkiqmD+QxkT2EHhFAwI++nCmhAOHzOpDRIZLSGa76nl44bx y2Pg== X-Gm-Message-State: AOAM533RjMQGR7aHA5ctOnJLCLPpdW+jawHIyIH4g+05hxL/yByB1EiE gf29aumxsG1I1ldS/67pCwnSaaLh X-Google-Smtp-Source: ABdhPJx8IAQ+W5Je8UhjaONmTriYzwdEb4aOrb4XYB4bhmusTVLTyB0e1yKphqGyFB0ruXgdon55Dw== X-Received: by 2002:a7b:cb46:: with SMTP id v6mr5728345wmj.73.1596230341227; Fri, 31 Jul 2020 14:19:01 -0700 (PDT) Received: from localhost.localdomain (84-114-45-16.cable.dynamic.surfer.at. [84.114.45.16]) by smtp.gmail.com with ESMTPSA id x204sm21834840wmg.2.2020.07.31.14.19.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 14:19:00 -0700 (PDT) From: Norbert Lange To: buildroot@buildroot.org Date: Fri, 31 Jul 2020 23:18:46 +0200 Message-Id: <20200731211847.14911-2-nolange79@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200731211847.14911-1-nolange79@gmail.com> References: <20200731211847.14911-1-nolange79@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/systemd: support new v246 options X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Norbert Lange , "Yann E. MORIN" , Adam Duskett , Maxime Hadjinlian Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This adds switches for new options: initrd: Installs services if systemd is used on an initramfs, useless otherwise kernel-install: helper scripts to update kernel with an systemd-boot partition analyze: tool to analyze bootup and dependencies Signed-off-by: Norbert Lange --- package/systemd/Config.in | 25 +++++++++++++++++++++++++ package/systemd/systemd.mk | 18 ++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/package/systemd/Config.in b/package/systemd/Config.in index dd3b8c534d..ccdd5bfa92 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -112,6 +112,30 @@ config BR2_PACKAGE_SYSTEMD_BOOT https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/ +config BR2_PACKAGE_SYSTEMD_INITRD + bool "Services for booting from initrd" + help + install various services that are only usefull if systemd + is run from an initrd. + +config BR2_PACKAGE_SYSTEMD_KERNELINSTALL + bool "install kernel-install and related files" + help + kernel-install is used to install and remove kernel and + initramfs images to and from the boot loader partition. + The boot loader partition will usually be one of + /boot, /efi, or /boot/efi. + +config BR2_PACKAGE_SYSTEMD_ANALYZE + bool "systemd-analyze" + help + systemd-analyze may be used to determine system boot-up + performance statistics and retrieve other state and tracing + information from the system and service manager, + and to verify the correctness of unit files. + It is also used to access special functions useful for + advanced system manager debugging. + config BR2_PACKAGE_SYSTEMD_BOOT_EFI_ARCH string default "ia32" if BR2_i386 @@ -187,6 +211,7 @@ config BR2_PACKAGE_SYSTEMD_FIRSTBOOT config BR2_PACKAGE_SYSTEMD_HIBERNATE bool "enable hibernation support" + depends on BR2_PACKAGE_SYSTEMD_INITRD help When this features is enabled, additional tools and services are built to support suspending and resuming the system. diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 87265c97ad..00ab5fd383 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -208,6 +208,24 @@ else SYSTEMD_CONF_OPTS += -Dpcre2=false endif +ifeq ($(BR2_PACKAGE_SYSTEMD_INITRD),y) +SYSTEMD_CONF_OPTS += -Dinitrd=true +else +SYSTEMD_CONF_OPTS += -Dinitrd=false +endif + +ifeq ($(BR2_PACKAGE_SYSTEMD_KERNELINSTALL),y) +SYSTEMD_CONF_OPTS += -Dkernel-install=true +else +SYSTEMD_CONF_OPTS += -Dkernel-install=false +endif + +ifeq ($(BR2_PACKAGE_SYSTEMD_ANALYZE),y) +SYSTEMD_CONF_OPTS += -Danalyze=true +else +SYSTEMD_CONF_OPTS += -Danalyze=false +endif + ifeq ($(BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY),y) SYSTEMD_DEPENDENCIES += libmicrohttpd SYSTEMD_CONF_OPTS += -Dmicrohttpd=true