Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=kexec-tools
  10. PKG_VERSION:=1.101
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://www.xmission.com/~ebiederm/files/kexec/
  14. PKG_MD5SUM:=b4f7ffcc294d41a6a4c40d6e44b7734d
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/kexec-tools
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. DEPENDS:=@LINUX_2_6_X86||@LINUX_2_6_RDC +zlib
  20. TITLE:=Kernel boots kernel
  21. DESCRIPTION:=\
  22. kexec is a set of systems call that allows you to load \\\
  23. another kernel from the currently executing Linux kernel.
  24. URL:=http://www.xmission.com/~ebiederm/files/kexec/README
  25. endef
  26. MAKE_FLAGS += \
  27. DESTDIR="$(PKG_INSTALL_DIR)" \
  28. EXTRA_CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
  29. BUILD_CFLAGS="-Os" \
  30. LIBS="$(TARGET_LDFLAGS) -lz" \
  31. install
  32. define Build/Compile
  33. rm -rf $(PKG_INSTALL_DIR)
  34. mkdir -p $(PKG_INSTALL_DIR)
  35. $(call Build/Compile/Default,)
  36. endef
  37. define Package/kexec-tools/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kexec $(1)/usr/bin/
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdump $(1)/usr/bin/
  41. endef
  42. $(eval $(call BuildPackage,kexec-tools))