aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools
AgeCommit message (Collapse)AuthorFilesLines
2020-04-08bazel.bbclass/bazel-native: disable ccache to workaround build failureHongxu Jia1-0/+2
While enabling ccache, build bazel-native failed: ... |Cannot find gcc or CC (ccache gcc); either correct your path or set the CC environment variable ... So disable ccache to workaround the failure. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08bazel-native: remove hardcoded /bin and /usr/bin from PATHHongxu Jia1-1/+3
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08bazel-native: convert python2 to python3Hongxu Jia2-2/+50
Drop python2, use python3 to build bazel Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08bazel-native: fix unzip: command not foundHongxu Jia2-0/+34
If host does not provide unzip, build bazel will fail even though Yocto native sysroot does have unzip. The reason is var-PATH was not passed to bazel build in some cases. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08bazel-native: fix compile failure on ubuntu1904_64Hongxu Jia2-0/+66
glibc 2.30 (ubuntu1904_64) will declare its own gettid; see https://sourceware.org/git/?p=glibc.git;a=commit;h=1d0fc213824eaa2a8f8c4385daaa698ee8fb7c92. Rename the grpc versions to avoid naming conflicts Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2020-04-08bazel-native: inherit pythonnative to fix do_compile errorChen Qi1-1/+1
The compilation process needs python (python2) to be there, so fix it by making bazel-native inherit pythonnative. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2019-08-09openjdk-8-native: noexec useless tasksHongxu Jia1-0/+5
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09use pre-build openjdk-8-native 212b04 to replace meta-javaHongxu Jia1-0/+27
The openjdk-8-native 212b04 is a pre-build binary from ojdkbuild which is a community build using source code from OpenJDK project. [https://github.com/ojdkbuild/ojdkbuild] The reason to use it rather than build from source by meta-java: - The meta-java introduce extra 38 depend recipes to openjdk-8-native, without meta-java could save build time 20%, and will not be broke by meta-java build failure - Only use openjdk-8-native to build bazel-native, and then use bazel-native to build others, any target recipes/packages does not require openjdk-8-native directly The pre-build binary only supports on x86-64, for other hosts, we could add use the one provided by meta-java. What you do is just add layer meta-java to your build. The idea refers meta-renesas-ai: https://github.com/renesas-rz/meta-renesas-ai/blob/master/meta-tensorflow/recipes-devtools/openjdk/openjdk-8-native_151-1.b12.bb Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09do not hardcode JAVA_HOMEHongxu Jia1-1/+1
Use ${STAGING_LIBDIR_NATIVE} rather than ${RECIPE_SYSROOT_NATIVE}/usr/lib. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09bazel-native: explicitly disable uninativeHongxu Jia1-0/+3
Even though bbclass uninative is inherited, still disable it Which cuasing java binary `bazel' not working correctly ... |bazel --batch --bazelrc=/dev/null version |file is invalid or corrupted (missing end of central directory record) |Cannot find central directory |FATAL: Failed to open Bazel as a zip file: (error: 5): Input/output error ... Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09bazel-native: save download tarball to distdirHongxu Jia2-1/+90
- After download tarball from internet, save them to distdir - Avoid tarball name conflict, rename them with suffix `_<sha256sum>' Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09support offline buildHongxu Jia1-1/+2
Set TS_DL_DIR to support fetch tarball from download mirror. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09python3-pillow: move to oeHongxu Jia3-128/+0
Since commit [6cb4e90 python3-pillow: add 5.4.1] applied in oe, remove the duplicated one in meta-tensorflow. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09python3-pillow: add 5.4.1Hongxu Jia3-0/+128
- Set option by modify setup.py - Do not override do_compile to call `setup.py build_ext', it will missing options at do_install time which causing host contamination ... Found webp/demux.h Found library webpmux at /usr/lib/libwebpmux.so Found library webpdemux at /usr/lib/libwebpdemux.so /usr/include/pthread.h:682:6: error: 'regparm' is not valid on this platform ... Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09fix `Failed to extract install_base_key' while running bazelHongxu Jia1-1/+0
1. The problem is the binary is edited after by setting the rpath. Which might mess up with zip data, you might want to run zip -A on Bazel. It stills needs to extract the install key to verify it does not need to extract all the remaining parts. Also Bazel contains other C++ binary and you are going to run in the rpath problem all the time. https://github.com/bazelbuild/bazel/issues/2978 2. Since binary bazel in recipe-sysroot-native is a hardlink, while multiple recipes invoke one bazel at the same time, there is probably a race error ... FATAL: Failed to open Bazel as a zip file: (error: 5): Input/output error ... Copy and run a duplicated bazel could workaround it Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
2019-08-09bazel-native: add version 0.21.0Hongxu Jia1-0/+33
It is the build system of tensorflow. The build steps refers: https://docs.bazel.build/versions/master/install-compile-source.html Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>