Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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:=testing-20080227
  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:=45455af789545fdfaff2401d1988996a
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/kexec-tools
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. DEPENDS:=@i386||@powerpc +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-uclibc \
  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 += BUILD_CC=$(HOSTCC)
  44. define Build/Compile
  45. $(MAKE) -C $(PKG_BUILD_DIR) all
  46. endef
  47. define Package/kexec-tools/install
  48. $(MAKE) -C $(PKG_BUILD_DIR) \
  49. DESTDIR="$(1)" \
  50. install
  51. rm -rf $(1)/usr/man
  52. endef
  53. $(eval $(call BuildPackage,kexec-tools))