source: trunk/package/kexec-tools/Makefile @ 22559

Last change on this file since 22559 was 22559, checked in by mb, 6 years ago

kexec-tools: Update to 2.0.2.
Mips64 support is builtin in this version. So remove the patch.

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=kexec-tools
11PKG_VERSION:=2.0.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/kexec
16PKG_MD5SUM:=35d05fed1c97008ac34c5bfb929295eb
17
18PKG_FIXUP:=libtool
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/kexec-tools
23  SECTION:=utils
24  CATEGORY:=Utilities
25  DEPENDS:=@armeb||@arm||@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
29endef
30
31define 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.
34endef
35
36define Package/kexec-tools/config
37        source "$(SOURCE)/Config.in"
38endef
39
40KEXEC_TARGET_NAME:=$(call qstrip,$(CONFIG_KEXEC_TOOLS_TARGET_NAME))-linux-$(TARGET_SUFFIX)
41
42CONFIGURE_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
55CONFIGURE_VARS += \
56        BUILD_CC="$(HOSTCC)" \
57        TARGET_CC="$(TARGET_CC)"
58
59kexec-extra-sbin-$(CONFIG_KEXEC_TOOLS_kdump) += kdump
60
61define Build/Compile
62        $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
63endef
64
65define Package/kexec-tools/install
66        $(INSTALL_DIR) $(1)/usr/sbin
67        $(INSTALL_BIN) \
68                $(addprefix $(PKG_INSTALL_DIR)/usr/sbin/, \
69                        $(kexec-extra-sbin-y)) \
70                $(kexec-extra-bin-y) \
71                $(PKG_INSTALL_DIR)/usr/sbin/kexec \
72                $(1)/usr/sbin
73
74# make a link for compatability with other distros
75        $(INSTALL_DIR) $(1)/sbin
76        ln -s /usr/sbin/kexec $(1)/sbin/kexec
77endef
78
79$(eval $(call BuildPackage,kexec-tools))
Note: See TracBrowser for help on using the repository browser.