Modify

Opened 11 years ago

Closed 11 years ago

#2015 closed enhancement (fixed)

Add hardware clock support to util-linux

Reported by: h3sp4wn Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

Index: package/util-linux/Makefile
===================================================================
--- package/util-linux/Makefile	(revision 7848)
+++ package/util-linux/Makefile	(working copy)
@@ -31,7 +31,7 @@
   $(call Package/util-linux/Default)
   TITLE:=Partition table manipulation utility
   DESCRIPTION:=\
-	This package contains an utility for managing disk partition tables.
+	This package contains a utility for managing disk partition tables.
   URL:=http://www.kernel.org/pub/linux/utils/util-linux/
 endef
 
@@ -40,7 +40,7 @@
   TITLE:=Partition table manipulation utility
   DEPENDS:=+libncurses
   DESCRIPTION:=\
-	This package contains an utility for managing disk partition tables.
+	This package contains a utility for managing disk partition tables.
   URL:=http://www.kernel.org/pub/linux/utils/util-linux/
 endef
 
@@ -48,7 +48,7 @@
   $(call Package/util-linux/Default)
   TITLE:=Loopback devices setup and control utility
   DESCRIPTION:=\
-	This package contains an utility for managing loopback devices.
+	This package contains a utility for managing loopback devices.
 endef
 
 define Package/swap-utils
@@ -61,6 +61,13 @@
 	- swapoff
 endef
 
+define Package/hwclock
+  $(call Package/util-linux/Default)
+  TITLE:=Utilities for managing the hardware clock
+  DESCRIPTION:=\
+  	 This package contains a utility for managing the hardware clock
+endef
+
 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
 define Build/Compile
 	$(call Build/Compile/Default, \
@@ -98,7 +105,12 @@
 	$(call Package/Template,sbin/swapoff,$(1)/usr/sbin)
 endef
 
+define Package/hwclock/install
+	$(call Package/Template,sbin/hwclock,$(1)/usr/sbin)
+endef
+
 $(eval $(call BuildPackage,fdisk))
 $(eval $(call BuildPackage,cfdisk))
 $(eval $(call BuildPackage,losetup))
 $(eval $(call BuildPackage,swap-utils))
+$(eval $(call BuildPackage,hwclock))

Minor grammar fix also.

Attachments (1)

add-hwclock-util-linux-svn-diff-against-7848.2 (1.8 KB) - added by h3sp4wn 11 years ago.
add hwclock to util linux

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by h3sp4wn

add hwclock to util linux

comment:1 Changed 11 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with [7874],thanks !

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.