Skip to contentSkip to conversation

svn commit: trunk/buildroot/target/x86/grub

Buildroot aldot at uclibc.org 1 participant 1 message Sep 30, 2007

lore
Share & tools
lore
#0 lore raw

Author: aldot
Date: 2007-09-30 11:06:32 -0700 (Sun, 30 Sep 2007) New Revision: 20150

Log:
- put a static grub into the staging dir

Modified:
trunk/buildroot/target/x86/grub/grub.mk

Changeset:
Modified: trunk/buildroot/target/x86/grub/grub.mk
===================================================================

buildroot/target/x86/grub/grub.mk +5 -0
@@ -97,6 +97,11 @@
 
 $(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)