X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/add68b01789ee3c027ddf77b929b55c38a784ea0..3d57b2da712e9646de9a0a6a2a48e45706205eeb:/target/linux/adm5120/image/router_le.mk diff --git a/target/linux/adm5120/image/router_le.mk b/target/linux/adm5120/image/router_le.mk index 19ca4e3bf..96ad22106 100644 --- a/target/linux/adm5120/image/router_le.mk +++ b/target/linux/adm5120/image/router_le.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2007,2008 OpenWrt.org +# Copyright (C) 2007-2009 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -43,6 +43,24 @@ define Image/Build/Edimax rm -f $(call imgname,$(1),$(2)).trx endef +define Image/Build/Osbridge + $(call Image/Build/Loader,$(2),gz,0x80500000,0x6D8,y,$(2)) + $(call Image/Build/TRXEdimax,$(call imgname,$(1),$(2)).trx,$(1)) + $(STAGING_DIR_HOST)/bin/mkcsysimg -B $(2) -d \ + -r $(KDIR)/loader-$(2).gz::0x1000 \ + -x $(call imgname,$(1),$(2)).trx:0x10000 \ + -x $(JFFS2MARK):0x10000 \ + $(call imgname,$(1),$(2))-firmware.bin + $(STAGING_DIR_HOST)/bin/osbridge-crc \ + -i $(call imgname,$(1),$(2))-firmware.bin \ + -o $(call imgname,$(1),$(2))-temp.bin + $(STAGING_DIR_HOST)/bin/pc1crypt \ + -i $(call imgname,$(1),$(2))-temp.bin \ + -o $(call imgname,$(1),$(2))-webui.bin + rm -f $(call imgname,$(1),$(2))-temp.bin + rm -f $(call imgname,$(1),$(2)).trx +endef + define Image/Build/Infineon $(call Image/Build/Loader,$(2),gz,0x80500000,0x6D8,y,$(2)) $(call Image/Build/TRXNoloader,$(call imgname,$(1),$(2)).trx,$(1)) @@ -66,7 +84,7 @@ endef define Image/Build/Cellvision2 # only for CAS-700/771/790/861 - $(call Image/Build/Loader,$(2),gz,0x80500000,0x6D8,y,$(2)) + $(call Image/Build/Loader,$(2),gz,0x80500000,0x6D8,y,$(3)) $(call Image/Build/TRXNoloader,$(call imgname,$(1),$(2)).trx,$(1)) dd if=$(KDIR)/loader-$(2).gz of=$(call imgname,$(1),$(2)).bin bs=64k conv=sync cat $(call imgname,$(1),$(2)).trx >> $(call imgname,$(1),$(2)).bin @@ -104,19 +122,19 @@ endef # Cellvision CAS-700/700W, CAS-771/771W, CAS-790, CAS-861/861W # define Image/Build/Template/Cellvision2 - $(call Image/Build/Cellvision2,$(1),$(2)) + $(call Image/Build/Cellvision2,$(1),$(2),$(3)) endef define Image/Build/Template/Cellvision2/squashfs - $(call Image/Build/Template/Cellvision2,squashfs,$(1)) + $(call Image/Build/Template/Cellvision2,squashfs,$(1),$(2)) endef define Image/Build/Template/Cellvision2/jffs2-64k - $(call Image/Build/Template/Cellvision2,jffs2-64k,$(1)) + $(call Image/Build/Template/Cellvision2,jffs2-64k,$(1),$(2)) endef define Image/Build/Template/Cellvision2/Initramfs - $(call Image/Build/LZMAKernel/Admboot,$(1),gz) + $(call Image/Build/LZMAKernel/Cellvision,$(1),$(2),gz) endef # @@ -198,6 +216,21 @@ define Image/Build/Template/Mikrotik/Initramfs $(CP) $(KDIR)/vmlinux.elf $(call imgname,netboot,rb1xx) endef +# +# OSBRiDGE 5GXi/5XLi +# +define Image/Build/Template/Osbridge + $(call Image/Build/Osbridge,$(1),$(2)) +endef + +define Image/Build/Template/Osbridge/squashfs + $(call Image/Build/Template/Osbridge,squashfs,$(1)) +endef + +define Image/Build/Template/Osbridge/Initramfs + $(call Image/Build/LZMAKernel/Admboot,$(1),gz) +endef + # # Profiles # @@ -206,7 +239,7 @@ define Image/Build/Profile/CAS630 endef define Image/Build/Profile/CAS630W - $(call Image/Build/Template/Cellvision/$(1),cas-630,cas-630w) + $(call Image/Build/Template/Cellvision/$(1),cas-630w,cas-630) endef define Image/Build/Profile/CAS670 @@ -214,7 +247,7 @@ define Image/Build/Profile/CAS670 endef define Image/Build/Profile/CAS670W - $(call Image/Build/Template/Cellvision/$(1),cas-670,cas-670w) + $(call Image/Build/Template/Cellvision/$(1),cas-670w,cas-670) endef define Image/Build/Profile/NFS101U @@ -223,6 +256,7 @@ define Image/Build/Profile/NFS101U $(call Image/Build/Template/Cellvision/$(1),dns-120,nfs-101u) $(call Image/Build/Template/Cellvision/$(1),mu-5000fs,nfs-101u) $(call Image/Build/Template/Cellvision/$(1),tn-u100,nfs-101u) + $(call Image/Build/Template/Cellvision/$(1),cg-nsadp,nfs-101u) endef define Image/Build/Profile/NFS101WU @@ -231,31 +265,31 @@ define Image/Build/Profile/NFS101WU endef define Image/Build/Profile/CAS700 - $(call Image/Build/Template/Cellvision2/$(1),cas-700) + $(call Image/Build/Template/Cellvision2/$(1),cas-700,cas-700) endef define Image/Build/Profile/CAS700W - $(call Image/Build/Template/Cellvision2/$(1),cas-700w) + $(call Image/Build/Template/Cellvision2/$(1),cas-700w,cas-700) endef define Image/Build/Profile/CAS771 - $(call Image/Build/Template/Cellvision2/$(1),cas-771) + $(call Image/Build/Template/Cellvision2/$(1),cas-771,cas-771) endef define Image/Build/Profile/CAS771W - $(call Image/Build/Template/Cellvision2/$(1),cas-771w) + $(call Image/Build/Template/Cellvision2/$(1),cas-771w,cas-771) endef define Image/Build/Profile/CAS790 - $(call Image/Build/Template/Cellvision2/$(1),cas-790) + $(call Image/Build/Template/Cellvision2/$(1),cas-790,cas-790) endef define Image/Build/Profile/CAS861 - $(call Image/Build/Template/Cellvision2/$(1),cas-861) + $(call Image/Build/Template/Cellvision2/$(1),cas-861,cas-861) endef define Image/Build/Profile/CAS861W - $(call Image/Build/Template/Cellvision2/$(1),cas-861w) + $(call Image/Build/Template/Cellvision2/$(1),cas-861w,cas-861) endef define Image/Build/Profile/NP27G @@ -294,12 +328,28 @@ define Image/Build/Profile/EASY83000 $(call Image/Build/Template/Infineon/$(1),easy-83000) endef +define Image/Build/Profile/EASY5120RT + $(call Image/Build/Template/Infineon/$(1),easy-5120-rt) +endef + +define Image/Build/Profile/EASY5120PATA + $(call Image/Build/Template/Infineon/$(1),easy-5120p-ata) +endef + +define Image/Build/Profile/PMUGW + $(call Image/Build/Template/Infineon/$(1),powerline-mugw) +endef + +define Image/Build/Profile/5GXI + $(call Image/Build/Template/Osbridge/$(1),5gxi) +endef + define Image/Build/Profile/RouterBoard $(call Image/Build/Template/Mikrotik/$(1)) endef ifeq ($(CONFIG_BROKEN),y) -define Image/Build/Experimental + define Image/Build/Experimental # Cellvison $(call Image/Build/Profile/CAS630,$(1)) $(call Image/Build/Profile/CAS630W,$(1)) @@ -311,12 +361,17 @@ define Image/Build/Experimental $(call Image/Build/Profile/CAS771W,$(1)) $(call Image/Build/Profile/CAS861,$(1)) $(call Image/Build/Profile/CAS861W,$(1)) - $(call Image/Build/Profile/NFS101U,$(1)) - $(call Image/Build/Profile/NFS101WU,$(1)) -endef + # Motorola + $(call Image/Build/Profile/PMUGW,$(1)) + # OSBRiDGE + $(call Image/Build/Profile/5GXI,$(1)) + endef endif define Image/Build/Profile/Generic + # Cellvision + $(call Image/Build/Profile/NFS101U,$(1)) + $(call Image/Build/Profile/NFS101WU,$(1)) # Compex $(call Image/Build/Profile/WP54,$(1)) $(call Image/Build/Profile/NP27G,$(1)) @@ -328,14 +383,17 @@ define Image/Build/Profile/Generic $(call Image/Build/Profile/BR6114WG,$(1)) # Infineon $(call Image/Build/Profile/EASY83000,$(1)) + $(call Image/Build/Profile/EASY5120RT,$(1)) + $(call Image/Build/Profile/EASY5120PATA,$(1)) # Mikrotik $(call Image/Build/Profile/RB1xx/$(1)) - $(call Image/Build/Experimental) + + $(call Image/Build/Experimental,$(1)) endef ifeq ($(PROFILE),RouterBoard) define Image/cmdline/yaffs2 - root=/dev/mtdblock3 rootfstype=yaffs2 init=/etc/preinit + root=/dev/mtdblock3 rootfstype=yaffs2 endef define Image/BuildKernel/RouterBoard