X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fyousong.git;a=blobdiff_plain;f=target%2Flinux%2Farmvirt%2Fimage%2FMakefile;fp=target%2Flinux%2Farmvirt%2Fimage%2FMakefile;h=df4383f1d47ca3bff05fecabb8bd17582efe881a;hp=0000000000000000000000000000000000000000;hb=44ecfc26eb22ca23668a5fd0c706d75f274e410a;hpb=fb237477fd1e7801e4877f9fe1ea7bc1ec16dd99 diff --git a/target/linux/armvirt/image/Makefile b/target/linux/armvirt/image/Makefile new file mode 100644 index 0000000000..df4383f1d4 --- /dev/null +++ b/target/linux/armvirt/image/Makefile @@ -0,0 +1,24 @@ +# +# Copyright (C) 2016 Yousong Zhou +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/image.mk + +define Image/BuildKernel + cp $(KDIR)/$(KERNELNAME) $(BIN_DIR)/$(IMG_PREFIX)-$(KERNELNAME) +endef + +define Image/Build/Initramfs + cp $(KDIR)/$(KERNELNAME)-initramfs $(BIN_DIR)/$(IMG_PREFIX)-$(KERNELNAME)-initramfs +endef + +define Image/Build + $(call Image/Build/$(1)) + dd if=$(KDIR)/root.$(1) bs=128k conv=sync | \ + gzip -9n >$(BIN_DIR)/$(IMG_PREFIX)-root.$(1).gz +endef + +$(eval $(call BuildImage))