summaryrefslogtreecommitdiffstats
path: root/target/x86/grub
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-30 18:06:32 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-30 18:06:32 +0000
commit84f62146e75b3fe8f9fd193aa518784ebd617c53 (patch)
tree71e3b9cc7fb53223591c24a72784032d88fa13a8 /target/x86/grub
parent2ba27aec378d1f9a1864ad6230910779f04b1093 (diff)
downloadbuildroot-novena-84f62146e75b3fe8f9fd193aa518784ebd617c53.tar.gz
buildroot-novena-84f62146e75b3fe8f9fd193aa518784ebd617c53.zip
- put a static grub into the staging dir
Diffstat (limited to 'target/x86/grub')
-rw-r--r--target/x86/grub/grub.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/x86/grub/grub.mk b/target/x86/grub/grub.mk
index 89ef7645d..85606b721 100644
--- a/target/x86/grub/grub.mk
+++ b/target/x86/grub/grub.mk
@@ -97,6 +97,11 @@ $(GRUB_DIR)/.configured: $(GRUB_DIR)/.unpacked
$(GRUB_DIR)/$(GRUB_BINARY): $(GRUB_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(GRUB_DIR)
+ rm -f $(GRUB_DIR)/$(GRUB_BINARY)
+ $(MAKE) CC=$(TARGET_CC) CFLAGS+=-static -C $(GRUB_DIR)/grub grub
+ mkdir -p $(dir $(STAGING_DIR)/$(GRUB_TARGET_BINARY))
+ mv $(GRUB_DIR)/$(GRUB_BINARY) $(STAGING_DIR)/$(GRUB_TARGET_BINARY).static
+ $(MAKE) CC=$(TARGET_CC) -C $(GRUB_DIR)/grub
$(GRUB_DIR)/.installed: $(GRUB_DIR)/$(GRUB_BINARY)
cp $(GRUB_DIR)/$(GRUB_BINARY) $(TARGET_DIR)/$(GRUB_TARGET_BINARY)