|
|
|
@ -22,6 +22,7 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/grub-$(PKG_VERSION) |
|
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
|
|
|
|
ifeq ($(HOST_ARCH),x86_64) |
|
|
|
|
define Build/Configure
|
|
|
|
|
(cd $(PKG_BUILD_DIR); \
|
|
|
|
|
LDFLAGS="-static" \
|
|
|
|
@ -44,6 +45,26 @@ define Build/Configure |
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
|
)
|
|
|
|
|
endef
|
|
|
|
|
else |
|
|
|
|
define Build/Configure
|
|
|
|
|
(cd $(PKG_BUILD_DIR); \
|
|
|
|
|
LDFLAGS="-static" \
|
|
|
|
|
./configure \
|
|
|
|
|
--program-prefix="" \
|
|
|
|
|
--program-suffix="" \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
|
--datadir=/usr/share \
|
|
|
|
|
--localstatedir=/var \
|
|
|
|
|
--mandir=/usr/man \
|
|
|
|
|
--infodir=/usr/info \
|
|
|
|
|
)
|
|
|
|
|
endef
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
define Build/Compile |
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
|
|
|
|