Root/package/boot/grub2/Makefile

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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=grub
12PKG_VERSION:=2.00
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@GNU/grub
17PKG_MD5SUM:=e927540b6eda8b024fb0391eeaa4091c
18
19PKG_HOST_ONLY:=1
20HOST_BUILD_PARALLEL:=1
21PKG_BUILD_DEPENDS:=grub2/host
22
23include $(INCLUDE_DIR)/host-build.mk
24include $(INCLUDE_DIR)/package.mk
25
26define Package/grub2
27  SUBMENU:=Boot Loaders
28  CATEGORY:=Utilities
29  SECTION:=utils
30  TITLE:=GRand Unified Bootloader
31  URL:=http://www.gnu.org/software/grub/
32  DEPENDS:=@TARGET_x86
33endef
34
35HOST_CONFIGURE_ARGS += \
36    --target=$(REAL_GNU_TARGET_NAME) \
37    --sbindir="$(STAGING_DIR_HOST)/bin" \
38    --disable-werror \
39    --disable-nls
40
41HOST_MAKE_FLAGS += \
42    TARGET_RANLIB=$(TARGET_RANLIB) \
43    LIBLZMA=$(STAGING_DIR_HOST)/lib/liblzma.a
44
45define Host/Configure
46    $(SED) 's,(RANLIB),(TARGET_RANLIB),' $(HOST_BUILD_DIR)/grub-core/Makefile.in
47    $(Host/Configure/Default)
48endef
49
50$(eval $(call HostBuild))
51$(eval $(call BuildPackage,grub2))
52

Archive Download this file



interactive