cryptsetup: moved to github
[packages.git] / utils / msr-tools / Makefile
1 #
2 # Copyright (C) 2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=msr-tools
11 PKG_VERSION:=1.1.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.kernel.org/pub/linux/utils/cpu/msr-tools
16 PKG_MD5SUM:=2452d2233556aa0fb8b53208361a2c94
17
18 include $(INCLUDE_DIR)/package.mk
19
20 TARGET_CFLAGS += -fomit-frame-pointer -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
21
22 define Package/msr-tools
23   SECTION:=utils
24   CATEGORY:=Utilities
25   DEPENDS:=
26   TITLE:=x86 MSR utilities.
27   URL:=http://www.kernel.org/pub/linux/utils/cpu/msr-tools
28   SUBMENU:=CPU tools
29 endef
30
31 define Package/msr-tools/description
32         Manipulate the MSR (machine state registers) on i386 and x86_64
33         processors.
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40         $(INSTALL_DIR) "$(PKG_INSTALL_DIR)/usr/sbin"
41         $(MAKE) -C $(PKG_BUILD_DIR) all \
42                 $(TARGET_CONFIGURE_OPTS) \
43                 sbindir="$(PKG_INSTALL_DIR)/usr/sbin" \
44                 CFLAGS="$(TARGET_CFLAGS)" \
45                 LDFLAGS="" \
46                 install
47 endef
48
49 define Package/msr-tools/install        
50         $(INSTALL_DIR) $(1)/usr/sbin/
51         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,msr-tools))