[Buildroot] [PATCH 1/3] create a libuuid subtarget in the e2fsprogs package

Nicolas Pitre nico at cam.org
Wed Dec 3 20:37:03 UTC 2008


This is needed to build the latest mkfs.ubifs provided by the next patch.

Signed-off-by: Nicolas Pitre <nico at cam.org>

Index: package/e2fsprogs/e2fsprogs.mk
===================================================================
--- package/e2fsprogs/e2fsprogs.mk	(revision 24219)
+++ package/e2fsprogs/e2fsprogs.mk	(working copy)
@@ -68,6 +74,16 @@
 	#$(STRIPCMD) $(E2FSPROGS_DIR)/lib/lib*.so.*.*
 	touch -c $@
 
+$(E2FSPROGS_DIR)/lib/uuid/libuuid.a: $(E2FSPROGS_DIR)/.configured
+	$(MAKE1) -C $(E2FSPROGS_DIR)/lib/uuid
+
+$(STAGING_DIR)/usr/lib/libuuid.a: $(E2FSPROGS_DIR)/lib/uuid/libuuid.a
+	$(INSTALL) -D $(E2FSPROGS_DIR)/lib/uuid/libuuid.a $(STAGING_DIR)/usr/lib/libuuid.a
+	$(INSTALL) -D $(E2FSPROGS_DIR)/lib/uuid/uuid.h $(STAGING_DIR)/usr/include/uuid/uuid.h
+	touch -c $@
+
+libuuid: $(STAGING_DIR)/usr/lib/libuuid.a
+
 E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_BADBLOCKS)) += ${TARGET_DIR}/sbin/badblocks
 E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_BLKID)) += ${TARGET_DIR}/sbin/blkid
 E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_CHATTR)) += ${TARGET_DIR}/bin/chattr



More information about the buildroot mailing list