summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-12 11:59:51 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-12 11:59:51 +0000
commitdbe16cdb5f76455c8952aaad04f633bc63d1a286 (patch)
tree3342e668d3ddc8f4fde32f6ad13f1754bb9a582d /package
parenteec58d106f5980dc35235415c032311198238d31 (diff)
install libdevmapper.h to allow dm to build
Diffstat (limited to 'package')
-rw-r--r--package/dm/dm.mk13
1 files changed, 10 insertions, 3 deletions
diff --git a/package/dm/dm.mk b/package/dm/dm.mk
index 80b8a4442..94767e4e9 100644
--- a/package/dm/dm.mk
+++ b/package/dm/dm.mk
@@ -24,7 +24,7 @@
# USA
DM_BASEVER=1.02
-DM_PATCH=13
+DM_PATCH=20
DM_VERSION=$(DM_BASEVER).$(DM_PATCH)
DM_SOURCE:=device-mapper.$(DM_VERSION).tgz
DM_SITE:=ftp://sources.redhat.com/pub/dm
@@ -35,6 +35,7 @@ DM_STAGING_BINARY:=$(STAGING_DIR)/usr/sbin/dmsetup
DM_TARGET_BINARY:=$(TARGET_DIR)/usr/sbin/dmsetup
DM_STAGING_LIBRARY:=$(STAGING_DIR)/lib/libdevmapper.so
DM_TARGET_LIBRARY:=$(TARGET_DIR)/usr/lib/libdevmapper.so
+DM_TARGET_HEADER:=$(TARGET_DIR)/usr/include/libdevmapper.h
$(DL_DIR)/$(DM_SOURCE):
$(WGET) -P $(DL_DIR) $(DM_SITE)/$(DM_SOURCE) || \
@@ -85,6 +86,7 @@ $(DM_DIR)/$(DM_LIBRARY): dm-build
$(DM_STAGING_BINARY) $(DM_STAGING_LIBRARY): $(DM_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(DM_DIR)
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(DM_DIR) install
+ mv $(STAGING_DIR)/include/libdevmapper.h $(STAGING_DIR)/usr/include/libdevmapper.h
# Install dmsetup from staging to target
$(DM_TARGET_BINARY): $(DM_STAGING_BINARY)
@@ -104,10 +106,15 @@ $(DM_TARGET_LIBRARY): $(DM_TARGET_LIBRARY).$(DM_BASEVER)
ln -s $(<F) $@
touch -c $(DM_TARGET_LIBRARY)
-dm: uclibc $(DM_TARGET_BINARY) $(DM_TARGET_LIBRARY)
+# Install header file
+$(DM_TARGET_HEADER): $(DM_TARGET_LIBRARY)
+ rm -f $@
+ $(INSTALL) -m 0644 $(STAGING_DIR)/usr/include/libdevmapper.h $@
+
+dm: uclibc $(DM_TARGET_BINARY) $(DM_TARGET_LIBRARY) $(DM_TARGET_HEADER)
dm-clean:
- rm $(DM_TARGET_BINARY) $(DM_TARGET_LIBRARY) $(DM_TARGET_LIBRARY).$(DM_BASEVER)
+ rm $(DM_TARGET_BINARY) $(DM_TARGET_LIBRARY) $(DM_TARGET_LIBRARY).$(DM_BASEVER) $(DM_TARGET_HEADER)
$(MAKE) -C $(DM_DIR) clean
dm-dirclean: