diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-02-04 16:34:56 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-02-04 16:34:56 +0000 |
commit | 3c1f00b21a11a861ffee0ef801dc57b50b0639c1 (patch) | |
tree | 00c2393e0c177dd2dc4eec833ca30b8d5b818488 /target/x86/grub/grub.mk | |
parent | cc6f5f2027ab34f3384ccde954f93321d9f6bc67 (diff) | |
download | buildroot-novena-3c1f00b21a11a861ffee0ef801dc57b50b0639c1.tar.gz buildroot-novena-3c1f00b21a11a861ffee0ef801dc57b50b0639c1.zip |
- avoid spurious rebuilds. Thanks to janlana, closes #1191
- provide a syslinux-source target while at it
Diffstat (limited to 'target/x86/grub/grub.mk')
-rw-r--r-- | target/x86/grub/grub.mk | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/target/x86/grub/grub.mk b/target/x86/grub/grub.mk index 971b779e5..9181929af 100644 --- a/target/x86/grub/grub.mk +++ b/target/x86/grub/grub.mk @@ -27,7 +27,7 @@ GRUB_PATCH_SITE:=http://ftp.debian.org/debian/pool/main/g/grub GRUB_CAT:=$(ZCAT) GRUB_DIR:=$(BUILD_DIR)/grub-0.97 GRUB_BINARY:=grub/grub -GRUB_TARGET_BINARY:=bin/grub +GRUB_TARGET_BINARY:=sbin/grub GRUB_SPLASHIMAGE=$(TOPDIR)/target/x86/grub/splash.xpm.gz @@ -93,21 +93,22 @@ $(GRUB_DIR)/.configured: $(GRUB_DIR)/.unpacked --disable-auto-linux-mem-opt \ $(GRUB_CONFIG-y) \ ); - touch $@ + touch $@ $(GRUB_DIR)/$(GRUB_BINARY): $(GRUB_DIR)/.configured $(MAKE) CC=$(TARGET_CC) -C $(GRUB_DIR) -grub-target_binary: $(GRUB_DIR)/$(GRUB_BINARY) - cp $(GRUB_DIR)/$(GRUB_BINARY) $(TARGET_DIR)/sbin/ +$(GRUB_DIR)/.installed: $(GRUB_DIR)/$(GRUB_BINARY) + cp $(GRUB_DIR)/$(GRUB_BINARY) $(TARGET_DIR)/$(GRUB_TARGET_BINARY) test -d $(TARGET_DIR)/boot/grub || mkdir -p $(TARGET_DIR)/boot/grub cp $(GRUB_DIR)/stage1/stage1 $(GRUB_DIR)/stage2/*1_5 $(GRUB_DIR)/stage2/stage2 $(TARGET_DIR)/boot/grub/ ifeq ($(BR2_TARGET_GRUB_SPLASH),y) test -f $(TARGET_DIR)/boot/grub/$(GRUB_SPLASHIMAGE) || \ cp $(GRUB_SPLASHIMAGE) $(TARGET_DIR)/boot/grub/ endif + touch $@ -grub: grub-target_binary +grub: uclibc $(GRUB_DIR)/.installed grub-clean: $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GRUB_DIR) uninstall |