mirror of https://github.com/hak5/openwrt.git
ramips: unbreak initramfs generation
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37080lede-17.01
parent
8ea5e19823
commit
6875316646
|
@ -74,15 +74,15 @@ define MkImageSysupgrade/squashfs
|
|||
endef
|
||||
|
||||
define PatchKernelLzmaDtb
|
||||
cp $(KDIR)/vmlinux $(KDIR)/vmlinux-$(1)
|
||||
cp $(KDIR)/vmlinux$(3) $(KDIR)/vmlinux-$(1)$(3)
|
||||
$(LINUX_DIR)/scripts/dtc/dtc -O dtb -o $(KDIR)/$(2).dtb ../dts/$(2).dts
|
||||
$(STAGING_DIR_HOST)/bin/patch-dtb $(KDIR)/vmlinux-$(1) $(KDIR)/$(2).dtb
|
||||
$(call CompressLzma,$(KDIR)/vmlinux-$(1),$(KDIR)/vmlinux-$(1).bin.lzma)
|
||||
$(STAGING_DIR_HOST)/bin/patch-dtb $(KDIR)/vmlinux-$(1)$(3) $(KDIR)/$(2).dtb
|
||||
$(call CompressLzma,$(KDIR)/vmlinux-$(1)$(3),$(KDIR)/vmlinux-$(1)$(3).bin.lzma)
|
||||
endef
|
||||
|
||||
define MkImageLzmaDtb
|
||||
$(call PatchKernelLzmaDtb,$(1),$(2))
|
||||
$(call MkImage,lzma,$(KDIR)/vmlinux-$(1).bin.lzma,$(KDIR)/vmlinux-$(1).uImage,$(3))
|
||||
$(call PatchKernelLzmaDtb,$(1),$(2),$(4))
|
||||
$(call MkImage,lzma,$(KDIR)/vmlinux-$(1)$(4).bin.lzma,$(KDIR)/vmlinux-$(1)$(4).uImage,$(3))
|
||||
endef
|
||||
|
||||
define BuildFirmware/OF
|
||||
|
@ -91,8 +91,8 @@ define BuildFirmware/OF
|
|||
endef
|
||||
|
||||
define BuildFirmware/OF/initramfs
|
||||
$(call MkImageLzmaDtb,$(2),$(3),$(4))
|
||||
$(CP) $(KDIR)/vmlinux-$(2).uImage $(call imgname,$(1),$(2))-uImage.bin
|
||||
$(call MkImageLzmaDtb,$(2),$(3),$(4),-initramfs)
|
||||
$(CP) $(KDIR)/vmlinux-$(2)-initramfs.uImage $(call imgname,$(1),$(2))-uImage.bin
|
||||
endef
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue