add usb led for wl-hdd
[openwrt.git] / package / kexec-tools / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=kexec-tools
12 PKG_VERSION:=1.101
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.xmission.com/~ebiederm/files/kexec/
17 PKG_MD5SUM:=b4f7ffcc294d41a6a4c40d6e44b7734d
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/kexec-tools
26 SECTION:=utils
27 CATEGORY:=Utilities
28 DEPENDS:=@LINUX_2_6_X86
29 TITLE:=Kernel boots kernel
30 DESCRIPTION:=\
31 kexec is a set of systems call that allows you to load \\\
32 another kernel from the currently executing Linux kernel.
33 URL:=http://www.xmission.com/~ebiederm/files/kexec/README
34 endef
35
36 define Build/Configure
37 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
38 $(TARGET_CONFIGURE_OPTS) \
39 CFLAGS="$(TARGET_CFLAGS)" \
40 ./configure \
41 --target=$(GNU_TARGET_NAME) \
42 --host=$(GNU_TARGET_NAME) \
43 --build=$(GNU_HOST_NAME) \
44 --program-prefix="" \
45 --program-suffix="" \
46 --prefix=/usr \
47 --exec-prefix=/usr \
48 --bindir=/usr/bin \
49 --sbindir=/usr/sbin \
50 --libexecdir=/usr/lib \
51 --sysconfdir=/etc \
52 --datadir=/usr/share \
53 --localstatedir=/var \
54 --mandir=/usr/man \
55 --infodir=/usr/info \
56 $(DISABLE_NLS) \
57 $(DISABLE_LARGEFILE) \
58 );
59 endef
60
61 define Build/Compile
62 rm -rf $(PKG_INSTALL_DIR)
63 mkdir -p $(PKG_INSTALL_DIR)
64 $(MAKE) -C $(PKG_BUILD_DIR) \
65 DESTDIR="$(PKG_INSTALL_DIR)" \
66 install
67 endef
68
69 define Package/kexec-tools/install
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kexec $(1)/usr/bin/
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdump $(1)/usr/bin/
73 endef
74
75 $(eval $(call BuildPackage,kexec-tools))
This page took 0.037095 seconds and 5 git commands to generate.