diff mbox series

[1/2] bitbake.conf: Add weak default value for IMAGE_ROOTFS_MAXSIZE

Message ID 20250206124941.342980-2-pascal.weisser.ext@karlstorz.com
State New
Headers show
Series This patch series has two goals. | expand

Commit Message

Weisser, Pascal Feb. 6, 2025, 12:49 p.m. UTC
This would help the recipe linter oelint-adv from meta-sca layer to add
the variable IMAGE_ROOTFS_MAXSIZE to the list of known variables.

See https://github.com/priv-kweihmann/oelint-adv/issues/695By for details.

Setting the weak default value to the empty string actually imposes no
limit on the image size per default.

Signed-off-by: Weisser, Pascal <pascal.weisser.ext@karlstorz.com>
---
 meta/conf/bitbake.conf | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Alexander Kanavin Feb. 6, 2025, 12:53 p.m. UTC | #1
I'm sorry, but we do not endorse that linter, and do not accommodate
its (sometimes strange) demands. You need to fix the linter, not
oe-core.

Alex

On Thu, 6 Feb 2025 at 13:50, Weisser, Pascal.ext via
lists.openembedded.org
<Pascal.Weisser.ext=karlstorz.com@lists.openembedded.org> wrote:
>
> This would help the recipe linter oelint-adv from meta-sca layer to add
> the variable IMAGE_ROOTFS_MAXSIZE to the list of known variables.
>
> See https://github.com/priv-kweihmann/oelint-adv/issues/695By for details.
>
> Setting the weak default value to the empty string actually imposes no
> limit on the image size per default.
>
> Signed-off-by: Weisser, Pascal <pascal.weisser.ext@karlstorz.com>
> ---
>  meta/conf/bitbake.conf | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 8b607088c6..0a9e27a27f 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -866,6 +866,10 @@ MACHINE_TASK_PROVIDER ?= "${DEFAULT_TASK_PROVIDER}"
>  # and no effect if less than it.
>  IMAGE_ROOTFS_SIZE ??= "65536"
>
> +# The maximum size in Kbytes for the generated image.
> +# Per default no limit is imposed.
> +IMAGE_ROOTFS_MAXSIZE ??= ""
> +
>  # Forcefully set CACHE now so future changes to things like
>  # MACHINE don't change the path to the cache
>  CACHE := "${CACHE}"
> --
> 2.48.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#210931): https://lists.openembedded.org/g/openembedded-core/message/210931
> Mute This Topic: https://lists.openembedded.org/mt/111030916/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 8b607088c6..0a9e27a27f 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -866,6 +866,10 @@  MACHINE_TASK_PROVIDER ?= "${DEFAULT_TASK_PROVIDER}"
 # and no effect if less than it.
 IMAGE_ROOTFS_SIZE ??= "65536"
 
+# The maximum size in Kbytes for the generated image.
+# Per default no limit is imposed.
+IMAGE_ROOTFS_MAXSIZE ??= ""
+
 # Forcefully set CACHE now so future changes to things like
 # MACHINE don't change the path to the cache
 CACHE := "${CACHE}"