2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=@KERNEL
/linux
/kernel
/people
/horms
/kexec-tools
16 PKG_MD5SUM
:=67c1a396fdf67b984dad939a59a01571
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/kexec-tools
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
/
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.
36 define Package
/kexec-tools
/config
37 source
"$(SOURCE)/Config.in"
40 KEXEC_TARGET_NAME
:=$(call qstrip
,$(CONFIG_KEXEC_TOOLS_TARGET_NAME
))-linux-
$(TARGET_SUFFIX
)
43 --target
=$(KEXEC_TARGET_NAME
) \
44 --host
=$(REAL_GNU_TARGET_NAME
) \
45 --build
=$(GNU_HOST_NAME
) \
52 --libexecdir
=/usr
/lib \
56 BUILD_CC
="$(HOSTCC)" \
57 TARGET_CC
="$(TARGET_CC)"
59 kexec-extra-sbin-
$(CONFIG_KEXEC_TOOLS_kdump
) += kdump
62 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" all install
65 define Package
/kexec-tools
/install
66 $(INSTALL_DIR
) $(1)/usr
/sbin
68 $(addprefix $(PKG_INSTALL_DIR
)/usr
/sbin
/, \
69 $(kexec-extra-sbin-y
)) \
70 $(kexec-extra-bin-y
) \
71 $(PKG_INSTALL_DIR
)/usr
/sbin
/kexec \
74 # make a link for compatability with other distros
75 $(INSTALL_DIR
) $(1)/sbin
76 ln
-s
/usr
/sbin
/kexec
$(1)/sbin
/kexec
79 $(eval
$(call BuildPackage
,kexec-tools
))