Fix profile/image generation for dir450
authorFlorian Fainelli <florian@openwrt.org>
Sun, 14 Oct 2007 15:12:14 +0000 (15:12 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 14 Oct 2007 15:12:14 +0000 (15:12 +0000)
SVN-Revision: 9320

target/linux/rdc/image/Makefile
target/linux/rdc/profiles/DIR-450.mk

index 52a461c2b1b9bbab16d9d170ebbe9a096381e938..3382a1d287b2cf65ab2b66f803741228aae007ab 100644 (file)
@@ -41,10 +41,17 @@ define Image/Build/wl153
        $(RM) $(KDIR)/bzSize.tmp $(KDIR)/bzSize $(KDIR)/rdSize
 endef
 
+define Image/Build/dir450
+       touch $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1)-$(2).img
+       mv $(KDIR)/root.$(1) $(KDIR)/root.tmp
+       dd of=$(KDIR)/root.$(1) if=$(KDIR)/root.tmp $(call trxalign/$(1)) conv=sync
+       $(RM) $(KDIR)/root.tmp
+       cp $(KDIR)/root.$(1) $(BIN_DIR)/onlyrootfs-$(BOARD)-$(1)-$(2).img
+endef
+
 define Image/Build
        $(CP) $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).bzImage
-       $(call Image/Build/ar525w,$(1),ar525w,$(patsubst jffs2-%k,%,$(1)))
-       $(call Image/Build/wl153,$(1),wl153,$(patsubst jffs2-%k,%,$(1)))
+       $(call Image/Build/$(PROFILE),$(1),$(PROFILE),$(patsubst jffs2-%k,%,$(1)))
 endef
 
 $(eval $(call BuildImage))
index 9b9a68d9bd3cc36ebfb74ed86aef2a8dc29e72b2..0015928a57834c7822c693ccdc9913008bbab6c6 100644 (file)
@@ -15,4 +15,3 @@ define Profile/dir450/description
 endef
 
 $(eval $(call Profile,dir450))
-