use the native toolchain for grub on non-amd64 hosts
SVN-Revision: 5103
This commit is contained in:
parent
1aede1e1db
commit
6bbd6d2ef6
1 changed files with 23 additions and 2 deletions
|
@ -22,7 +22,8 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/grub-$(PKG_VERSION)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Build/Configure
|
ifeq ($(HOST_ARCH),x86_64)
|
||||||
|
define Build/Configure
|
||||||
(cd $(PKG_BUILD_DIR); \
|
(cd $(PKG_BUILD_DIR); \
|
||||||
LDFLAGS="-static" \
|
LDFLAGS="-static" \
|
||||||
./configure \
|
./configure \
|
||||||
|
@ -43,7 +44,27 @@ define Build/Configure
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
)
|
)
|
||||||
endef
|
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
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
$(MAKE) -C $(PKG_BUILD_DIR)
|
||||||
|
|
Loading…
Reference in a new issue