[MINI2440] Updated defconfig to add (optional) packages
[openwrt/mini2440.git] / package / kexec-tools / Makefile
blobbd8854e634bfec8e9d22b5df5e3c262944fa5947
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id$
9 include $(TOPDIR)/rules.mk
11 PKG_NAME:=kexec-tools
12 PKG_VERSION:=2.0.0
13 PKG_RELEASE:=1
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://kernel.org/pub/linux/kernel/people/horms/kexec-tools/
17 PKG_MD5SUM:=d9f2ecd3c3307905f24130a25816e6cc
19 include $(INCLUDE_DIR)/package.mk
21 define Package/kexec-tools
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=@armeb||@i386||@TARGET_ps3||@mipsel||@mips +zlib
25 TITLE:=Kernel boots kernel
26 URL:=http://kernel.org/pub/linux/kernel/people/horms/kexec-tools/
27 MENU:=1
28 endef
30 define Package/kexec-tools/description
31 kexec is a set of systems call that allows you to load
32 another kernel from the currently executing Linux kernel.
33 endef
35 define Package/kexec-tools/config
36 source "$(SOURCE)/kexec-config.in"
37 endef
39 CONFIGURE_ARGS = \
40 --target=$(CONFIG_KEXEC_TOOLS_TARGET_NAME)-linux-$(TARGET_SUFFIX) \
41 --host=$(GNU_TARGET_NAME)-uclibc \
42 --build=$(GNU_HOST_NAME) \
43 --program-prefix="" \
44 --program-suffix="" \
45 --prefix=/usr \
46 --exec-prefix=/usr \
47 --bindir=/usr/bin \
48 --sbindir=/usr/sbin \
49 --libexecdir=/usr/lib \
50 --sysconfdir=/etc \
52 CONFIGURE_VARS += \
53 BUILD_CC="$(HOSTCC)" \
54 TARGET_CC="$(TARGET_CC)" \
56 define Build/Compile
57 $(MAKE) -C $(PKG_BUILD_DIR) all
58 endef
60 define Package/kexec-tools/install
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 DESTDIR="$(1)" \
63 install
64 rm -rf $(1)/usr/man
65 endef
67 $(eval $(call BuildPackage,kexec-tools))