add missing dependency
[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
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/kexec-tools
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=@i386 +zlib
25 TITLE:=Kernel boots kernel
26 URL:=http://www.xmission.com/~ebiederm/files/kexec/README
27 endef
28
29 define Package/kexec-tools/description
30 kexec is a set of systems call that allows you to load
31 another kernel from the currently executing Linux kernel.
32 endef
33
34 MAKE_FLAGS += \
35 DESTDIR="$(PKG_INSTALL_DIR)" \
36 EXTRA_CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
37 BUILD_CFLAGS="-Os" \
38 LIBS="$(TARGET_LDFLAGS) -lz" \
39 install
40
41 define Build/Compile
42 rm -rf $(PKG_INSTALL_DIR)
43 mkdir -p $(PKG_INSTALL_DIR)
44 $(call Build/Compile/Default,)
45 endef
46
47 define Package/kexec-tools/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kexec $(1)/usr/bin/
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdump $(1)/usr/bin/
51 $(INSTALL_BIN) ./files/kexec.sh $(1)/usr/bin/kexec.mtd
52 endef
53
54 $(eval $(call BuildPackage,kexec-tools))
This page took 0.038668 seconds and 5 git commands to generate.