aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
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
commitf4e6737ed1d446c064fdda3464cfe1a70e5d2c56 (patch)
tree57b1c1a1c1a1a6e082add98de2c74682eca65c18 /target/linux
parentcce06492cd76932efb888624578538b648187cd2 (diff)
downloadupstream-f4e6737ed1d446c064fdda3464cfe1a70e5d2c56.tar.gz
upstream-f4e6737ed1d446c064fdda3464cfe1a70e5d2c56.tar.bz2
upstream-f4e6737ed1d446c064fdda3464cfe1a70e5d2c56.zip
Fix profile/image generation for dir450
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9320 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/rdc/image/Makefile11
-rw-r--r--target/linux/rdc/profiles/DIR-450.mk1
2 files changed, 9 insertions, 3 deletions
diff --git a/target/linux/rdc/image/Makefile b/target/linux/rdc/image/Makefile
index 52a461c2b1..3382a1d287 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))
diff --git a/target/linux/rdc/profiles/DIR-450.mk b/target/linux/rdc/profiles/DIR-450.mk
index 9b9a68d9bd..0015928a57 100644
--- a/target/linux/rdc/profiles/DIR-450.mk
+++ b/target/linux/rdc/profiles/DIR-450.mk
@@ -15,4 +15,3 @@ define Profile/dir450/description
endef
$(eval $(call Profile,dir450))
-