aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86-2.6/image
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-02-25 18:20:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-02-25 18:20:34 +0000
commit2cb1f18c15127d8611cd05038e164be12dac2ba7 (patch)
treea23b6e3878add984d9af143cd9ac06725aad64d1 /target/linux/x86-2.6/image
parente719e0c4d9fa86ba0d0b907645c9b3dee58647e2 (diff)
downloadmaster-187ad058-2cb1f18c15127d8611cd05038e164be12dac2ba7.tar.gz
master-187ad058-2cb1f18c15127d8611cd05038e164be12dac2ba7.tar.bz2
master-187ad058-2cb1f18c15127d8611cd05038e164be12dac2ba7.zip
clean up a few things in image build makefiles and fix unnecessary grub rebuilds
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6360 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/x86-2.6/image')
-rw-r--r--target/linux/x86-2.6/image/grub/Makefile36
1 files changed, 10 insertions, 26 deletions
diff --git a/target/linux/x86-2.6/image/grub/Makefile b/target/linux/x86-2.6/image/grub/Makefile
index 365b327622..d37803012c 100644
--- a/target/linux/x86-2.6/image/grub/Makefile
+++ b/target/linux/x86-2.6/image/grub/Makefile
@@ -23,34 +23,19 @@ 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" \
- ./configure \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --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 \
- $(DISABLE_NLS) \
- --disable-auto-linux-mem-opt \
- )
- endef
+CONFIGURE_FLAGS:= \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME)
else
- define Build/Configure
+CONFIGURE_FLAGS:=
+endif
+
+define Build/Configure
(cd $(PKG_BUILD_DIR); \
LDFLAGS="-static" \
./configure \
+ $(CONFIGURE_FLAGS) \
--program-prefix="" \
--program-suffix="" \
--prefix=/usr \
@@ -66,8 +51,7 @@ else
$(DISABLE_NLS) \
--disable-auto-linux-mem-opt \
)
- endef
-endif
+endef
#
# ./configure detects whether the host compiler supports