public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Replace include statements with require
@ 2018-12-17  6:11 Jan Kiszka
  2018-12-19 11:43 ` Maxim Yu. Osipov
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2018-12-17  6:11 UTC (permalink / raw)
  To: isar-users

None of them express optional inclusions. This change is primarily to
document correct use.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta-isar/recipes-core/images/isar-image-debug.bb         | 2 +-
 meta-isar/recipes-kernel/example-module/example-module.bb | 2 +-
 meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb   | 2 +-
 meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb | 2 +-
 meta/recipes-devtools/buildchroot/buildchroot-host.bb     | 2 +-
 meta/recipes-devtools/buildchroot/buildchroot-target.bb   | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/meta-isar/recipes-core/images/isar-image-debug.bb b/meta-isar/recipes-core/images/isar-image-debug.bb
index 2b49d9e..791d623 100644
--- a/meta-isar/recipes-core/images/isar-image-debug.bb
+++ b/meta-isar/recipes-core/images/isar-image-debug.bb
@@ -3,7 +3,7 @@
 # This software is a part of ISAR.
 # Copyright (C) 2015-2016 ilbers GmbH
 
-include recipes-core/images/isar-image-base.bb
+require recipes-core/images/isar-image-base.bb
 
 IMAGE_PREINSTALL += "gdb \
                      strace"
diff --git a/meta-isar/recipes-kernel/example-module/example-module.bb b/meta-isar/recipes-kernel/example-module/example-module.bb
index d9d6eb1..b725416 100644
--- a/meta-isar/recipes-kernel/example-module/example-module.bb
+++ b/meta-isar/recipes-kernel/example-module/example-module.bb
@@ -15,7 +15,7 @@ python() {
         d.setVar('ISAR_CROSS_COMPILE', '0')
 }
 
-include recipes-kernel/linux-module/module.inc
+require recipes-kernel/linux-module/module.inc
 
 SRC_URI += "file://src"
 
diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb b/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb
index 19b60dc..b71ce77 100644
--- a/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb
+++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb
@@ -11,7 +11,7 @@ WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}-${HOST_DISTRO}-${HOST_A
 DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_BOOTSTRAP}/${HOST_DISTRO}-${HOST_ARCH}"
 ISAR_BOOTSTRAP_LOCK = "${DEPLOY_DIR_BOOTSTRAP}/${HOST_DISTRO}-${HOST_ARCH}.lock"
 
-include isar-bootstrap.inc
+require isar-bootstrap.inc
 inherit isar-bootstrap-helper
 
 do_generate_keyring[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb b/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb
index 3631506..e827129 100644
--- a/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb
+++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb
@@ -11,7 +11,7 @@ WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}"
 DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_BOOTSTRAP}/${DISTRO}-${DISTRO_ARCH}"
 ISAR_BOOTSTRAP_LOCK = "${DEPLOY_DIR_BOOTSTRAP}/${DISTRO}-${DISTRO_ARCH}.lock"
 
-include isar-bootstrap.inc
+require isar-bootstrap.inc
 
 do_generate_keyring[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
 
diff --git a/meta/recipes-devtools/buildchroot/buildchroot-host.bb b/meta/recipes-devtools/buildchroot/buildchroot-host.bb
index 01d426d..f6e95ed 100644
--- a/meta/recipes-devtools/buildchroot/buildchroot-host.bb
+++ b/meta/recipes-devtools/buildchroot/buildchroot-host.bb
@@ -5,7 +5,7 @@
 
 DESCRIPTION = "Isar development filesystem for host"
 
-include buildchroot.inc
+require buildchroot.inc
 
 BUILDCHROOT_PREINSTALL ?= "make \
                            debhelper \
diff --git a/meta/recipes-devtools/buildchroot/buildchroot-target.bb b/meta/recipes-devtools/buildchroot/buildchroot-target.bb
index c342625..ce6bd93 100644
--- a/meta/recipes-devtools/buildchroot/buildchroot-target.bb
+++ b/meta/recipes-devtools/buildchroot/buildchroot-target.bb
@@ -5,7 +5,7 @@
 
 DESCRIPTION = "Isar development filesystem for target"
 
-include buildchroot.inc
+require buildchroot.inc
 
 BUILDCHROOT_PREINSTALL ?= "gcc \
                            make \
-- 
2.16.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Replace include statements with require
  2018-12-17  6:11 [PATCH] Replace include statements with require Jan Kiszka
@ 2018-12-19 11:43 ` Maxim Yu. Osipov
  0 siblings, 0 replies; 2+ messages in thread
From: Maxim Yu. Osipov @ 2018-12-19 11:43 UTC (permalink / raw)
  To: Jan Kiszka, isar-users

