diff options
author | Francis Laniel <francis.laniel@amarulasolutions.com> | 2023-11-07 23:41:20 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-08 17:59:04 -0500 |
commit | a16d4602021ee049da18eb76123d8f006126b36f (patch) | |
tree | 7cb5746f45b2d44efad430edf44c14aed4fecb73 | |
parent | 43dcb406e8a269b170b0f7cae323f89edf6171b6 (diff) | |
download | u-boot-TEST/v11-hush-2021.tar.gz |
DO NOT MERGE: only to make CI happyTEST/v11-hush-2021
This commit set CONFIG_HUSH_PARSER_2021 as the default to trigger the CI with
this parser.
Nonetheless, the keymile (i.e. VENDOR_KM) board family is not compatible with
new 2021 hush parser.
Indeed, This boards used set_local_var() to store some variables as local shell.
They then used get_local_var() to retrieve the variables values.
Sadly, this two functions do not exist with CONFIG_HUSH_PARSER_2021.
A patch was proposed to use environment variables rather than local variables
but it does not tackle the problem, so complementary work is needed to make
this boards use CONFIG_HUSH_PARSER_2021 [1].
We also remove a #undef of CONFIG_FEATURE_SH_STANDALONE as it does not exist in
U-Boot and causes troubles in the CI.
We also set CONFIG_LTO for kirkwoord sheevaplug and phytec bk4r1, otherwise it
hits its board size limit.
We also disable some check for pylint as it was not able to find future for
commit object.
[1] https://marc.info/?l=u-boot&m=165541917618725&w=2
Acked-by: Tony Dinh <mibodhi@gmail.com>
Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com>
-rw-r--r-- | cmd/Kconfig | 3 | ||||
-rw-r--r-- | common/cli_hush_upstream.c | 1 | ||||
-rw-r--r-- | configs/sheevaplug_defconfig | 1 | ||||
-rw-r--r-- | tools/patman/series.py | 4 |
4 files changed, 7 insertions, 2 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index e24435baa54..de37eb42dd4 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -27,7 +27,7 @@ menu "Hush flavor to use" config HUSH_OLD_PARSER bool "Use hush old parser" - default y + default y if VENDOR_KM help This option enables the old flavor of hush based on hush Busybox from 2005. @@ -36,6 +36,7 @@ menu "Hush flavor to use" config HUSH_2021_PARSER bool "Use hush 2021 parser" + default y if !VENDOR_KM help This option enables the new flavor of hush based on hush Busybox from 2021. diff --git a/common/cli_hush_upstream.c b/common/cli_hush_upstream.c index 709c055d2fd..243710ab517 100644 --- a/common/cli_hush_upstream.c +++ b/common/cli_hush_upstream.c @@ -427,7 +427,6 @@ #include "NUM_APPLETS.h" #if NUM_APPLETS == 1 /* STANDALONE does not make sense, and won't compile */ -# undef CONFIG_FEATURE_SH_STANDALONE # undef ENABLE_FEATURE_SH_STANDALONE # undef IF_FEATURE_SH_STANDALONE # undef IF_NOT_FEATURE_SH_STANDALONE diff --git a/configs/sheevaplug_defconfig b/configs/sheevaplug_defconfig index 2e4901b840c..365f779cc8c 100644 --- a/configs/sheevaplug_defconfig +++ b/configs/sheevaplug_defconfig @@ -16,6 +16,7 @@ CONFIG_ENV_OFFSET=0x80000 CONFIG_DEFAULT_DEVICE_TREE="kirkwood-sheevaplug" CONFIG_IDENT_STRING="\nMarvell-Sheevaplug" CONFIG_SYS_LOAD_ADDR=0x800000 +CONFIG_LTO=y CONFIG_HAS_BOARD_SIZE_LIMIT=y CONFIG_BOARD_SIZE_LIMIT=524288 CONFIG_BOOTDELAY=3 diff --git a/tools/patman/series.py b/tools/patman/series.py index 6866e1dbd08..f99818e33ad 100644 --- a/tools/patman/series.py +++ b/tools/patman/series.py @@ -316,6 +316,8 @@ class Series(dict): # Show progress any commits that are taking forever lastlen = 0 while True: + # pylint does not find future which is set above. + # pylint: disable=E1101 left = [commit for commit in self.commits if not commit.future.done()] if not left: @@ -333,6 +335,8 @@ class Series(dict): print('Cc processing complete') for commit in self.commits: + # pylint does not find future which is set above. + # pylint: disable=E1101 cc = commit.future.result() all_ccs += cc print(commit.patch, '\0'.join(sorted(set(cc))), file=fd) |