2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/grub
17 PKG_MD5SUM:=e927540b6eda8b024fb0391eeaa4091c
19 HOST_BUILD_PARALLEL:=1
20 PKG_BUILD_DEPENDS:=grub2/host
22 include $(INCLUDE_DIR)/host-build.mk
23 include $(INCLUDE_DIR)/package.mk
29 TITLE:=GRand Unified Bootloader
30 URL:=http://www.gnu.org/software/grub/
34 define Package/grub2-editenv
37 TITLE:=Grub2 Environment editor
38 URL:=http://www.gnu.org/software/grub/
42 define Package/grub2-editenv/description
43 Edit grub2 environment files.
47 --target=$(REAL_GNU_TARGET_NAME) \
51 HOST_CONFIGURE_ARGS += \
52 --target=$(REAL_GNU_TARGET_NAME) \
53 --sbindir="$(STAGING_DIR_HOST)/bin" \
58 TARGET_RANLIB=$(TARGET_RANLIB) \
59 LIBLZMA=$(STAGING_DIR_HOST)/lib/liblzma.a
62 $(SED) 's,(RANLIB),(TARGET_RANLIB),' $(HOST_BUILD_DIR)/grub-core/Makefile.in
63 $(Host/Configure/Default)
66 define Package/grub2-editenv/install
67 $(INSTALL_DIR) $(1)/usr/sbin
68 $(INSTALL_BIN) $(PKG_BUILD_DIR)/grub-editenv $(1)/usr/sbin/
71 $(eval $(call HostBuild))
72 $(eval $(call BuildPackage,grub2))
73 $(eval $(call BuildPackage,grub2-editenv))