2 # Copyright (C) 2006-2015 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
12 PKG_VERSION:=2.02~beta2
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
16 PKG_SOURCE_URL:=http://alpha.gnu.org/gnu/grub \
17 http://gnualpha.uib.no/grub/ \
18 http://mirrors.fe.up.pt/pub/gnu-alpha/grub/ \
19 http://www.nic.funet.fi/pub/gnu/alpha/gnu/grub/
20 PKG_MD5SUM:=be62932eade308a364ea4bbc91295930
22 HOST_BUILD_PARALLEL:=1
23 PKG_BUILD_DEPENDS:=grub2/host
25 include $(INCLUDE_DIR)/host-build.mk
26 include $(INCLUDE_DIR)/package.mk
32 TITLE:=GRand Unified Bootloader
33 URL:=http://www.gnu.org/software/grub/
34 DEPENDS:=@TARGET_x86||TARGET_x86_64
37 define Package/grub2-editenv
40 TITLE:=Grub2 Environment editor
41 URL:=http://www.gnu.org/software/grub/
42 DEPENDS:=@TARGET_x86||TARGET_x86_64
45 define Package/grub2-editenv/description
46 Edit grub2 environment files.
50 --target=$(REAL_GNU_TARGET_NAME) \
53 --disable-device-mapper \
57 HOST_CONFIGURE_ARGS += \
58 --target=$(REAL_GNU_TARGET_NAME) \
59 --sbindir="$(STAGING_DIR_HOST)/bin" \
65 TARGET_RANLIB=$(TARGET_RANLIB) \
66 LIBLZMA=$(STAGING_DIR_HOST)/lib/liblzma.a
69 $(SED) 's,(RANLIB),(TARGET_RANLIB),' $(HOST_BUILD_DIR)/grub-core/Makefile.in
70 $(Host/Configure/Default)
73 define Package/grub2-editenv/install
74 $(INSTALL_DIR) $(1)/usr/sbin
75 $(INSTALL_BIN) $(PKG_BUILD_DIR)/grub-editenv $(1)/usr/sbin/
78 $(eval $(call HostBuild))
79 $(eval $(call BuildPackage,grub2))
80 $(eval $(call BuildPackage,grub2-editenv))