2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 4855 2006-09-24 20:49:31Z nico $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=ftp
://alpha.gnu.org
/gnu
/grub
18 PKG_MD5SUM
:=cd3f3eb54446be6003156158d51f4884
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/grub-
$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 ifeq ($(HOST_ARCH
),x86_64
)
26 define Build
/Configure
27 (cd
$(PKG_BUILD_DIR
); \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
39 --libexecdir
=/usr
/lib \
41 --datadir=/usr
/share \
42 --localstatedir
=/var \
49 define Build
/Configure
50 (cd
$(PKG_BUILD_DIR
); \
59 --libexecdir
=/usr
/lib \
61 --datadir=/usr
/share \
62 --localstatedir
=/var \
70 $(MAKE
) -C
$(PKG_BUILD_DIR
)
73 define Build
/InstallDev
74 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
75 DESTDIR
="$(STAGING_DIR)" \
79 $(eval
$(call Build
/DefaultTargets
))