From patchwork Fri Jan 27 10:00:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Delaunay X-Patchwork-Id: 720557 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3v8vSZ3ZmMz9t1L for ; Fri, 27 Jan 2017 21:01:18 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="NrxHt9fI"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 21758A75F9; Fri, 27 Jan 2017 11:01:13 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K6VcYF0NF1ck; Fri, 27 Jan 2017 11:01:12 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 83B12B387C; Fri, 27 Jan 2017 11:01:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 31FC3A75D2 for ; Fri, 27 Jan 2017 11:01:00 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F7XbodtWlzx8 for ; Fri, 27 Jan 2017 11:01:00 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by theia.denx.de (Postfix) with ESMTPS id 0363FA75C2 for ; Fri, 27 Jan 2017 11:00:55 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id d140so57284230wmd.2 for ; Fri, 27 Jan 2017 02:00:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2kyCaPKbzFImPv7U2iIVGUy900BRBTKkTjGHQBhSQRo=; b=NrxHt9fII9EMhxEOTlNiU2PLV1SrysMoDUMx2IQ2DW62ldlmiRyzNrWLhVPKV/RyX7 ibExMUfxOXP9h3m3b8MHRvEbwjziy6wanqc49lIp11fJbFEQ5Fl+jHuQ4w/6xwY/1r1g 8jGkWW8zxY/wK58+AhGzNzwjZ+mTWeLm+kqNu2glzUg9KXHv/DfNKtWtZI9+64AOyurQ nIFI0Lcbq39Ra7LdJ7Wq1haeqIEH15nHlbiv8iGIkyKQ6XHWGi/lzUvcrdbllSyxfQKg JP/humQpsVuLuAHjE2mCa12DymOqGkkqe0qcqVnnpfv67dPXYkDMEvYgf9IhuGXHc29F oJhA== 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=2kyCaPKbzFImPv7U2iIVGUy900BRBTKkTjGHQBhSQRo=; b=NTZvrWNLJ8XWj/Lx1U76yx0chi1DUIWqeh44cHi24ZbtVzol42bapNaZcsZokTvA6l PiUnuaM2t2PlpW9nUp/cN7dkc0i7fJLNQA9ykiK1H1r9UnEefzpcVaU4Ho2Y6lpoiNpa HsV5SGx9okpOLRHwbystpJrTGaWP/pjNk1yhBLhVrhsnJyP1FVVFbrArQ/MTX99VoJOi 9th3jbW6A90JqByLj7F5pkOisDHg79oYYj/GtPfr5zEme9yhEJl105GJoRp7OPWj0sbE eM3cjaIPrI2V2IGDEYlFIBoCOd2pNRpsSula8Iq9QFKRi4UUiCGNoCWBN2wXSE5WWblE Y7Fw== X-Gm-Message-State: AIkVDXLKQ/MFh1WomlMb1mfUpa9Ag4qxB0WszxnbRMtTrp8OdeLJixY0J3EqsnySGptwcQ== X-Received: by 10.28.11.10 with SMTP id 10mr2181175wml.109.1485511255287; Fri, 27 Jan 2017 02:00:55 -0800 (PST) Received: from lmenx29a.st.com. ([37.168.201.88]) by smtp.gmail.com with ESMTPSA id y97sm2953559wmh.24.2017.01.27.02.00.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Jan 2017 02:00:54 -0800 (PST) From: Patrick Delaunay To: u-boot@lists.denx.de Date: Fri, 27 Jan 2017 11:00:35 +0100 Message-Id: <1485511243-736-2-git-send-email-patrick.delaunay73@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1485511243-736-1-git-send-email-patrick.delaunay73@gmail.com> References: <1485511243-736-1-git-send-email-patrick.delaunay73@gmail.com> Cc: Tom Rini , Christophe Kerello , Patrick Delaunay , Patrick Delaunay Subject: [U-Boot] [PATCH v5 1/9] disk: convert CONFIG_PARTITIONS to Kconfig X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: Patrick Delaunay Signed-off-by: Patrick Delaunay --- Changes in v5: - split the initial commit for each parameter to check that each modification is size neutral - add SPL config for PARTITION_UUIDS (deactivated in some SPL) - solve issue with CONFIG_LIB_UUID in include/config_fallbacks.h => CONFIG_IS_ENABLED need to be used to have size neutral patch - recompute all defconfig and check that patches are size neutral Changes in v4: - rebase on v2017.01 - correct many issue in defconfig update (missing some "is not set") - check with buildman that the patch is size neutral Changes in v3: change Kconfig to reduce impact in platform defconfig after Tom Rini review - default y for all SPL config - MAC DOS ISO and EFI enable by default for some platforms - DOS enable with command FAT or USB storage Changes in v2: - solve compilation issue for config_fallback.h (CONFIG_IS_ENABLED unknown) - rebase on master branch - default y for DOS partition as proposed by Tom Rini - removed not related changes in defconfig files Kconfig | 2 ++ disk/Kconfig | 22 ++++++++++++++++++++++ include/config_defaults.h | 1 - scripts/config_whitelist.txt | 1 - 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 disk/Kconfig diff --git a/Kconfig b/Kconfig index a44ac91..de1dcb9 100644 --- a/Kconfig +++ b/Kconfig @@ -313,6 +313,8 @@ source "common/Kconfig" source "cmd/Kconfig" +source "disk/Kconfig" + source "dts/Kconfig" source "net/Kconfig" diff --git a/disk/Kconfig b/disk/Kconfig new file mode 100644 index 0000000..966553c --- /dev/null +++ b/disk/Kconfig @@ -0,0 +1,22 @@ + +menu "Partition Types" + +config PARTITIONS + bool "Enable Partition Labels (disklabels) support" + default y + help + Partition Labels (disklabels) Supported: + Zero or more of the following: + - CONFIG_MAC_PARTITION Apple's MacOS partition table. + - CONFIG_DOS_PARTITION MS Dos partition table, traditional on the + Intel architecture, USB sticks, etc. + - CONFIG_ISO_PARTITION ISO partition table, used on CDROM etc. + - CONFIG_EFI_PARTITION GPT partition table, common when EFI is the + bootloader. Note 2TB partition limit; see + disk/part_efi.c + - CONFIG_MTD_PARTITIONS Memory Technology Device partition table. + If IDE or SCSI support is enabled (CONFIG_CMD_IDE or CONFIG_SCSI) + you must configure support for at least one non-MTD partition type + as well. + +endmenu diff --git a/include/config_defaults.h b/include/config_defaults.h index ad08c1d..7ef928b 100644 --- a/include/config_defaults.h +++ b/include/config_defaults.h @@ -18,6 +18,5 @@ #define CONFIG_GZIP 1 #define CONFIG_ZLIB 1 -#define CONFIG_PARTITIONS 1 #endif diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 00ee3f1..16849f1 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -3333,7 +3333,6 @@ CONFIG_PALMAS_SMPS7_FPWM CONFIG_PALMAS_USB_SS_PWR CONFIG_PANIC_HANG CONFIG_PARAVIRT -CONFIG_PARTITIONS CONFIG_PARTITION_TYPE_GUID CONFIG_PARTITION_UUIDS CONFIG_PATA_BFIN