summaryrefslogtreecommitdiff
path: root/target/image/x86
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-14 23:06:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-14 23:06:23 +0000
commit6bbd6d2ef6460f02d3e8e5a2e326adc8481ebfa2 (patch)
tree910dd137f239457c70c8cc98cf16a09e289fe5b0 /target/image/x86
parent1aede1e1db77e03ec5cacb969a0e2accd9c7bbc6 (diff)
downloadmtk-20170518-6bbd6d2ef6460f02d3e8e5a2e326adc8481ebfa2.zip
mtk-20170518-6bbd6d2ef6460f02d3e8e5a2e326adc8481ebfa2.tar.gz
mtk-20170518-6bbd6d2ef6460f02d3e8e5a2e326adc8481ebfa2.tar.bz2
use the native toolchain for grub on non-amd64 hosts
SVN-Revision: 5103
Diffstat (limited to 'target/image/x86')
-rw-r--r--target/image/x86/grub/Makefile25
1 files changed, 23 insertions, 2 deletions
diff --git a/target/image/x86/grub/Makefile b/target/image/x86/grub/Makefile
index 86a9001..e30443e 100644
--- a/target/image/x86/grub/Makefile
+++ b/target/image/x86/grub/Makefile
@@ -22,7 +22,8 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/grub-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
-define Build/Configure
+ifeq ($(HOST_ARCH),x86_64)
+ define Build/Configure
(cd $(PKG_BUILD_DIR); \
LDFLAGS="-static" \
./configure \
@@ -43,7 +44,27 @@ define Build/Configure
--infodir=/usr/info \
$(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
$(MAKE) -C $(PKG_BUILD_DIR)