From 8f5add1754284c4e0f6162797b20b5d08b2e2882 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 31 Oct 2010 19:51:33 +0100 Subject: rework installation scripts for block devices Avoid sfdisk, parted and chroot to be more portable. Compile Host grub in target/tools, only used for ibmx40 target right now. Add pt - partition table manager from OpenWrt with some additions and portability fixes. Cfgfs support missing, coming soon. --- target/ibmx40/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'target/ibmx40') diff --git a/target/ibmx40/Makefile b/target/ibmx40/Makefile index 3c95fc2d1..b50a864fc 100644 --- a/target/ibmx40/Makefile +++ b/target/ibmx40/Makefile @@ -7,6 +7,12 @@ include $(TOPDIR)/mk/modules.mk include $(TOPDIR)/mk/kernel-build.mk include $(TOPDIR)/mk/image.mk +$(TOOLS_BUILD_DIR): + mkdir -p $(TOOLS_BUILD_DIR) + +tools-compile: $(TOOLS_BUILD_DIR) + $(MAKE) -C ../tools/grub prepare compile install + KERNEL:=$(LINUX_DIR)/arch/x86/boot/bzImage createinitcrypt: @@ -26,7 +32,7 @@ imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL) @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)" endif ifeq ($(FS),usb) -imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL) +imageinstall: tools-compile $(BIN_DIR)/$(ROOTFSTARBALL) @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)" @echo "To install everything to USB use scripts/install.sh" endif -- cgit v1.2.3