diff options
Diffstat (limited to 'target/linux/mx2/image/Makefile')
-rw-r--r-- | target/linux/mx2/image/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/mx2/image/Makefile b/target/linux/mx2/image/Makefile new file mode 100644 index 0000000000..12fbe4ee4f --- /dev/null +++ b/target/linux/mx2/image/Makefile @@ -0,0 +1,22 @@ +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/image.mk + +JFFS2_BLOCKSIZE=128k 16k +#JFFS2OPTS += -n -s 2048 +JFFS2OPTS += -n + +define Image/BuildKernel + mkdir -p $(BIN_DIR) + cp $(KDIR)/vmlinuz $(BIN_DIR)/openwrt-$(BOARD)-zImage +endef + +define Image/Prepare + cp $(LINUX_DIR)/arch/arm/boot/zImage $(KDIR)/vmlinuz +endef + + +define Image/Build/squashfs + $(call prepare_generic_squashfs,$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-root.$(1)) +endef + +$(eval $(call BuildImage)) |