kexec-tools: Minor makefile line end fixes
[openwrt.git] / package / kexec-tools / Makefile
1
2 # Copyright (C) 2006-2008 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:=kexec-tools
11 PKG_VERSION:=2.0.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/horms/kexec-tools
16 PKG_MD5SUM:=67c1a396fdf67b984dad939a59a01571
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/kexec-tools
23   SECTION:=utils
24   CATEGORY:=Utilities
25   DEPENDS:=@armeb||@i386||@powerpc64||@mipsel||@mips +zlib
26   TITLE:=Kernel boots kernel
27   URL:=http://kernel.org/pub/linux/kernel/people/horms/kexec-tools/
28   MENU:=1
29 endef
30
31 define Package/kexec-tools/description
32  kexec is a set of systems call that allows you to load
33  another kernel from the currently executing Linux kernel.
34 endef
35
36 define Package/kexec-tools/config
37         source "$(SOURCE)/kexec-config.in"
38 endef
39
40 KEXEC_TARGET_NAME:=$(call qstrip,$(CONFIG_KEXEC_TOOLS_TARGET_NAME))-linux-$(TARGET_SUFFIX)
41
42 CONFIGURE_ARGS = \
43                 --target=$(KEXEC_TARGET_NAME) \
44                 --host=$(REAL_GNU_TARGET_NAME) \
45                 --build=$(GNU_HOST_NAME) \
46                 --program-prefix="" \
47                 --program-suffix="" \
48                 --prefix=/usr \
49                 --exec-prefix=/usr \
50                 --bindir=/usr/bin \
51                 --sbindir=/usr/sbin \
52                 --libexecdir=/usr/lib \
53                 --sysconfdir=/etc
54
55 CONFIGURE_VARS += \
56         BUILD_CC="$(HOSTCC)" \
57         TARGET_CC="$(TARGET_CC)"
58
59 define Build/Compile
60         $(MAKE) -C $(PKG_BUILD_DIR) all
61 endef
62
63 define Package/kexec-tools/install
64         $(MAKE) -C $(PKG_BUILD_DIR) \
65                 DESTDIR="$(1)" \
66                 install
67         rm -rf $(1)/usr/man
68 endef
69
70 $(eval $(call BuildPackage,kexec-tools))