On 13/10/14 07:02, Rafał Miłecki wrote: > On 13 October 2014 00:35, Stephen Parry <sgpa...@mainscreen.com> wrote: >> Enhance support for initramfs: >> - added commands to create chk images for flashing via tftp or >> stock firmware gui >> - added commands to generate nodictionary and noloader variants of trx >> images >> >> Signed-off-by: Stephen Parry <sgpa...@mainscreen.com> > Thanks for your patch, I've partially commited it in r42889 > https://dev.openwrt.org/changeset/42889/ > > I still wonder how we could build firmwares for devices that need > noloader-nodictionary images. Your suggested call: > $(call Image/Build/$(SUBTARGET)/squashfs,initramfs) > will generate a standard (loader + dictionary) image for WNR3500L. The > same problem applies to the WNDR4500. > > Should we add something like > Image/Build/mips74k/devices-with-64k-blocks-noloader-nodictionary > ? And use some trick in it to use correct trx? I've just tested using the following approach in my own Makefile and this seems to work.
define Image/Build/mips74k/devices-with-64k-blocks : $(call Image/Build/Chk,$(1)-noloader-nodictionary,wnr3500l_v1_north_america,U12H136T99_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) $(call Image/Build/Chk,$(1)-noloader-nodictionary,wnr3500l_v1_other_regions,U12H136T99_NETGEAR,1,$(patsubst jffs2-%,jffs2,$(1))) : endef Should I commit a new patch, including a change for the WNDR4500? _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel