From patchwork Tue Oct 20 18:44:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Kosir X-Patchwork-Id: 533116 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 4783A14110C for ; Wed, 21 Oct 2015 05:52:33 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 804D2307F1; Tue, 20 Oct 2015 18:52:32 +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 0iTKgPYYy7Fd; Tue, 20 Oct 2015 18:52:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C3A042F5E5; Tue, 20 Oct 2015 18:52:30 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id E748D1C10E7 for ; Tue, 20 Oct 2015 18:52:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E2A8D882E8 for ; Tue, 20 Oct 2015 18:52:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oBfZaYkOrYFY for ; Tue, 20 Oct 2015 18:52:27 +0000 (UTC) X-Greylist: delayed 00:07:42 by SQLgrey-1.7.6 Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by hemlock.osuosl.org (Postfix) with ESMTPS id CD35B87D2E for ; Tue, 20 Oct 2015 18:52:27 +0000 (UTC) Received: by oiad129 with SMTP id d129so15569843oia.0 for ; Tue, 20 Oct 2015 11:52:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=wCrCiLRvsfI3leTJz548lXOteHspszFyQtd75ZEt6VE=; b=THUXaAtC/fWuI93Og5WYf9LjJUbdL+N5Ve6RhnOgdChLeQnYO6JCVvdEYwYxFnGfcM 96+IhatlpCLxMXFR2gDL8JNrV71MpkoUOD3nRMu/U4c4Ma8mUkxvUi+5MjMqbOIDsqFY mBMnqkde8XBn0P+Rtq+WUWDCPNT2pq+3Mx9UTJoBXtBg2L2TKreB3GJJn8fOYna/ItZx BTei/hoPXFiVVSEFRUZWFNMFQkuOVzDVNWzARhO0ZUA0p2iUK4sdjU6TDmFU1u8zPq4o pTJPgzqnVpPNL3z7Fzh0Wrib97ZprHX55fWpsQ/XMxd2LmGjRwnrUgNI0e6MkCNmn2Pa HWKw== X-Gm-Message-State: ALoCoQnIYXxhqUJOsuK6a2Od77ZV35yc2DzlKWOB/dX+fbUnZ7MTMDehQJNT6v1+MW1eVPEEu/A7 X-Received: by 10.202.59.86 with SMTP id i83mr3034683oia.63.1445366684952; Tue, 20 Oct 2015 11:44:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.229.139 with HTTP; Tue, 20 Oct 2015 11:44:25 -0700 (PDT) X-Originating-IP: [85.94.70.210] From: David Kosir Date: Tue, 20 Oct 2015 20:44:25 +0200 Message-ID: To: buildroot@buildroot.org Subject: [Buildroot] [PATCH 1/1] Add more options to eudev package. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From de239fceb033d278ef70924bcea5c0a18b1f930d Mon Sep 17 00:00:00 2001 From: David Kosir Date: Tue, 20 Oct 2015 19:45:28 +0200 Subject: [PATCH 1/1] Add more options to eudev package. Making possible to install only in /, avoiding /usr. Also, make opinional to use kmod. Signed-off-by: David Kosir --- package/eudev/Config.in | 12 +++++++++++- package/eudev/eudev.mk | 16 +++++++++++++--- 2 files changed, 24 insertions(+), 4 deletions(-) -- 2.1.4 diff --git a/package/eudev/Config.in b/package/eudev/Config.in index 76df409..2474444 100644 --- a/package/eudev/Config.in +++ b/package/eudev/Config.in @@ -7,7 +7,6 @@ config BR2_PACKAGE_EUDEV select BR2_PACKAGE_HAS_UDEV select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBBLKID - select BR2_PACKAGE_KMOD help Userspace device daemon. This is a standalone version, independent of systemd. It is a fork maintained by Gentoo. @@ -22,6 +21,12 @@ if BR2_PACKAGE_EUDEV config BR2_PACKAGE_PROVIDES_UDEV default "eudev" +config BR2_PACKAGE_EUDEV_AVOID_USR + bool "don't install to /usr" + help + Avoid installing to /usr, use (e)prefix=/ + Useful when having separate /usr partition. + config BR2_PACKAGE_EUDEV_RULES_GEN bool "enable rules generator" help @@ -33,6 +38,11 @@ config BR2_PACKAGE_EUDEV_ENABLE_HWDB help Enables hardware database installation to /etc/udev/hwdb.d +config BR2_PACKAGE_EUDEV_ENABLE_KMOD + bool "enable kernel module support" + select BR2_PACKAGE_KMOD + help + Enable loadable kernel modules support (kmod) endif comment "eudev needs eudev /dev management" diff --git a/package/eudev/eudev.mk b/package/eudev/eudev.mk index a005f45..559a61e 100644 --- a/package/eudev/eudev.mk +++ b/package/eudev/eudev.mk @@ -24,16 +24,20 @@ EUDEV_CONF_OPTS = \ --sbindir=/sbin \ --libexecdir=/lib \ --with-firmware-path=/lib/firmware \ - --disable-introspection \ - --enable-libkmod + --disable-introspection -EUDEV_DEPENDENCIES = host-gperf host-pkgconf util-linux kmod +EUDEV_DEPENDENCIES = host-gperf host-pkgconf util-linux EUDEV_PROVIDES = udev ifeq ($(BR2_ROOTFS_MERGED_USR),) EUDEV_CONF_OPTS += --with-rootlibdir=/lib --enable-split-usr endif +ifeq ($(BR2_PACKAGE_EUDEV_AVOID_USR),y) +EUDEV_CONF_OPTS += --prefix=/ +EUDEV_CONF_OPTS += --eprefix=/ +endif + ifeq ($(BR2_PACKAGE_EUDEV_RULES_GEN),y) EUDEV_CONF_OPTS += --enable-rule_generator endif @@ -44,6 +48,12 @@ else EUDEV_CONF_OPTS += --disable-hwdb endif +ifeq ($(BR2_PACKAGE_EUDEV_ENABLE_KMOD),y) +EUDEV_DEPENDENCIES += kmod +else +EUDEV_CONF_OPTS += --disable-kmod +endif + ifeq ($(BR2_PACKAGE_LIBGLIB2),y) EUDEV_CONF_OPTS += --enable-gudev EUDEV_DEPENDENCIES += libglib2