build root filesystems and install them in $(BIN_DIR)
authorFlorian Fainelli <florian@openwrt.org>
Fri, 16 Nov 2012 16:32:36 +0000 (16:32 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 16 Nov 2012 16:32:36 +0000 (16:32 +0000)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34214

target/linux/sparc/image/Makefile

index 314cd6a409fd260d283fb4bee6ec61a06f80b897..e1f3aa0d5e045c5add4c5c2ec13dde55cca4af94 100644 (file)
@@ -17,4 +17,13 @@ define Image/BuildKernel
 #      cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.elf
 endef
 
+define Image/Build/squashfs
+       $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
+endef
+
+define Image/Build
+       $(call Image/Build/$(1))
+       dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) bs=128k conv=sync
+endef
+
 $(eval $(call BuildImage))