X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/00b9fc10fe104cb6b4c835fdf19f739121722ed6..d55ff237aa21be0cc267fd5de6d835be0510b8e2:/include/image.mk?ds=sidebyside diff --git a/include/image.mk b/include/image.mk index 13b722981..6805389d7 100644 --- a/include/image.mk +++ b/include/image.mk @@ -4,6 +4,8 @@ # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # + +include $(INCLUDE_DIR)/kernel.mk KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD) ifneq ($(CONFIG_BIG_ENDIAN),y) @@ -50,7 +52,7 @@ endif ifeq ($(CONFIG_TARGET_ROOTFS_EXT2FS),y) - E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_SIZE)*1024))) + E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_FSPART)*1024))) define Image/mkfs/ext2 $(STAGING_DIR)/bin/genext2fs -q -b $(E2SIZE) -I 1500 -d $(BUILD_DIR)/root/ $(KDIR)/root.ext2