-define Image/Build/AP121
- $(call PatchKernelLzma,$(2),$(3) $($(4)))
- $(call MkImageLzma,$(KDIR)/vmlinux-$(2).bin.lzma,$(KDIR)/vmlinux-$(2).uImage)
- if [ `stat -c%s $(KDIR)/vmlinux-$(2).uImage` -gt $(5) ]; then \
- echo "Warning: $(KDIR)/vmlinux-$(2).uImage is too big"; \
- elif [ `stat -c%s $(BIN_DIR)/$(IMG_PREFIX)-root.$(1)` -gt $(6) ]; then \
- echo "Warning: $(KDIR)/root.$(1) is too big"; \
- else \
- cp $(KDIR)/vmlinux-$(2).uImage $(call imgname,kernel,$(2)).bin; \
- cp $(BIN_DIR)/$(IMG_PREFIX)-root.$(1) $(call imgname,$(1),$(2)-rootfs).bin; \
- ( \
- dd if=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=$(6) conv=sync; \
- dd if=$(KDIR)/vmlinux-$(2).uImage; \
- ) > $(call imgname,$(1),$(2))-sysupgrade.bin; \
- fi
-endef
-
-define Image/Build/AP121/initramfs
- $(call PatchKernelLzma,$(2),$(3) $($(4)))
- $(call MkImageLzma,$(KDIR)/vmlinux-$(2).bin.lzma,$(call imgname,$(1),$(2))-uImage.bin)
-endef