Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. # $Id$
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=kexec-tools
  10. PKG_VERSION:=2.0.0
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://kernel.org/pub/linux/kernel/people/horms/kexec-tools/
  14. PKG_MD5SUM:=d9f2ecd3c3307905f24130a25816e6cc
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/kexec-tools
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. DEPENDS:=@armeb||@i386||@TARGET_ps3||@mipsel||@mips +zlib
  20. TITLE:=Kernel boots kernel
  21. URL:=http://kernel.org/pub/linux/kernel/people/horms/kexec-tools/
  22. MENU:=1
  23. endef
  24. define Package/kexec-tools/description
  25. kexec is a set of systems call that allows you to load
  26. another kernel from the currently executing Linux kernel.
  27. endef
  28. define Package/kexec-tools/config
  29. source "$(SOURCE)/kexec-config.in"
  30. endef
  31. CONFIGURE_ARGS = \
  32. --target=$(CONFIG_KEXEC_TOOLS_TARGET_NAME)-linux-$(TARGET_SUFFIX) \
  33. --host=$(GNU_TARGET_NAME)-uclibc \
  34. --build=$(GNU_HOST_NAME) \
  35. --program-prefix="" \
  36. --program-suffix="" \
  37. --prefix=/usr \
  38. --exec-prefix=/usr \
  39. --bindir=/usr/bin \
  40. --sbindir=/usr/sbin \
  41. --libexecdir=/usr/lib \
  42. --sysconfdir=/etc \
  43. CONFIGURE_VARS += \
  44. BUILD_CC="$(HOSTCC)" \
  45. TARGET_CC="$(TARGET_CC)" \
  46. define Build/Compile
  47. $(MAKE) -C $(PKG_BUILD_DIR) all
  48. endef
  49. define Package/kexec-tools/install
  50. $(MAKE) -C $(PKG_BUILD_DIR) \
  51. DESTDIR="$(1)" \
  52. install
  53. rm -rf $(1)/usr/man
  54. endef
  55. $(eval $(call BuildPackage,kexec-tools))