fix restart on platforms without a setup_switch()
[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:=testing-20080227
13 PKG_RELEASE:=1
14
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:=45455af789545fdfaff2401d1988996a
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/kexec-tools
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=@i386||@powerpc +zlib
25 TITLE:=Kernel boots kernel
26 URL:=http://kernel.org/pub/linux/kernel/people/horms/kexec-tools/
27 MENU:=1
28 endef
29
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
34
35 define Package/kexec-tools/config
36 source "$(SOURCE)/kexec-config.in"
37 endef
38
39 CONFIGURE_ARGS = \
40 --target=$(CONFIG_KEXEC_TOOLS_TARGET_NAME)-linux-uclibc \
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 \
51
52 CONFIGURE_VARS += BUILD_CC=$(HOSTCC)
53
54 define Build/Compile
55 $(MAKE) -C $(PKG_BUILD_DIR) all
56 endef
57
58 define Package/kexec-tools/install
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 DESTDIR="$(1)" \
61 install
62 rm -rf $(1)/usr/man
63 endef
64
65 $(eval $(call BuildPackage,kexec-tools))
This page took 0.050159 seconds and 5 git commands to generate.