From 1c200bf5d8de64f9808d40bc8def7333a5f0bd55 Mon Sep 17 00:00:00 2001 From: Xiangyi Meng Date: Sat, 22 Jan 2022 17:07:49 +0800 Subject: [PATCH] A tricky fix for binname/appname not matched bug (#80 and #83). Signed-off-by: Xiangyi Meng --- kraft/app/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kraft/app/app.py b/kraft/app/app.py index dff17d89..715e730d 100644 --- a/kraft/app/app.py +++ b/kraft/app/app.py @@ -355,6 +355,10 @@ def match_plat(plat, target): try: return_code = self.make([ ('UK_DEFCONFIG=%s' % path), + # see #80 and #83, the fallback behavior once name field is missing in the original kraft.yaml + # is to use the parent folder name, and the missing field will be automatically complemented + # (ensured by config.load_config() implementation) + ('CONFIG_UK_NAME=%s' % self.config.name), 'defconfig' ]) finally: