From 653f61fb3eb23d5cd30e1577190af038a6a47fbd Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 25 Feb 2007 18:20:34 +0000 Subject: clean up a few things in image build makefiles and fix unnecessary grub rebuilds SVN-Revision: 6360 --- target/linux/x86-2.6/image/grub/Makefile | 36 +++++++++----------------------- 1 file changed, 10 insertions(+), 26 deletions(-) (limited to 'target/linux/x86-2.6') 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 -- cgit v1.2.3