router_be.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Copyright (C) 2007,2008 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. define Image/Build/ZyXEL
  8. $(call Image/Build/Loader,$(2),bin,0x80500000,0,y,$(2))
  9. $(call Image/Build/TRXNoloader,$(call imgname,$(1),$(2)).trx,$(1))
  10. $(STAGING_DIR_HOST)/bin/mkzynfw -B $(2) \
  11. -b $(KDIR)/loader-$(2).bin \
  12. -r $(call imgname,$(1),$(2)).trx:0x10000 \
  13. -o $(call imgname,$(1),$(2))-webui.bin
  14. endef
  15. define Image/Build/Template/ZyXEL
  16. $(call Image/Build/ZyXEL,$(1),$(2))
  17. endef
  18. define Image/Build/Template/ZyXEL/squashfs
  19. $(call Image/Build/Template/ZyXEL,squashfs,$(1))
  20. endef
  21. define Image/Build/Template/ZyXEL/jffs2
  22. $(call Image/Build/Template/ZyXEL,jffs2,$(1))
  23. endef
  24. define Image/Build/Template/ZyXEL/Initramfs
  25. $(call Image/Build/LZMAKernel/KArgs,$(1),bin)
  26. endef
  27. #
  28. # Profiles
  29. #
  30. define Image/Build/Profile/P334WT
  31. $(call Image/Build/Template/ZyXEL/$(1),p-334wt)
  32. endef
  33. define Image/Build/Profile/P335WT
  34. $(call Image/Build/Template/ZyXEL/$(1),p-335wt)
  35. endef
  36. define Image/Build/Profile/Generic
  37. $(call Image/Build/Profile/P334WT,$(1))
  38. $(call Image/Build/Profile/P335WT,$(1))
  39. endef