summaryrefslogtreecommitdiff
path: root/target/linux/adm5120-2.6/image
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-05-11 22:20:39 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-05-11 22:20:39 +0000
commit6674fa780387e6e662e9efb0c6ff832eedcae8d2 (patch)
tree144f2b647aa11d0fb8bfc40aa353b36755d884f7 /target/linux/adm5120-2.6/image
parent16ee25b91ac9b07d4a55441367a0ac19785ea915 (diff)
downloadmtk-20170518-6674fa780387e6e662e9efb0c6ff832eedcae8d2.zip
mtk-20170518-6674fa780387e6e662e9efb0c6ff832eedcae8d2.tar.gz
mtk-20170518-6674fa780387e6e662e9efb0c6ff832eedcae8d2.tar.bz2
Add a RB1xx profile to generate RouterBoard RB1xx series image and kernel command line hack patch
SVN-Revision: 7194
Diffstat (limited to 'target/linux/adm5120-2.6/image')
-rw-r--r--target/linux/adm5120-2.6/image/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/adm5120-2.6/image/Makefile b/target/linux/adm5120-2.6/image/Makefile
index 0251460..9c7b9bd 100644
--- a/target/linux/adm5120-2.6/image/Makefile
+++ b/target/linux/adm5120-2.6/image/Makefile
@@ -62,6 +62,10 @@ define Image/Build/MyLoader
$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(3)-$(2).bin
endef
+define Image/Build/RouterBoard
+ $(CP) $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinux
+endef
+
define Image/Build
$(STAGING_DIR)/bin/trx -o $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).trx -f $(KDIR)/loader.gz -f $(KDIR)/vmlinux.lzma $(call trxalign/$(1)) -f $(KDIR)/root.$(1)
$(STAGING_DIR)/bin/trx -o $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1)-noloader.trx -f $(KDIR)/vmlinux.lzma $(call trxalign/$(1)) -f $(KDIR)/root.$(1)
@@ -88,6 +92,9 @@ ifneq ($(1),jffs2-128K)
$(call Image/Build/MyLoader,$(1),wpp54g,$(patsubst jffs2-%,jffs2,$(1)),WPP54G)
$(call Image/Build/MyLoader,$(1),wpp54ag,$(patsubst jffs2-%,jffs2,$(1)),WPP54AG)
endif
+ifeq ($(1),tgz)
+ $(call Image/Build/RouterBoard)
+endif
endef
$(eval $(call BuildImage))