| Message ID | 20260402001645.1717722-3-martin.jansa@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-tensorflow,1/3] bazel: fix typo in .patch file | expand |
Thanks for your contribution, merged //Hongxu On 4/2/26 08:16, martin.jansa@gmail.com wrote: > CAUTION: This email comes from a non Wind River email account! > Do not click links or open attachments unless you recognize the sender and know the content is safe. > > From: Martin Jansa <martin.jansa@gmail.com> > > Fixes: > WARNING: Option 'local_cpu_resources' is deprecated: --local_cpu_resources is deprecated, please use --local_resources=cpu= instead. > WARNING: Option 'local_ram_resources' is deprecated: --local_ram_resources is deprecated, please use --local_resources=memory= instead. > > Signed-off-by: Martin Jansa <martin.jansa@gmail.com> > --- > classes/bazel.bbclass | 4 ++-- > recipes-devtools/bazel/bazel-native_7.7.0.bb | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/classes/bazel.bbclass b/classes/bazel.bbclass > index 43e2c9c..085eff1 100644 > --- a/classes/bazel.bbclass > +++ b/classes/bazel.bbclass > @@ -85,11 +85,11 @@ def bazel_get_flags(d): > > if d.getVar("BAZEL_JOBS"): > flags += "# From BAZEL_JOBS\n" > - flags += "build --jobs=%s --local_cpu_resources=%s\n" % (d.getVar("BAZEL_JOBS"), d.getVar("BAZEL_JOBS")) > + flags += "build --jobs=%s --local_resources=cpu=%s\n" % (d.getVar("BAZEL_JOBS"), d.getVar("BAZEL_JOBS")) > > if d.getVar("BAZEL_MEM"): > flags += "# From BAZEL_MEM\n" > - flags += "build --local_ram_resources=%s\n" % (d.getVar("BAZEL_MEM")) > + flags += "build --local_resources=memory=%s\n" % (d.getVar("BAZEL_MEM")) > > return flags > > diff --git a/recipes-devtools/bazel/bazel-native_7.7.0.bb b/recipes-devtools/bazel/bazel-native_7.7.0.bb > index 042f456..3b81be5 100644 > --- a/recipes-devtools/bazel/bazel-native_7.7.0.bb > +++ b/recipes-devtools/bazel/bazel-native_7.7.0.bb > @@ -35,8 +35,8 @@ EXTRA_BAZEL_ARGS = " \ > --distdir=${TS_DL_DIR} \ > --color=no \ > ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--jobs=${BAZEL_JOBS}", d )} \ > - ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--local_cpu_resources=${BAZEL_JOBS}", d )} \ > - ${@oe.utils.conditional("BAZEL_MEM", "", "", "--local_ram_resources=${BAZEL_MEM}", d )} \ > + ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--local_resources=cpu=${BAZEL_JOBS}", d )} \ > + ${@oe.utils.conditional("BAZEL_MEM", "", "", "--local_resources=memory=${BAZEL_MEM}", d )} \ > " > > do_compile[network] = "1"
diff --git a/classes/bazel.bbclass b/classes/bazel.bbclass index 43e2c9c..085eff1 100644 --- a/classes/bazel.bbclass +++ b/classes/bazel.bbclass @@ -85,11 +85,11 @@ def bazel_get_flags(d): if d.getVar("BAZEL_JOBS"): flags += "# From BAZEL_JOBS\n" - flags += "build --jobs=%s --local_cpu_resources=%s\n" % (d.getVar("BAZEL_JOBS"), d.getVar("BAZEL_JOBS")) + flags += "build --jobs=%s --local_resources=cpu=%s\n" % (d.getVar("BAZEL_JOBS"), d.getVar("BAZEL_JOBS")) if d.getVar("BAZEL_MEM"): flags += "# From BAZEL_MEM\n" - flags += "build --local_ram_resources=%s\n" % (d.getVar("BAZEL_MEM")) + flags += "build --local_resources=memory=%s\n" % (d.getVar("BAZEL_MEM")) return flags diff --git a/recipes-devtools/bazel/bazel-native_7.7.0.bb b/recipes-devtools/bazel/bazel-native_7.7.0.bb index 042f456..3b81be5 100644 --- a/recipes-devtools/bazel/bazel-native_7.7.0.bb +++ b/recipes-devtools/bazel/bazel-native_7.7.0.bb @@ -35,8 +35,8 @@ EXTRA_BAZEL_ARGS = " \ --distdir=${TS_DL_DIR} \ --color=no \ ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--jobs=${BAZEL_JOBS}", d )} \ - ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--local_cpu_resources=${BAZEL_JOBS}", d )} \ - ${@oe.utils.conditional("BAZEL_MEM", "", "", "--local_ram_resources=${BAZEL_MEM}", d )} \ + ${@oe.utils.conditional("BAZEL_JOBS", "", "", "--local_resources=cpu=${BAZEL_JOBS}", d )} \ + ${@oe.utils.conditional("BAZEL_MEM", "", "", "--local_resources=memory=${BAZEL_MEM}", d )} \ " do_compile[network] = "1"