From patchwork Fri Apr 28 04:02:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 98304 Delivered-To: patches@linaro.org Received: by 10.140.109.52 with SMTP id k49csp80003qgf; Thu, 27 Apr 2017 21:02:58 -0700 (PDT) X-Received: by 10.84.237.1 with SMTP id s1mr12142302plk.157.1493352178087; Thu, 27 Apr 2017 21:02:58 -0700 (PDT) Return-Path: Received: from mail-pg0-x22f.google.com (mail-pg0-x22f.google.com. [2607:f8b0:400e:c05::22f]) by mx.google.com with ESMTPS id m3si4668249pgm.2.2017.04.27.21.02.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Apr 2017 21:02:58 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::22f as permitted sender) client-ip=2607:f8b0:400e:c05::22f; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::22f as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-pg0-x22f.google.com with SMTP id y4so2982079pge.0 for ; Thu, 27 Apr 2017 21:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=putfaB/dKc31hqXknwwV/m9orlOoz2+2w3LIppyDOi0=; b=MI+xM03ErUD1N6VNMIqehZus+wFvrd33s0Mk1mmWiMaVYLdf0Thg+B7whpiJuESPzr 2khby/5pPN+o2ycV8Wv6ajzDX+mVVQA+A4MGTqLQLnUq7eYiFoJgckQcrEIqd/oDMs7E yFCG2IaFxtqh3bQtWdpMGXQ7oaz2Pk0Ey6ie8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=putfaB/dKc31hqXknwwV/m9orlOoz2+2w3LIppyDOi0=; b=i27hYJerWzm7020XgpRr19SjG4WRFf/95Nc2t4LuA7pfi9DfsvvfBWCloE8RY+d9TQ pxLjpQOOol/yAQL1DlAir1AWGn3A6gUsIwdqUPlXlaY1o5R5hJqJJWVgY1qH4ADuTDY8 WE4RUtGBzbmfpd/LLUO//WBWKVxJkN1ZpgFkpTm6cnu6sdGJydEEd9ESQb4PVA6yuuM/ FiMYvaylgbjDlKZpbytiHz3vMOoekRM1JjDIIBCe8/Nr3jhLcZtOzlhSh3euNQ/hVHeL n7D18w4JGeXnhsfBFkbY7kt+1Vgav8hE+OYP/WIwz5whuCXzyr2Imh6pcEz7KkSGaXp4 x2qQ== X-Gm-Message-State: AN3rC/6uvvTlNhk/388wwD5TTqFlJtWQ4xzXQyHs4OKyeX8DhTWsGlDF xsPJsOdJDYftHuyNK5g= X-Received: by 10.84.174.3 with SMTP id q3mr12164476plb.179.1493352177789; Thu, 27 Apr 2017 21:02:57 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:1002:83f0:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id j65sm7161652pfc.86.2017.04.27.21.02.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Apr 2017 21:02:56 -0700 (PDT) From: John Stultz To: Cc: John Stultz , Rob Herring , Sumit Semwal , Vishal Bhoj , Amit Pundir Subject: [PATCH 2/4] Add support for custom userdata sizes Date: Thu, 27 Apr 2017 21:02:49 -0700 Message-Id: <1493352171-30851-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493352171-30851-1-git-send-email-john.stultz@linaro.org> References: <1493352171-30851-1-git-send-email-john.stultz@linaro.org> While the parititions can be resized using Rob's scripts in order to have the userdata generation be similar to how existing Android builds work, add a config for the userdata size. The default is the same as the previous build size. Cc: Rob Herring Cc: Sumit Semwal Cc: Vishal Bhoj Cc: Amit Pundir Signed-off-by: John Stultz --- BoardConfig.mk | 1 - Kconfig | 6 ++++++ configs/db410c_defconfig | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/BoardConfig.mk b/BoardConfig.mk index 11a1f20..fb5bfc5 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -29,7 +29,6 @@ BOARD_HOSTAPD_DRIVER := NL80211 CONFIG_DRIVER_NL80211 := y TARGET_USERIMAGES_USE_EXT4 := true -BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 BOARD_FLASH_BLOCK_SIZE := 512 diff --git a/Kconfig b/Kconfig index 4b355ca..555127a 100644 --- a/Kconfig +++ b/Kconfig @@ -172,6 +172,12 @@ config BOARD_SYSTEMIMAGE_PARTITION_SIZE help BOARD_SYSTEMIMAGE_PARTITION_SIZE +config BOARD_USERDATAIMAGE_PARTITION_SIZE + int "Userdata Image Size" + default 576716800 + help + BOARD_USERDATAIMAGE_PARTITION_SIZE + config TARGET_USERIMAGES_SPARSE_EXT_DISABLED bool "Disable sparse filesystem images" help diff --git a/configs/db410c_defconfig b/configs/db410c_defconfig index 1012063..e523327 100644 --- a/configs/db410c_defconfig +++ b/configs/db410c_defconfig @@ -1,6 +1,7 @@ CONFIG_PRODUCT_DEVICE="db410c" CONFIG_DALVIK_VM_HEAPSIZE=32 CONFIG_BOARD_SYSTEMIMAGE_PARTITION_SIZE=880803840 +CONFIG_BOARD_USERDATAIMAGE_PARTITION_SIZE=5653544960 CONFIG_KERNEL=y CONFIG_KERNEL_PATH="device/linaro/generic-kernels/android-db410c-qcomlt-4.9.gz-dtb" CONFIG_BOARD_KERNEL_CMDLINE="androidboot.selinux=permissive firmware_class.path=/system/vendor/firmware/"