summaryrefslogtreecommitdiff
path: root/target/linux/rdc/image
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-10-14 15:12:14 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-10-14 15:12:14 +0000
commitc1baf67fbff53fc1eb780bec8f25ee94c12f3112 (patch)
treec762394d2896eea477e513d93be6f27603913412 /target/linux/rdc/image
parente8f986c59f71be8a1ad6867306804825b3bb755a (diff)
downloadmtk-20170518-c1baf67fbff53fc1eb780bec8f25ee94c12f3112.zip
mtk-20170518-c1baf67fbff53fc1eb780bec8f25ee94c12f3112.tar.gz
mtk-20170518-c1baf67fbff53fc1eb780bec8f25ee94c12f3112.tar.bz2
Fix profile/image generation for dir450
SVN-Revision: 9320
Diffstat (limited to 'target/linux/rdc/image')
-rw-r--r--target/linux/rdc/image/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/target/linux/rdc/image/Makefile b/target/linux/rdc/image/Makefile
index 52a461c..3382a1d 100644
--- a/target/linux/rdc/image/Makefile
+++ b/target/linux/rdc/image/Makefile
@@ -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))