mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 08:13:20 +02:00
ramips: image: add MkImageLzma wrapper
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30696 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
eada36fe53
commit
77394481fe
@ -46,6 +46,11 @@ define MkImage
|
|||||||
-d $(2) $(3)
|
-d $(2) $(3)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define MkImageLzma
|
||||||
|
$(call PatchKernelLzma,$(1),$(2))
|
||||||
|
$(call MkImage,lzma,$(KDIR)/vmlinux-$(1).bin.lzma,$(KDIR)/vmlinux-$(1).uImage)
|
||||||
|
endef
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(VMLINUX).elf
|
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(VMLINUX).elf
|
||||||
cp $(KDIR)/vmlinux $(BIN_DIR)/$(VMLINUX).bin
|
cp $(KDIR)/vmlinux $(BIN_DIR)/$(VMLINUX).bin
|
||||||
@ -56,8 +61,7 @@ define Image/BuildKernel
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define BuildFirmware/Generic
|
define BuildFirmware/Generic
|
||||||
$(call PatchKernelLzma,$(2),$(3) $($(4)))
|
$(call MkImageLzma,$(2),$(3) $($(4)))
|
||||||
$(call MkImage,lzma,"$(KDIR)/vmlinux-$(2).bin.lzma","$(KDIR)/vmlinux-$(2).uImage")
|
|
||||||
if [ `stat -c%s "$(KDIR)/vmlinux-$(2).uImage"` -gt $(5) ]; then \
|
if [ `stat -c%s "$(KDIR)/vmlinux-$(2).uImage"` -gt $(5) ]; then \
|
||||||
echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \
|
echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \
|
||||||
else if [ `stat -c%s $(KDIR)/root.$(1)` -gt $(6) ]; then \
|
else if [ `stat -c%s $(KDIR)/root.$(1)` -gt $(6) ]; then \
|
||||||
@ -71,14 +75,12 @@ define BuildFirmware/Generic
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define BuildFirmware/Generic/initramfs
|
define BuildFirmware/Generic/initramfs
|
||||||
$(call PatchKernelLzma,$(2),$(3) $($(4)))
|
$(call MkImageLzma,$(2),$(3) $($(4)))
|
||||||
$(call MkImage,lzma,"$(KDIR)/vmlinux-$(2).bin.lzma","$(KDIR)/vmlinux-$(2).uImage")
|
|
||||||
$(CP) $(KDIR)/vmlinux-$(2).uImage $(call imgname,$(1),$(2))-uImage.bin
|
$(CP) $(KDIR)/vmlinux-$(2).uImage $(call imgname,$(1),$(2))-uImage.bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define BuildFirmware/WL341V3
|
define BuildFirmware/WL341V3
|
||||||
$(call PatchKernelLzma,$(2),$(3) $($(4)))
|
$(call MkImageLzma,$(2),$(3) $($(4)))
|
||||||
$(call MkImage,lzma,"$(KDIR)/vmlinux-$(2).bin.lzma","$(KDIR)/vmlinux-$(2).uImage")
|
|
||||||
if [ `stat -c%s "$(KDIR)/vmlinux-$(2).uImage"` -gt $(5) ]; then \
|
if [ `stat -c%s "$(KDIR)/vmlinux-$(2).uImage"` -gt $(5) ]; then \
|
||||||
echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \
|
echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \
|
||||||
else if [ `stat -c%s $(KDIR)/root.$(1)` -gt $(6) ]; then \
|
else if [ `stat -c%s $(KDIR)/root.$(1)` -gt $(6) ]; then \
|
||||||
@ -99,8 +101,7 @@ define BuildFirmware/WL341V3
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define BuildFirmware/Buffalo
|
define BuildFirmware/Buffalo
|
||||||
$(call PatchKernelLzma,$(2),board=$(3) $($(4)))
|
$(call MkImageLzma,$(2),board=$(3) $($(4)))
|
||||||
$(call MkImage,lzma,"$(KDIR)/vmlinux-$(2).bin.lzma","$(KDIR)/vmlinux-$(2).uImage")
|
|
||||||
if [ `stat -c%s "$(KDIR)/vmlinux-$(2).uImage"` -gt $(5) ]; then \
|
if [ `stat -c%s "$(KDIR)/vmlinux-$(2).uImage"` -gt $(5) ]; then \
|
||||||
echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \
|
echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \
|
||||||
else if [ `stat -c%s $(KDIR)/root.$(1)` -gt $(6) ]; then \
|
else if [ `stat -c%s $(KDIR)/root.$(1)` -gt $(6) ]; then \
|
||||||
|
Loading…
Reference in New Issue
Block a user