Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=grub
  10. PKG_VERSION:=2.00
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@GNU/grub
  14. PKG_MD5SUM:=e927540b6eda8b024fb0391eeaa4091c
  15. PKG_HOST_ONLY:=1
  16. HOST_BUILD_PARALLEL:=1
  17. PKG_BUILD_DEPENDS:=grub2/host
  18. include $(INCLUDE_DIR)/host-build.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/grub2
  21. SUBMENU:=Boot Loaders
  22. CATEGORY:=Utilities
  23. SECTION:=utils
  24. TITLE:=GRand Unified Bootloader
  25. URL:=http://www.gnu.org/software/grub/
  26. DEPENDS:=@TARGET_x86
  27. endef
  28. HOST_CONFIGURE_ARGS += \
  29. --target=$(REAL_GNU_TARGET_NAME) \
  30. --sbindir="$(STAGING_DIR_HOST)/bin" \
  31. --disable-werror \
  32. --disable-nls
  33. HOST_MAKE_FLAGS += \
  34. TARGET_RANLIB=$(TARGET_RANLIB) \
  35. LIBLZMA=$(STAGING_DIR_HOST)/lib/liblzma.a
  36. define Host/Configure
  37. $(SED) 's,(RANLIB),(TARGET_RANLIB),' $(HOST_BUILD_DIR)/grub-core/Makefile.in
  38. $(Host/Configure/Default)
  39. endef
  40. $(eval $(call HostBuild))
  41. $(eval $(call BuildPackage,grub2))