On 12/17/18 9:11 AM, Jan Kiszka wrote:
> None of them express optional inclusions. This change is primarily to
> document correct use.

Applied to the 'next',

Thanks,
Maxim.

> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>   meta-isar/recipes-core/images/isar-image-debug.bb         | 2 +-
>   meta-isar/recipes-kernel/example-module/example-module.bb | 2 +-
>   meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb   | 2 +-
>   meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb | 2 +-
>   meta/recipes-devtools/buildchroot/buildchroot-host.bb     | 2 +-
>   meta/recipes-devtools/buildchroot/buildchroot-target.bb   | 2 +-
>   6 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/meta-isar/recipes-core/images/isar-image-debug.bb b/meta-isar/recipes-core/images/isar-image-debug.bb
> index 2b49d9e..791d623 100644
> --- a/meta-isar/recipes-core/images/isar-image-debug.bb
> +++ b/meta-isar/recipes-core/images/isar-image-debug.bb
> @@ -3,7 +3,7 @@
>   # This software is a part of ISAR.
>   # Copyright (C) 2015-2016 ilbers GmbH
>   
> -include recipes-core/images/isar-image-base.bb
> +require recipes-core/images/isar-image-base.bb
>   
>   IMAGE_PREINSTALL += "gdb \
>                        strace"
> diff --git a/meta-isar/recipes-kernel/example-module/example-module.bb b/meta-isar/recipes-kernel/example-module/example-module.bb
> index d9d6eb1..b725416 100644
> --- a/meta-isar/recipes-kernel/example-module/example-module.bb
> +++ b/meta-isar/recipes-kernel/example-module/example-module.bb
> @@ -15,7 +15,7 @@ python() {
>           d.setVar('ISAR_CROSS_COMPILE', '0')
>   }
>   
> -include recipes-kernel/linux-module/module.inc
> +require recipes-kernel/linux-module/module.inc
>   
>   SRC_URI += "file://src"
>   
> diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb b/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb
> index 19b60dc..b71ce77 100644
> --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb
> +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap-host.bb
> @@ -11,7 +11,7 @@ WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}-${HOST_DISTRO}-${HOST_A
>   DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_BOOTSTRAP}/${HOST_DISTRO}-${HOST_ARCH}"
>   ISAR_BOOTSTRAP_LOCK = "${DEPLOY_DIR_BOOTSTRAP}/${HOST_DISTRO}-${HOST_ARCH}.lock"
>   
> -include isar-bootstrap.inc
> +require isar-bootstrap.inc
>   inherit isar-bootstrap-helper
>   
>   do_generate_keyring[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
> diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb b/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb
> index 3631506..e827129 100644
> --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb
> +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap-target.bb
> @@ -11,7 +11,7 @@ WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}"
>   DEPLOY_ISAR_BOOTSTRAP = "${DEPLOY_DIR_BOOTSTRAP}/${DISTRO}-${DISTRO_ARCH}"
>   ISAR_BOOTSTRAP_LOCK = "${DEPLOY_DIR_BOOTSTRAP}/${DISTRO}-${DISTRO_ARCH}.lock"
>   
> -include isar-bootstrap.inc
> +require isar-bootstrap.inc
>   
>   do_generate_keyring[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}"
>   
> diff --git a/meta/recipes-devtools/buildchroot/buildchroot-host.bb b/meta/recipes-devtools/buildchroot/buildchroot-host.bb
> index 01d426d..f6e95ed 100644
> --- a/meta/recipes-devtools/buildchroot/buildchroot-host.bb
> +++ b/meta/recipes-devtools/buildchroot/buildchroot-host.bb
> @@ -5,7 +5,7 @@
>   
>   DESCRIPTION = "Isar development filesystem for host"
>   
> -include buildchroot.inc
> +require buildchroot.inc
>   
>   BUILDCHROOT_PREINSTALL ?= "make \
>                              debhelper \
> diff --git a/meta/recipes-devtools/buildchroot/buildchroot-target.bb b/meta/recipes-devtools/buildchroot/buildchroot-target.bb
> index c342625..ce6bd93 100644
> --- a/meta/recipes-devtools/buildchroot/buildchroot-target.bb
> +++ b/meta/recipes-devtools/buildchroot/buildchroot-target.bb
> @@ -5,7 +5,7 @@
>   
>   DESCRIPTION = "Isar development filesystem for target"
>   
> -include buildchroot.inc
> +require buildchroot.inc
>   
>   BUILDCHROOT_PREINSTALL ?= "gcc \
>                              make \
> 


-- 
Maxim Osipov
ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn
Germany
+49 (151) 6517 6917
mosipov@ilbers.de
http://ilbers.de/
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-19 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-17  6:11 [PATCH] Replace include statements with require Jan Kiszka
2018-12-19 11:43 ` Maxim Yu. Osipov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox