lantiq: fix fritz image generation
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38326
This commit is contained in:
parent
1398a5d849
commit
ae225124c6
2 changed files with 10 additions and 8 deletions
|
@ -55,8 +55,9 @@ endef
|
|||
|
||||
define MkImageEVA
|
||||
lzma2eva 0x80002000 0x80002000 $(KDIR)/vmlinux-$(1).lzma $(KDIR)/$(1).eva.prealign
|
||||
dd if=$(KDIR)/$(1).eva.prealign of=$(KDIR)/$(1).eva bs=64k conv=sync
|
||||
cat ./eva.dummy.squashfs >> $(KDIR)/$(1).eva
|
||||
dd if=$(KDIR)/$(1).eva.prealign of=$(KDIR)/$(1).eva.align.64k bs=64k conv=sync
|
||||
dd if=$(KDIR)/$(1).eva.prealign of=$(KDIR)/$(1).eva.align.128k bs=128k conv=sync
|
||||
cat ./eva.dummy.squashfs >> $(KDIR)/$(1).eva.align.64k
|
||||
endef
|
||||
|
||||
define CompressGzip
|
||||
|
@ -88,7 +89,7 @@ define Image/BuildTPLink/squashfs
|
|||
endef
|
||||
|
||||
define Image/BuildEVA/squashfs
|
||||
cat $(KDIR)/$(2).eva $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva
|
||||
cat $(KDIR)/$(2).eva.align.64k $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva
|
||||
$(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva)
|
||||
endef
|
||||
|
||||
|
@ -98,8 +99,8 @@ define Image/BuildLoader/squashfs
|
|||
$(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image)
|
||||
endef
|
||||
|
||||
define Image/BuildNANDEVA/jffs2-128k
|
||||
cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).rootfs
|
||||
define Image/BuildEVA/jffs2-128k
|
||||
cat $(KDIR)/$(2).eva.align.128k $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(1).image.eva
|
||||
endef
|
||||
|
||||
define Image/Build/jffs2-64k
|
||||
|
@ -156,7 +157,8 @@ endef
|
|||
define Image/BuildKernelEVA/Template
|
||||
$(call PatchKernelLzma,$(1))
|
||||
$(call MkImageEVA,$(1))
|
||||
$(CP) $(KDIR)/$(1).eva $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva
|
||||
$(CP) $(KDIR)/$(1).eva.align.64k $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva.align.64k
|
||||
$(CP) $(KDIR)/$(1).eva.align.128k $(BIN_DIR)/$(IMG_PREFIX)-$(1).eva.align.128k
|
||||
endef
|
||||
|
||||
define Image/BuildKernelGzip/Template
|
||||
|
@ -274,7 +276,7 @@ Image/BuildKernel/Profile/EASY80920NOR=$(call Image/BuildKernel/Template,EASY809
|
|||
Image/Build/Profile/EASY80920NOR=$(call Image/Build/$(1),$(1),EASY80920NOR)
|
||||
|
||||
Image/BuildKernel/Profile/FRITZ3370=$(call Image/BuildKernelEVA/Template,FRITZ3370)
|
||||
Image/Build/Profile/FRITZ3370=$(call Image/BuildNANDEVA/$(1),$(1),FRITZ3370)
|
||||
Image/Build/Profile/FRITZ3370=$(call Image/BuildEVA/$(1),$(1),FRITZ3370)
|
||||
|
||||
Image/BuildKernel/Profile/VG3503J=$(call Image/BuildKernelLoader/Template,VG3503J)
|
||||
Image/Build/Profile/VG3503J=$(call Image/BuildLoader/$(1),$(1),VG3503J)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ARCH:=mips
|
||||
SUBTARGET:=xrx200
|
||||
BOARDNAME:=XRX200
|
||||
FEATURES:=squashfs atm mips16
|
||||
FEATURES:=squashfs atm mips16 jffs2
|
||||
CPU_TYPE:=34kc
|
||||
CPU_SUBTYPE:=dsp
|
||||
|
||||
|
|
Loading…
Reference in a new issue