Remove upstreamed patches: 010-menu-fix-the-logic-checking-whether-ESC-key-is-press.patch [1] 011-menu-add-support-to-check-if-menu-needs-to-be-reprin.patch [2] 012-bootmenu-add-reprint-check.patch [3] Remove outdated patches: 455-arm-provide-noncached_set_region-prototype-to-fix-build.patch Some patches have been manually rebased to match the upstream changes. This patch also fixes the dtc warning for reserved-memory dts node. If #address-cells and #size-cells are not same as the root node definitions, the dtc will complain about it. All defconfigs are refreshed by `make "$board"_defconfig` and `make savedefconfig`. [1]ddac69885e
[2]ccdd7948e2
[3]599652cff1
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
28 lines
750 B
Diff
28 lines
750 B
Diff
From f6a4130959af1e6d13d616203e42ed3c894666ad Mon Sep 17 00:00:00 2001
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
Date: Mon, 25 Jul 2022 17:00:00 +0800
|
|
Subject: [PATCH 60/71] cmd: ubi: allow creating volume with all free spaces
|
|
|
|
Allow creating volume with all free spaces by giving a negative size value.
|
|
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
---
|
|
cmd/ubi.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
--- a/cmd/ubi.c
|
|
+++ b/cmd/ubi.c
|
|
@@ -226,7 +226,11 @@ int ubi_create_vol(char *volume, int64_t
|
|
|
|
req.vol_id = vol_id;
|
|
req.alignment = 1;
|
|
- req.bytes = size;
|
|
+
|
|
+ if (size < 0)
|
|
+ req.bytes = ubi->avail_pebs * ubi->leb_size;
|
|
+ else
|
|
+ req.bytes = size;
|
|
|
|
strcpy(req.name, volume);
|
|
req.name_len = strlen(volume);
|