2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.xmission.com
/~ebiederm
/files
/kexec
/
17 PKG_MD5SUM
:=b4f7ffcc294d41a6a4c40d6e44b7734d
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/kexec-tools
24 DEPENDS
:=@LINUX_2_6_X86||@LINUX_2_6_RDC
+zlib
25 TITLE
:=Kernel boots kernel
27 kexec is a set of systems call that allows you to load
\\\
28 another kernel from the currently executing Linux kernel.
29 URL
:=http
://www.xmission.com
/~ebiederm
/files
/kexec
/README
33 DESTDIR
="$(PKG_INSTALL_DIR)" \
34 EXTRA_CFLAGS
="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
36 LIBS
="$(TARGET_LDFLAGS) -lz" \
40 rm -rf
$(PKG_INSTALL_DIR
)
41 mkdir
-p
$(PKG_INSTALL_DIR
)
42 $(call Build
/Compile
/Default
,)
45 define Package
/kexec-tools
/install
46 $(INSTALL_DIR
) $(1)/usr
/bin
47 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/kexec
$(1)/usr
/bin
/
48 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/kdump
$(1)/usr
/bin
/
51 $(eval
$(call BuildPackage
,kexec-tools
))