2012-09-22 20:10:38 +00:00
|
|
|
#
|
2015-06-06 13:49:24 +00:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2012-09-22 20:10:38 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=grub
|
2014-03-12 11:21:16 +00:00
|
|
|
PKG_VERSION:=2.02~beta2
|
2012-09-22 20:10:38 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2014-03-12 11:21:16 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2015-06-06 13:49:24 +00:00
|
|
|
PKG_SOURCE_URL:=http://alpha.gnu.org/gnu/grub \
|
|
|
|
http://gnualpha.uib.no/grub/ \
|
|
|
|
http://mirrors.fe.up.pt/pub/gnu-alpha/grub/ \
|
|
|
|
http://www.nic.funet.fi/pub/gnu/alpha/gnu/grub/
|
2014-03-12 11:21:16 +00:00
|
|
|
PKG_MD5SUM:=be62932eade308a364ea4bbc91295930
|
2012-09-22 20:10:38 +00:00
|
|
|
|
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
PKG_BUILD_DEPENDS:=grub2/host
|
|
|
|
|
2015-06-25 11:20:39 +00:00
|
|
|
PKG_SSP:=0
|
|
|
|
|
2012-09-22 20:10:38 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/grub2
|
2016-10-26 15:51:44 +00:00
|
|
|
CATEGORY:=Boot Loaders
|
|
|
|
SECTION:=boot
|
2012-09-22 20:10:38 +00:00
|
|
|
TITLE:=GRand Unified Bootloader
|
|
|
|
URL:=http://www.gnu.org/software/grub/
|
2014-01-07 12:23:35 +00:00
|
|
|
DEPENDS:=@TARGET_x86||TARGET_x86_64
|
2012-09-22 20:10:38 +00:00
|
|
|
endef
|
|
|
|
|
2013-05-07 12:35:07 +00:00
|
|
|
define Package/grub2-editenv
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
SECTION:=utils
|
2016-10-23 19:04:49 +00:00
|
|
|
SUBMENU:=Boot Loaders
|
2013-05-07 12:35:07 +00:00
|
|
|
TITLE:=Grub2 Environment editor
|
|
|
|
URL:=http://www.gnu.org/software/grub/
|
2014-01-07 12:23:35 +00:00
|
|
|
DEPENDS:=@TARGET_x86||TARGET_x86_64
|
2013-05-07 12:35:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/grub2-editenv/description
|
|
|
|
Edit grub2 environment files.
|
|
|
|
endef
|
|
|
|
|
2016-01-21 11:46:18 +00:00
|
|
|
HOST_BUILD_PREFIX := $(STAGING_DIR_HOST)
|
|
|
|
|
2013-05-07 12:35:07 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--target=$(REAL_GNU_TARGET_NAME) \
|
|
|
|
--disable-werror \
|
2014-03-30 19:55:39 +00:00
|
|
|
--disable-nls \
|
2014-03-30 19:55:43 +00:00
|
|
|
--disable-device-mapper \
|
2014-08-01 11:19:46 +00:00
|
|
|
--disable-libzfs \
|
2014-03-30 19:55:43 +00:00
|
|
|
--disable-grub-mkfont
|
2013-05-07 12:35:07 +00:00
|
|
|
|
2012-09-22 20:10:38 +00:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
|
|
--target=$(REAL_GNU_TARGET_NAME) \
|
|
|
|
--sbindir="$(STAGING_DIR_HOST)/bin" \
|
2012-09-23 09:49:56 +00:00
|
|
|
--disable-werror \
|
2014-08-01 11:19:46 +00:00
|
|
|
--disable-libzfs \
|
2012-09-23 09:49:56 +00:00
|
|
|
--disable-nls
|
2012-09-22 20:10:38 +00:00
|
|
|
|
|
|
|
HOST_MAKE_FLAGS += \
|
2012-09-23 10:38:06 +00:00
|
|
|
TARGET_RANLIB=$(TARGET_RANLIB) \
|
|
|
|
LIBLZMA=$(STAGING_DIR_HOST)/lib/liblzma.a
|
2012-09-22 20:10:38 +00:00
|
|
|
|
|
|
|
define Host/Configure
|
|
|
|
$(SED) 's,(RANLIB),(TARGET_RANLIB),' $(HOST_BUILD_DIR)/grub-core/Makefile.in
|
|
|
|
$(Host/Configure/Default)
|
|
|
|
endef
|
|
|
|
|
2013-05-07 12:35:07 +00:00
|
|
|
define Package/grub2-editenv/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/grub-editenv $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
2012-09-22 20:10:38 +00:00
|
|
|
$(eval $(call HostBuild))
|
|
|
|
$(eval $(call BuildPackage,grub2))
|
2013-05-07 12:35:07 +00:00
|
|
|
$(eval $(call BuildPackage,grub2-editenv))
|