From patchwork Thu Mar 14 19:21:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Chapuis X-Patchwork-Id: 40985 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1221DC54E5D for ; Thu, 14 Mar 2024 19:25:32 +0000 (UTC) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.web10.1713.1710444325360822445 for ; Thu, 14 Mar 2024 12:25:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dyEHQt42; spf=pass (domain: gmail.com, ip: 209.85.221.54, mailfrom: chris.chapuis@gmail.com) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-33ec8aa8b6bso628997f8f.3 for ; Thu, 14 Mar 2024 12:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710444323; x=1711049123; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V3BItnYMHZB/yzL0L14c1QH+/xoNvG15Vb5uL/j76w0=; b=dyEHQt42DcwqU3z8/xOdBTscFCryMdlsmpkxcfWWvM9whgGUHvvfjpFoChaDISqLDi NYiBBNs0NbEbEYSfolcjTve11U39+FkVtzHU3i3nHKhg7NpWdLaejEMtClbWv5B16dr0 B+LiAkM0IWwV8E6X5up+mv+w8uHT7ML9kzWZOYaeFr1BeHkqG7dsn3c/rBCUBBb6VEBl yEcsQYQxztq4fVCY5SP1qiBeJVxc84WzJCwM127ylIBjzwC+HTjuyYSHXDMU8UL+44P+ cHr8w41A8ntMXM0omD6nNHIKHu5uKmVTsCT3m1gkMuBbJ16BphLSBgWVGJuXniihIw+6 VozA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710444323; x=1711049123; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V3BItnYMHZB/yzL0L14c1QH+/xoNvG15Vb5uL/j76w0=; b=dTw0G+p/NbvjkeukbKs69gpRSO5OrLwJkUsKXmSSAY5W5bGf7eRGZ71OyA7Qlw0Gh2 mfo+OfoDPIWm/pkYrWUDYAZxojnwMJpJwLoEsQNvrJ3xHywq99AlGS4BTeob9/nJu/9U BjM31Jd5hKgpS9EYWXNcMz70vmr575dN98Iwu1eIsnR4ekMQqSNe9kmw7h6VFLTVZWNk ngk4zxWW1W7KQatTHvdBfPsfeRWKzYfVmW19f9V8ziF1l2OgmZOIXTPY3UzoUZO3pvHN S3BdP0MJ1oe7kZveFyVSZ70om2Lrg1IDiQKEQYW/JgaTnJXRjy2209MKSf5oZ+46osOb xhWg== X-Gm-Message-State: AOJu0Ywkv5IMOgjBuY/yVjnvjigAaPGBgU8Oyu3BjPDQcU/FfyaEwvsd P0gbVrWGdnVWlkOnsR0McvWhLctQqEYJsrxBpntNhqE9bNi/abNvJ3G8UHX+ X-Google-Smtp-Source: AGHT+IG3Omfm4t/WPJmxNxKnBq92P5SV47jdrDg+Zh7Usbq5orQxTTd2HilFouy8w2y9QSNg/gZOog== X-Received: by 2002:a5d:6a90:0:b0:33e:c677:3272 with SMTP id s16-20020a5d6a90000000b0033ec6773272mr869939wru.56.1710444323315; Thu, 14 Mar 2024 12:25:23 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:5d9:6330:4d5:74f6:de66:f26e]) by smtp.gmail.com with ESMTPSA id o14-20020adfe80e000000b0033e8c50fc3fsm1363103wrm.90.2024.03.14.12.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 12:25:22 -0700 (PDT) From: Christophe Chapuis To: openembedded-devel@lists.openembedded.org Cc: Marek Vasut , Christophe Chapuis Subject: [meta-oe][PATCHv2 1/3] lvgl: fix typo and install lv_conf.h Date: Thu, 14 Mar 2024 20:21:51 +0100 Message-ID: <20240314192153.202513-1-chris.chapuis@gmail.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 14 Mar 2024 19:25:32 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/109318 * Fix a typo in the first sed instruction, and therefore the #if 0 is never changed to #if 1 at the beginning of lv_conf.h. * Add an install append to copy the generated lv_conf.h as part of the lvgl package, so that it will be found and used by the recipes that want to use lvgl. Signed-off-by: Christophe Chapuis Reviewed-by: Marek Vasut --- meta-oe/recipes-graphics/lvgl/lv-conf.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index cb676ac62..cd14412e1 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc @@ -24,7 +24,7 @@ do_configure:append() { # If there is a configuration template, start from that [ -r "${S}/lv_conf_template.h" ] && cp -Lv "${S}/lv_conf_template.h" "${S}/lv_conf.h" - sed -e "s|#if 0 .*Set it to \"1\" to enable the content.*|#if 1 // Enabled by ${PN}|g" \ + sed -e "s|#if 0 .*Set it to \"1\" to enable content.*|#if 1 // Enabled by ${PN}|g" \ \ -e "s|\(^#define LV_USE_LINUX_DRM \).*|#define LV_USE_LINUX_DRM ${LVGL_CONFIG_USE_DRM}|g" \ \ @@ -52,3 +52,8 @@ do_configure:append() { \ -i "${S}/lv_conf.h" } + +do_install:append() { + install -d "${D}${includedir}/lvgl" + install -m 0644 "${S}/lv_conf.h" "${D}${includedir}/lvgl/lv_conf.h" +} From patchwork Thu Mar 14 19:21:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Chapuis X-Patchwork-Id: 40987 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15453C54E60 for ; Thu, 14 Mar 2024 19:25:32 +0000 (UTC) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by mx.groups.io with SMTP id smtpd.web11.1675.1710444326230538988 for ; Thu, 14 Mar 2024 12:25:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y9UQdQsq; spf=pass (domain: gmail.com, ip: 209.85.128.45, mailfrom: chris.chapuis@gmail.com) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-413eb712c3fso8505925e9.2 for ; Thu, 14 Mar 2024 12:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710444324; x=1711049124; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aygBXATKJlNCDeJ4zsV3zAgrJBzWXuB1efX/lmg9Glo=; b=Y9UQdQsqxRab8exxGAzmFizlZJZOqHt5jX4wlbCyQjQVeR6Mhl0WoH0PXlnzRHYDWB bUDwM7+/FQjTfJtJkeihz/H+o+ir6gpUtbsVMsrpAL3WiFfdjeDxdTpx4sDDwlVSMl8t lHeDL4FXlKM+jpKlewFwmgnCdT0dgziU+/ZlUayGEhDBeSAtvK9xzEb8IEQkh97Wq6Qp uNGe+U52taToC/Lj3l85QtgGzcwIaA9Yr1u/L6nlGVAB15DpLyG8HQ9oJuuIH6MZPO68 DeC+4qcEqu73nDBCGXItx6ooofr/RQ0Cmkc+bE38mNEqbV9EA4DWdlfWcItFZ96reKVR BNgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710444324; x=1711049124; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aygBXATKJlNCDeJ4zsV3zAgrJBzWXuB1efX/lmg9Glo=; b=GFj/IoYq6XQEaxFdiPsM8BUXE4/JMEmKvkYup9XQP323xwWsjfxmDIdD7I8v7OYFaB MBnPLgYYGYmKfIOitD8dbims5WE/wlEahOao8kCaBdkY2NtCfdtgpdEj5guA7APohl6I qKsUCsc3pyiL4IvECQN+IzOnkJfEvFQ9ZUdg/0PnrR/XMPMOvjb+0ELo+m6FDv7ebDFc BXk1XVH697Q/jqXMhnXVinz++13P/OdmOndTY6pJ5HPQPYaEXdSVXlitYBCLN7yE8YGr 2bVBICsop6RW7W7iWMMUdp27htq4Q0bF2FLtl9xSNVYR6jG6yKPb2L+M/MSg6LWuVdL4 +Glg== X-Gm-Message-State: AOJu0YwdEhq6Y2Sk/xk/0JeWneVcVu2tL78Zcc2ZeUGWLDWDpsOOTGPx HZPhVRqL83CZ5khvCCFjUS0cpiYqY3fQSdk8OmjrYJwo+0j9jjAOqwVxNFyC X-Google-Smtp-Source: AGHT+IFP63w/vebQDxpFDKcSZoiQ/3odkda8DPj5dKcX03ZhH3jtRf3U+JFocUmV/24yRert58GlhQ== X-Received: by 2002:a05:6000:245:b0:33e:bdea:629a with SMTP id m5-20020a056000024500b0033ebdea629amr832818wrz.67.1710444323903; Thu, 14 Mar 2024 12:25:23 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:5d9:6330:4d5:74f6:de66:f26e]) by smtp.gmail.com with ESMTPSA id o14-20020adfe80e000000b0033e8c50fc3fsm1363103wrm.90.2024.03.14.12.25.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 12:25:23 -0700 (PDT) From: Christophe Chapuis To: openembedded-devel@lists.openembedded.org Cc: Marek Vasut , Christophe Chapuis Subject: [meta-oe][PATCHv2 2/3] lvgl: remove useless FILES include Date: Thu, 14 Mar 2024 20:21:52 +0100 Message-ID: <20240314192153.202513-2-chris.chapuis@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240314192153.202513-1-chris.chapuis@gmail.com> References: <20240314192153.202513-1-chris.chapuis@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 14 Mar 2024 19:25:32 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/109319 As ${includedir}${PN} is already listed in FILES, there is no need to add one of its subdirectories. Signed-off-by: Christophe Chapuis Reviewed-by: Marek Vasut --- meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb | 1 - 1 file changed, 1 deletion(-) diff --git a/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb b/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb index b84fc5a3d..0b7eba538 100644 --- a/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb +++ b/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb @@ -28,7 +28,6 @@ require lv-conf.inc FILES:${PN}-dev += "\ ${includedir}/${PN}/ \ - ${includedir}/${PN}/lvgl/ \ " SOLIBS = ".so" FILES_SOLIBSDEV = "" From patchwork Thu Mar 14 19:21:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Chapuis X-Patchwork-Id: 40986 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1918DC54E68 for ; Thu, 14 Mar 2024 19:25:32 +0000 (UTC) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mx.groups.io with SMTP id smtpd.web10.1714.1710444326372655685 for ; Thu, 14 Mar 2024 12:25:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NMzebgT0; spf=pass (domain: gmail.com, ip: 209.85.221.47, mailfrom: chris.chapuis@gmail.com) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-33e1d327595so884354f8f.2 for ; Thu, 14 Mar 2024 12:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710444324; x=1711049124; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vfYR2mSMTSgrA4MOh8aboXjK1YkqXJrLfH7pS2l4JnM=; b=NMzebgT0uWH6x2NBgnxGd3ggMKWYKvcNUyCIf+rNR6uvoVYb+tHi8F33tYVzLGm6WU Yr+3BzpiTUBa6tKWjRVAER8gnwwgFeskQPC5J6RqoNKR3KaZkF1dFqdHOMTzZ3vHFstB xDjiIHFCWPWFqIWvNzDlyemGjKKFqyWEH4T3yCTNF2VjBpcuAjihGAm1L6RqSPkznpW4 W0PfyqZVlYOXxN39BflkYqls2bQywk1m7IsHxSFJVA2bv1TIh84eKeHOin+bpjcbVxCX 27/2KyJ2wudYE0DHBMrtUXVXP5CXUBvMEdFxgKsPygZiF/YR3TvjqENVUt9zBpwJn8cT 89Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710444324; x=1711049124; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vfYR2mSMTSgrA4MOh8aboXjK1YkqXJrLfH7pS2l4JnM=; b=XZiQZejwIulyZ/MtLKLSKlbSkqYGwlMFveQD2Wvy8RB/RY6g/ZFOU11TyhS3+beRHJ k6aAJHnWLwycEsK24scnrBvL/pnsIpjrgetkiC3K7zZ+ZIvalsDbvn815IPq2nqVRRtV exoU7hec5mQWpveodEoWSYWQbl4GgzYyVbU0f3G0UwP3VsoyaM6e9lzduVxistUeuf8c fMbxMWr3XvqwYbt48dP7X0xrSs0IQBZkMAYx286MAeoP4YrN6N+fjjnPF/vcNRFW39PP YM5QwnuUoA1ZV4yVgHrsgbRBateHcrM0d1lIA3gAdR0D9TQA2KUk42uQAVuznRp+CqZl jxLQ== X-Gm-Message-State: AOJu0Yyrzf/BVmNdyvJlD2+VAycbnWxGnR6V7iTwcRg+/aJ00vzHquAz WrfBGQpAVRWpz8gvWa9WOYRo5lC7EyDKW2WOQ4jNbbxV/Ptiph1rKSqmko9h X-Google-Smtp-Source: AGHT+IGOcBwcksj+x5bijmXsD+nIIlwL3fcAH5RPVGv91R7SLUNlixMNECZq7Z4f2LRs3UZr4J60Gw== X-Received: by 2002:a5d:45c1:0:b0:33e:cf43:fdb5 with SMTP id b1-20020a5d45c1000000b0033ecf43fdb5mr457384wrs.0.1710444324424; Thu, 14 Mar 2024 12:25:24 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:5d9:6330:4d5:74f6:de66:f26e]) by smtp.gmail.com with ESMTPSA id o14-20020adfe80e000000b0033e8c50fc3fsm1363103wrm.90.2024.03.14.12.25.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 12:25:24 -0700 (PDT) From: Christophe Chapuis To: openembedded-devel@lists.openembedded.org Cc: Marek Vasut , Christophe Chapuis Subject: [meta-oe][PATCHv2 3/3] lvgl: add more variables to lv-conf.inc Date: Thu, 14 Mar 2024 20:21:53 +0100 Message-ID: <20240314192153.202513-3-chris.chapuis@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240314192153.202513-1-chris.chapuis@gmail.com> References: <20240314192153.202513-1-chris.chapuis@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 14 Mar 2024 19:25:32 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/109320 As it can be usefull to customize these other variables, let's add them in lv-conf.inc. Also, fix the install path to use ${PN} instead of "lvgl". Signed-off-by: Christophe Chapuis --- meta-oe/recipes-graphics/lvgl/lv-conf.inc | 49 +++++++++++++++-------- 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc index cd14412e1..088842490 100644 --- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc +++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc @@ -12,8 +12,17 @@ LVGL_CONFIG_USE_SDL = "${@bb.utils.contains('PACKAGECONFIG', 'sdl', '1', '0', d) LVGL_CONFIG_SDL_FULLSCREEN ?= "0" LVGL_CONFIG_LV_MEM_CUSTOM ?= "0" +LVGL_CONFIG_LV_MEM_SIZE ?= "(64 * 1024U)" LVGL_CONFIG_LV_COLOR_DEPTH ?= "32" +LVGL_CONFIG_LV_USE_LOG ?= "0" +LVGL_CONFIG_LV_LOG_LEVEL ?= "LV_LOG_LEVEL_WARN" +LVGL_CONFIG_LV_LOG_PRINTF ?= "0" + +LVGL_CONFIG_LV_USE_FONT_COMPRESSED ?= "0" + +LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0" + DEBUG_BUILD ??= "0" ALLOW_EMPTY:${PN} = "1" @@ -26,34 +35,42 @@ do_configure:append() { sed -e "s|#if 0 .*Set it to \"1\" to enable content.*|#if 1 // Enabled by ${PN}|g" \ \ - -e "s|\(^#define LV_USE_LINUX_DRM \).*|#define LV_USE_LINUX_DRM ${LVGL_CONFIG_USE_DRM}|g" \ + -e "s|\(^#define LV_USE_LINUX_DRM \).*|\1${LVGL_CONFIG_USE_DRM}|g" \ \ - -e "s|\(^#define LV_USE_LINUX_FBDEV \).*|#define LV_USE_LINUX_FBDEV ${LVGL_CONFIG_USE_FBDEV}|g" \ + -e "s|\(^#define LV_USE_LINUX_FBDEV \).*|\1${LVGL_CONFIG_USE_FBDEV}|g" \ \ - -e "s|\(^#define LV_USE_SDL \).*|#define LV_USE_SDL ${LVGL_CONFIG_USE_SDL}|g" \ - -e "s|\(^#define LV_USE_DRAW_SDL \).*|#define LV_USE_DRAW_SDL ${LVGL_CONFIG_USE_SDL}|g" \ - -e "s|\(^ #define LV_SDL_BUF_COUNT \).*| #define LV_SDL_BUF_COUNT 2|g" \ - -e "s|\(^ #define LV_SDL_FULLSCREEN \).*| #define LV_SDL_FULLSCREEN ${LVGL_CONFIG_SDL_FULLSCREEN}|g" \ + -e "s|\(^#define LV_USE_SDL \).*|\1${LVGL_CONFIG_USE_SDL}|g" \ + -e "s|\(^#define LV_USE_DRAW_SDL \).*|\1${LVGL_CONFIG_USE_SDL}|g" \ + -e "s|\(^ \+#define LV_SDL_BUF_COUNT \).*|\1 2|g" \ + -e "s|\(^ \+#define LV_SDL_FULLSCREEN \).*|\1${LVGL_CONFIG_SDL_FULLSCREEN}|g" \ \ - -e "s|\(^#define LV_COLOR_DEPTH \).*|#define LV_COLOR_DEPTH ${LVGL_CONFIG_LV_COLOR_DEPTH}|g" \ - -e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ + -e "s|\(^#define LV_COLOR_DEPTH \).*|\1${LVGL_CONFIG_LV_COLOR_DEPTH}|g" \ + -e "s|\(#define LV_MEM_CUSTOM .*\).*|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \ + -e "s|\(^ \+#define LV_MEM_SIZE \).*|\1${LVGL_CONFIG_LV_MEM_SIZE}|g" \ \ -e "s|\(#define LV_TICK_CUSTOM \).*|\1 1|g" \ -e "s|\(#define LV_TICK_CUSTOM_INCLUDE \).*|\1 |g" \ -e "s|\(#define LV_TICK_CUSTOM_SYS_TIME_EXPR \).*|extern uint32_t custom_tick_get(void);\n\1 (custom_tick_get())|g" \ \ - -e "s|\(^#define LV_USE_EVDEV \).*|#define LV_USE_EVDEV ${LVGL_CONFIG_USE_EVDEV}|g" \ + -e "s|\(^#define LV_USE_EVDEV \).*|\1${LVGL_CONFIG_USE_EVDEV}|g" \ + \ + -e "s|\(^#define LV_USE_ASSERT_NULL \).*|\1${DEBUG_BUILD}|g" \ + -e "s|\(^#define LV_USE_ASSERT_MALLOC \).*|\1${DEBUG_BUILD}|g" \ + -e "s|\(^#define LV_USE_ASSERT_STYLE \).*|\1${DEBUG_BUILD}|g" \ + -e "s|\(^#define LV_USE_ASSERT_MEM_INTEGRITY \).*|\1${DEBUG_BUILD}|g" \ + -e "s|\(^#define LV_USE_ASSERT_OBJ \).*|\1${DEBUG_BUILD}|g" \ + \ + -e "s|\(^#define LV_USE_LOG \).*|\1${LVGL_CONFIG_LV_USE_LOG}|g" \ + -e "s|\(^ \+#define LV_LOG_LEVEL \).*|\1${LVGL_CONFIG_LV_LOG_LEVEL}|g" \ + -e "s|\(^ \+#define LV_LOG_PRINTF \).*|\1${LVGL_CONFIG_LV_LOG_PRINTF}|g" \ \ - -e "s|\(^#define LV_USE_ASSERT_NULL \).*|#define LV_USE_ASSERT_NULL ${DEBUG_BUILD}|g" \ - -e "s|\(^#define LV_USE_ASSERT_MALLOC \).*|#define LV_USE_ASSERT_MALLOC ${DEBUG_BUILD}|g" \ - -e "s|\(^#define LV_USE_ASSERT_STYLE \).*|#define LV_USE_ASSERT_STYLE ${DEBUG_BUILD}|g" \ - -e "s|\(^#define LV_USE_ASSERT_MEM_INTEGRITY \).*|#define LV_USE_ASSERT_MEM_INTEGRITY ${DEBUG_BUILD}|g" \ - -e "s|\(^#define LV_USE_ASSERT_OBJ \).*|#define LV_USE_ASSERT_OBJ ${DEBUG_BUILD}|g" \ + -e "s|\(^#define LV_USE_FONT_COMPRESSED \).*|\1${LVGL_CONFIG_LV_USE_FONT_COMPRESSED}|g" \ + -e "s|\(^ \+#define LV_THEME_DEFAULT_DARK \).*|\1${LVGL_CONFIG_LV_THEME_DEFAULT_DARK}|g" \ \ -i "${S}/lv_conf.h" } do_install:append() { - install -d "${D}${includedir}/lvgl" - install -m 0644 "${S}/lv_conf.h" "${D}${includedir}/lvgl/lv_conf.h" + install -d "${D}${includedir}/${PN}" + install -m 0644 "${S}/lv_conf.h" "${D}${includedir}/${PN}/lv_conf.h" }