Age | Commit message (Collapse) | Author |
|
Resolve dozens of CVE issues [1]
[1] https://github.com/tensorflow/tensorflow/releases
Issue: LINUXEXEC-17107
(LOCAL REV: NOT UPSTREAM) -- Will send to upstream yocto later
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
...
root@intel-x86-64:~# label_image.lite
INFO: Loaded model /usr/share/label_image/mobilenet_v1_1.0_224_quant.tflite
INFO: resolved reporter
Segmentation fault
...
Revert two commits could fix the issue
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Do dot release upgrade to fix 58 CVEs
https://github.com/tensorflow/tensorflow/blob/r2.4/RELEASE.md
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
This commit is generated by autorebase automatically.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
|
Update LAYERSERIES_COMPAT with hardknott.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
inherited last
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Build tensorflow-for-poets only if tensorflow 1.x is available,
otherwise skip it with message:
...
ERROR: Nothing PROVIDES 'tensorflow-for-poets' tensorflow-for-poets was skipped:
It requires tensorflow 1.x, add 'TF_ARGS_EXTRA = "--config=v1"' to local.conf
...
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
- Drop v2 config from bazel config file, set it from bazel
command option
- Move TF_ARGS_EXTRA to tensorflow.inc for both of native
and target and set v2 config by default
- Update steps in meta-demo/README* to build tensorflow 1.x
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
do_rm_work
In do_rm_work, it removed bazel build files failed, run bazel clean
before do_rm_work to clean up bazel build files before do_rm_work
Issue: LINCD-4017
(LOCAL REV: NOT UPSTREAM) -- Will send to upstream on 20210108
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Simplfy recipe tensorboard, get python scripts from pip whl packages
rather than bazel build from scratch, it saves 30+ min build time and
avoids bazel build failures
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
0001-third_party-eigen_archive-workaround-ice-failure-whi.patch for tensorflow 2.4
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Drop toolchain git repository rule of bazel in tensorflow build, the git
download is useless for tensorflow which broke offline build
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
The bazel configure 'build --jobs=XX --local_cpu_resources=XXX' only worked
on target build, move it to a common place which works for both of native
and target
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Remove duplicated recipes and use the one in OE to replace
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Since 2.4.0rc4 -> 2.4.0 and rebuild without clean, there are
multiple whl to install, add version filter to match the required
whl
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Target arch only supports 32 bit arm and 32 bit x86, 64 bit arm and
64 bit x86. BSP (MACHINE) incluced in above archs should be supported.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Split sub packages (libtensorflow-c libtensorflow-framework
label-image label-image-lite python3-tensorflow), then user
chould select the required one rather than install them
as a whole
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Refers begginers of upstream [1] [2]
[1] https://www.tensorflow.org/install/pip
[2] https://www.tensorflow.org/tutorials/quickstart/beginner
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Set BAZEL_JOBS and BAZEL_MEM with empty string to make bazel build without
limitation
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
- Move common config settings to bazel-base.bbclass
- Improve bazel_get_flags to make each flag per line with comments
- Use BAZEL_MEM rather than hardcoded for option --local_ram_resources
- Explicitly remove dir ${BAZEL_DIR} before do_clean
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
CROSSTOOL files are no longer supported after Bazel v0.26+
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Rebase patch to 2.4
- 0001-customize-for-Yocto.patch
Fix projector cannot find module 'd3'
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
It is required by tensorboard
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
It is required by tensorboard
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
It is required by tensorboard
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Move it from meta-demo to meta-tensorflow which is required by
tensorboard
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
|ERROR: tensorflow: Multiple shlib providers for
libtensorflow_framework.so.2: tensorflow, tensorflow (used by files:
tmp-glibc/work/core2-64-wrs-linux/tensorflow/2.4.0-r0/packages-split/
tensorflow/usr/lib64/python3.9/site-packages/tensorflow/python/
_pywrap_tf_session.so)
Remove the duplicate one
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
- CROSSTOOL files are no longer supported after Bazel v0.26+,
so converted over to the new toolchain config format
- Support 32 bit x86 and 64 bit x86 for Yocto
- Support 32 bit arm and 64 bit arm (aarch64) for Yocto
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
1. Use --local_ram_resources and --local_cpu_resources to replace
deprecated --local_resources
2. Add options to bazel-native build
|ERROR: --local_resources is deprecated. Please use --local_ram_resources and/or --local_cpu_resources
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
native tools
While using the default Bazel C++ toolchain to build Yocto native tools
(bazel build --host_crosstool_top=@bazel_tools//tools/cpp:toolchain),
it failed with `bazel references a path outside of the execution root',
Add Yocto native sysroot dir (YOCTO_NATIVE_SYSROOT) to
builtin_include_directories could fix the issue
If not set YOCTO_NATIVE_SYSROOT, use NOT_SET_YOCTO_NATIVE_SYSROOT
to replace as a warning
Set YOCTO_NATIVE_SYSROOT in bazel.bbclass
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
It is required by tensorflow 2.4
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
It is required by tensorflow 2.4
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
It is required by tensorflow 2.4
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
The tensorflow requires the this version, as newer versions are
incompatible with the rest of the ecosystem [1]
[1] https://github.com/tensorflow/tensorflow/commit/710f3c83b4147eb76e748efcc218325c4978726c
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Refresh patches to 2.4.0
- 0001-support-musl.patch
- 0001-third_party-eigen_archive-workaround-ice-failure-whi.patch
- 0001-use-local-bazel-to-workaround-bazel-paralle-issue.patch
- 0001-add-yocto-toolchain-to-support-cross-compiling.patch
- 0001-fix-build-tensorflow-lite-examples-label_image-label.patch
- 0001-label_image.lite-tweak-default-model-location.patch
Drop backported patches
- 0001-Fix-TensorFlow-on-Python-3.8-logger-issue.patch
- 0001-Provide-overload-to-cope-with-const-ness-change-of-N.patch
- 0001-Rename-gettid-functions.patch
- 0001-SyntaxError-around-async-keyword-on-Python-3.7.patch
- 0001-fix-compilation-error.patch
Minor change on LICENSE, copy year
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Rebase patches to 3.1.0:
- 0001-HttpDownloader-save-download-tarball-to-distdir.patch
- 0001-fix-unzip-command-not-found.patch
- 0001-python3.patch
Drop backport patch:
- 0001-Rename-gettid-functions.patch
Tweak options according to [1]
[1] https://docs.bazel.build/versions/master/install-compile-source.html#bootstrap-unix-bootstrap
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Since python3-numpy: update 1.18.5 -> 1.19.0, there is
a GCC 10.1 compile error. Backport a patch from upstream
to fix it [1]
[1] https://github.com/tensorflow/tensorflow/pull/40654
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
There is gcc Killed failure:
...
|tmp-glibc/work/corei7-32-wrsmllib32-linux/lib32-tensorflow/
1.13.0-r0/git/tensorflow/core/kernels/BUILD:3158:1: C++ compilation
of rule '//tensorflow/core/kernels:cwise_op' failed (Killed): gcc
failed: error executing command
...
From Bazel User Manual
--local_resources availableRAM,availableCPU,availableIO
This option, which takes three comma-separated floating point arguments,
specifies the amount of local resources that Bazel can take into
consideration when scheduling build and test activities. Option expects
amount of available RAM (in MB), number of CPU cores (with 1.0 representing
single full core) and workstation I/O capability (with 1.0 representing
average workstation). [1]
According to [2][3], explicitly set the amount of local host RAM
4096 MB available to Bazel, the number of local CPU 4 cores
available to Bazel, the number of jobs is 4 which should be
executed concurrently.
Refer:
[1] https://stackoverflow.com/questions/34756370/is-there-a-way-to-limit-the-number-of-cpu-cores-bazel-uses
[2] https://github.com/tensorflow/tensorflow/issues/7723
[3] https://github.com/tensorflow/tensorflow/issues/24318
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
The python3-core provides /usr/bin/python3 which required by
python3 scripts of tensorboard/tensorflow
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|