2012-09-23 04:10:38 +08:00
|
|
|
#
|
2015-06-06 21:49:24 +08:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2012-09-23 04:10:38 +08: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 19:21:16 +08:00
|
|
|
PKG_VERSION:=2.02~beta2
|
2012-09-23 04:10:38 +08:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2014-03-12 19:21:16 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2015-06-06 21:49:24 +08: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/
|
2016-12-17 00:32:10 +08:00
|
|
|
PKG_HASH:=f6c702b2a8ea58f27a2b02928bb77973cb5a827af08f63db38c471c0a01b418d
|
2012-09-23 04:10:38 +08:00
|
|
|
|
2016-11-18 00:25:52 +08:00
|
|
|
PKG_FIXUP:=autoreconf
|
2012-09-23 04:10:38 +08:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
PKG_BUILD_DEPENDS:=grub2/host
|
|
|
|
|
2015-06-25 19:20:39 +08:00
|
|
|
PKG_SSP:=0
|
|
|
|
|
2012-09-23 04:10:38 +08:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/grub2
|
2016-10-26 23:51:44 +08:00
|
|
|
CATEGORY:=Boot Loaders
|
|
|
|
SECTION:=boot
|
2012-09-23 04:10:38 +08:00
|
|
|
TITLE:=GRand Unified Bootloader
|
|
|
|
URL:=http://www.gnu.org/software/grub/
|
2014-01-07 20:23:35 +08:00
|
|
|
DEPENDS:=@TARGET_x86||TARGET_x86_64
|
2012-09-23 04:10:38 +08:00
|
|
|
endef
|
|
|
|
|
2013-05-07 20:35:07 +08:00
|
|
|
define Package/grub2-editenv
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
SECTION:=utils
|
2016-10-24 03:04:49 +08:00
|
|
|
SUBMENU:=Boot Loaders
|
2013-05-07 20:35:07 +08:00
|
|
|
TITLE:=Grub2 Environment editor
|
|
|
|
URL:=http://www.gnu.org/software/grub/
|
2014-01-07 20:23:35 +08:00
|
|
|
DEPENDS:=@TARGET_x86||TARGET_x86_64
|
2013-05-07 20:35:07 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/grub2-editenv/description
|
|
|
|
Edit grub2 environment files.
|
|
|
|
endef
|
|
|
|
|
2016-01-21 19:46:18 +08:00
|
|
|
HOST_BUILD_PREFIX := $(STAGING_DIR_HOST)
|
|
|
|
|
2016-11-21 23:36:56 +08:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
grub_build_mkfont_excuse="don't want fonts"
|
|
|
|
|
2013-05-07 20:35:07 +08:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--target=$(REAL_GNU_TARGET_NAME) \
|
|
|
|
--disable-werror \
|
2014-03-31 03:55:39 +08:00
|
|
|
--disable-nls \
|
2014-03-31 03:55:43 +08:00
|
|
|
--disable-device-mapper \
|
2014-08-01 19:19:46 +08:00
|
|
|
--disable-libzfs \
|
2014-03-31 03:55:43 +08:00
|
|
|
--disable-grub-mkfont
|
2013-05-07 20:35:07 +08:00
|
|
|
|
2016-11-21 23:36:56 +08:00
|
|
|
HOST_CONFIGURE_VARS += \
|
|
|
|
grub_build_mkfont_excuse="don't want fonts"
|
|
|
|
|
2012-09-23 04:10:38 +08:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
2016-11-21 23:36:56 +08:00
|
|
|
--disable-grub-mkfont \
|
2012-09-23 04:10:38 +08:00
|
|
|
--target=$(REAL_GNU_TARGET_NAME) \
|
|
|
|
--sbindir="$(STAGING_DIR_HOST)/bin" \
|
2012-09-23 17:49:56 +08:00
|
|
|
--disable-werror \
|
2014-08-01 19:19:46 +08:00
|
|
|
--disable-libzfs \
|
2012-09-23 17:49:56 +08:00
|
|
|
--disable-nls
|
2012-09-23 04:10:38 +08:00
|
|
|
|
|
|
|
HOST_MAKE_FLAGS += \
|
2012-09-23 18:38:06 +08:00
|
|
|
TARGET_RANLIB=$(TARGET_RANLIB) \
|
|
|
|
LIBLZMA=$(STAGING_DIR_HOST)/lib/liblzma.a
|
2012-09-23 04:10:38 +08:00
|
|
|
|
|
|
|
define Host/Configure
|
|
|
|
$(SED) 's,(RANLIB),(TARGET_RANLIB),' $(HOST_BUILD_DIR)/grub-core/Makefile.in
|
|
|
|
$(Host/Configure/Default)
|
|
|
|
endef
|
|
|
|
|
2013-05-07 20:35:07 +08:00
|
|
|
define Package/grub2-editenv/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/grub-editenv $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
2012-09-23 04:10:38 +08:00
|
|
|
$(eval $(call HostBuild))
|
|
|
|
$(eval $(call BuildPackage,grub2))
|
2013-05-07 20:35:07 +08:00
|
|
|
$(eval $(call BuildPackage,grub2-editenv))
|