2006-07-21 05:06:47 +08:00
|
|
|
#
|
2010-04-13 07:15:56 +08:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-21 05:06:47 +08:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2007-01-11 05:52:28 +08:00
|
|
|
define Image/Prepare
|
|
|
|
cp $(LINUX_DIR)/linux $(KDIR)/vmlinux.elf
|
|
|
|
endef
|
|
|
|
|
2016-11-23 00:53:36 +08:00
|
|
|
define Image/Build/squashfs
|
|
|
|
dd if=/dev/zero of=$(KDIR)/root.squashfs bs=1024k count=0 seek=$(CONFIG_TARGET_ROOTFS_PARTSIZE)
|
|
|
|
endef
|
|
|
|
|
2006-07-21 05:06:47 +08:00
|
|
|
define Image/Build
|
2016-11-23 00:53:36 +08:00
|
|
|
$(call Image/Build/$(1))
|
2010-04-13 07:15:56 +08:00
|
|
|
cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
|
|
|
|
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux
|
2006-07-21 05:06:47 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|