Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] bcache-tools: Adding package.
@ 2014-07-31 20:40 Jean-Christophe DUBOIS
  2014-08-02 20:55 ` Jean-Christophe DUBOIS
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jean-Christophe DUBOIS @ 2014-07-31 20:40 UTC (permalink / raw)
  To: buildroot

This patch adds the bcache-tools package to buildroot.

This is the bcache tools, required to setup the linux bcache
feature of the Linux kernel.

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
---
Changes v1 to v2
 * remove 'support' word from comment statement in Config.in.
 * use github helper to get the project site instead of hardcoded URL.
---
 package/Config.in                    |  1 +
 package/bcache-tools/Config.in       | 11 +++++++++++
 package/bcache-tools/bcache-tools.mk | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 100644 package/bcache-tools/Config.in
 create mode 100644 package/bcache-tools/bcache-tools.mk

diff --git a/package/Config.in b/package/Config.in
index 29b8e6b..7468b28 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -279,6 +279,7 @@ endmenu
 	source "package/a10disp/Config.in"
 	source "package/acpid/Config.in"
 	source "package/avrdude/Config.in"
+	source "package/bcache-tools/Config.in"
 	source "package/cdrkit/Config.in"
 	source "package/cryptsetup/Config.in"
 	source "package/cwiid/Config.in"
diff --git a/package/bcache-tools/Config.in b/package/bcache-tools/Config.in
new file mode 100644
index 0000000..fbe4158
--- /dev/null
+++ b/package/bcache-tools/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_BCACHE_TOOLS
+	bool "bcache tools"
+	depends on BR2_PACKAGE_HAS_UDEV
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
+	help
+	  This is the bcache tools, required to setup the linux bcache
+	  feature of the Linux kernel.
+
+comment "bcache-tools needs udev /dev management"
+        depends on !BR2_PACKAGE_HAS_UDEV
diff --git a/package/bcache-tools/bcache-tools.mk b/package/bcache-tools/bcache-tools.mk
new file mode 100644
index 0000000..8b0b061
--- /dev/null
+++ b/package/bcache-tools/bcache-tools.mk
@@ -0,0 +1,34 @@
+################################################################################
+#
+# bcache-tools
+#
+################################################################################
+
+BCACHE_TOOLS_VERSION = 1.0.7
+BCACHE_TOOLS_SITE = $(call github,g2p,bcache-tools,v$(BCACHE_TOOLS_VERSION))
+BCACHE_TOOLS_SOURCE = v$(BCACHE_TOOLS_VERSION).zip
+BCACHE_TOOLS_LICENSE = GPLv2
+BCACHE_TOOLS_LICENSE_FILES = COPYING
+BCACHE_TOOLS_DEPENDENCIES = host-pkgconf util-linux eudev
+BCACHE_TOOLS_MAKE_ENV = $(TARGET_MAKE_ENV) CC="$(TARGET_CC)"
+
+define BCACHE_TOOLS_EXTRACT_CMDS
+	unzip -d $(BUILD_DIR) $(DL_DIR)/$(BCACHE_TOOLS_SOURCE)
+endef
+
+define BCACHE_TOOLS_FIX_PKGCONFIG
+	$(SED) 's^`pkg-config^`$(PKG_CONFIG_HOST_BINARY)^' \
+		$(BCACHE_TOOLS_DIR)/Makefile
+endef
+
+define BCACHE_TOOLS_BUILD_CMDS
+	$(BCACHE_TOOLS_FIX_PKGCONFIG)
+	$(BCACHE_TOOLS_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
+define BCACHE_TOOLS_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 -d $(TARGET_DIR)/usr/share/man/man8
+	$(BCACHE_TOOLS_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+endef
+
+$(eval $(generic-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-08-05  6:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 20:40 [Buildroot] [PATCH v2] bcache-tools: Adding package Jean-Christophe DUBOIS
2014-08-02 20:55 ` Jean-Christophe DUBOIS
2014-08-03  8:39   ` Yann E. MORIN
2014-08-03 18:53 ` Yann E. MORIN
2014-08-04 15:28   ` Jean-Christophe DUBOIS
2014-08-04 20:49     ` Yann E. MORIN
2014-08-04 19:53   ` Jean-Christophe DUBOIS
2014-08-04 21:00     ` Yann E. MORIN
2014-08-05  6:40       ` Jean-Christophe DUBOIS
2014-08-04  4:51 ` Thomas De Schampheleire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox