Commit Graph

31 Commits

Author SHA1 Message Date
Yi Zhao d8c5a72788 tbb: upgrade 2021.11.0 -> 2021.13.0
ChangeLog:
https://github.com/oneapi-src/oneTBB/releases/tag/v2021.12.0
https://github.com/oneapi-src/oneTBB/releases/tag/v2021.13.0

Drop 0001-hwloc_detection.cmake-remove-cross-compiation-check.patch as
the issue has been fixed upstream.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-16 23:01:22 -07:00
Anuj Mittal 88a9dd2b83 tbb: pass TBB_STRICT=OFF to disable -Werror
Don't treat compiler warnings as errors to avoid failures when compiling
with newer versions.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-27 09:18:48 -07:00
Naveen Saini 6fbe500189 tbb: enable NUMA/Hybrid CPU support
oneTBB relies on HWLOC* to identify the underlying topology
of the system to optimize thread scheduling and memory allocation.

Ref:
https://oneapi-src.github.io/oneTBB/GSG/next_steps.html#hybrid-cpu-and-numa-support

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-29 22:25:05 -08:00
Naveen Saini d5f16f18c3 tbb: upgrade 2021.9.0 -> 2021.11.0
riscv arch support enabled in this release, so patching
for riscv* not required anymore. Drop patch.

Release note:
https://github.com/oneapi-src/oneTBB/releases/tag/v2021.11.0

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-29 22:25:05 -08:00
Wang Mingyu 2e53376646 tbb: upgrade 2021.8.0 -> 2021.9.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-17 09:53:32 -07:00
Wang Mingyu 926ac58066 tbb: upgrade 2021.7.0 -> 2021.8.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-11 08:37:58 -08:00
Naveen Saini 211e4988da tbb: upgrade 2021.5.0 -> 2021.7.0
Drop patches which are already merged. Also drop
which are not required anymore.

Tested following machines with both gcc and clang:
qemuarm
qemuarm64
qemuriscv32
qemuriscv64

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-06 11:38:16 -08:00
Ross Burton db72adf016 tbb: upgrade to 2021.5.0
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-12 09:22:34 -08:00
Ross Burton 5ff0ebc497 tbb: enable native/nativesdk builds
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-07 11:29:09 -08:00
Khem Raj 99250956db tbb: Disable LTO on rv64
ABI mismatches still happen with clang on rv64 as well so disable
LTO for now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-28 19:20:31 -08:00
Khem Raj d57dcb3f69 tbb: Upgrade to 2021.4.0
* Drop upstreamed patches
* Drop 0001-set_my_tls_end_of_input-Use-an-arbitrary-but-valid-p.patch
* which is fixed differently
* Forward port rest of them
* Add a patch to fix build with musl
* Add a patch to disable LTO on rv32 (configuration) and arm ( crashes )

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-09 08:36:36 -08:00
Khem Raj c2aafe4737 tbb: Link with libatomic when using clang compiler on rv32
This helps fixing opencv builds where lack of libatomic link in tbb
ends up with build failures e.g.

riscv32-yoe-linux-ld: lib/libopencv_core.so.4.5.2: undefined reference to `__atomic_fetch_add_8'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-25 10:40:50 -07:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj 0b15f80012 tbb: Fix warnings with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-05 06:06:27 -07:00
Khem Raj e9a53d389a tbb: Fix build with GCC 11
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 11:07:08 -07:00
Saul Wold 8170a965d0 tbb: Disable PPC as COMPATIBLE_MACHINE
The latest version does not support PPC architecture, so disable
the it. Otherwise the following error occurs:

/srv/nvme/yocto/hardknott/builds/tbb/tmp/work/ppc7400-poky-linux/tbb/2021.2.0-r0/git/src/tbb/tools_api/ittnotify_config.h:338:12: error: '__TBB_machine_fetchadd4' was not declared in this scope
  338 |     return __TBB_machine_fetchadd4(ptr, 1) + 1L;
      |            ^~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-29 15:40:20 -07:00
Khem Raj b5ad9c011d tbb: Re-introduce PE
It was accidentally dropped in last upgrade for this recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Cc: Naveen Saini <naveen.kumar.saini@intel.com>
2021-04-21 08:27:01 -07:00
Khem Raj 2a88ae98e9 tbb: Fix build with musl
Need to link libucontext on musl
Additionally, mips also needs libatomic

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Naveen Saini <naveen.kumar.saini@intel.com>
2021-04-15 09:28:43 -07:00
Naveen Saini 644b75926b tbb: upgrade 2020.3 -> 2021.2.0
Switched to cmake build tool.

Rebased some patches due to directory re-structuring.
Dropped patches, which are not required anymore.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-15 09:28:43 -07:00
Lee Chee Yang 39185eb1d1 tbb: improve reproducibility
remove WORKDIR from generated version_string.ver and
use SOURCE_DATE_EPOCH as DATETIME wherever possible to
improve reproducibility

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-30 11:28:18 -07:00
Naveen Saini 11562e889d tbb: upgrade 2020.2 -> 2020.3
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-16 23:03:29 -07:00
Anuj Mittal 681555bf55 tbb: upgrade 2017 -> 2020.2
* Remove patches that are not needed anymore and fix the recipe to point
to new source location.

* Remove the compilation tweaks that don't seem to be required anymore.

* Include a patch to fix builds on musl.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-09 17:45:01 -07:00
Khem Raj 6ffd5b456f tbb: Ensure that install does not race
This fixes

install: will not overwrite just-created 'TOPDIR/build/tmp/work/core2-64-yoe-linux/tbb/20170412+AUTOINC+a2cfdfe946-r0/image/usr/lib/libtbbmalloc_proxy.so' with 'TOPDIR/build/tmp/work/core2-64-yoe-linux/tbb/20170412+AUTOINC+a2cfdfe946-r0/git/build/linux_x86_64_gcc_cc4_release/libtbbmalloc_proxy.so'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-29 17:32:21 -07:00
Gregory Vimont 8b0c1c3f31 tbb: check the version of the cross gcc instead of host gcc
When cross compiling on linux with gcc, the host gcc was used instead of
the cross gcc to set compilation flags according to gcc version.

Signed-off-by: Gregory Vimont <gregory.vimont@softbankrobotics.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-04 06:09:58 -07:00
Khem Raj 637470014f tbb: Update to 2017 Update 6
Fix build with musl and security flags turned on

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-06-12 06:56:45 +02:00
Khem Raj 475ba851de tbb: Update to 2017 release
Update license to reflect new Apache 2.0 license
Fix build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-11 17:56:42 +01:00
Martin Jansa df7242fddb recipes: Replace "cp -a" with "cp -R --no-dereference --preserve=mode,links"
* Using "cp -a" leaks UID of user running the builds, causing
  many QA warnings.
* See this thread for details:
  http://lists.openembedded.org/pipermail/openembedded-core/2015-November/112904.html

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-03-04 09:06:22 +01:00
Martin Jansa 504133a737 tbb: Disable thumb
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-11-18 23:14:27 +01:00
Marcin Juszkiewicz 3c2891137d tbb: update to 4.1 Update 3 version from 20130314
ARMv7a support was added in 4.1 Update 3
Older ARM cores support was added by me.

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-19 02:45:27 +02:00
Martin Jansa a45830a39b recipes: Unify indentation
* This change is only aesthetic (unlike indentation in Python
  tasks).
* Some recipes were using tabs.
* Some were using 8 spaces.
* Some were using mix or different number of spaces.
* Make them consistently use 4 spaces everywhere.
* Yocto styleguide advises to use tabs (but the only reason to keep
  tabs is the need to update a lot of recipes). Lately this advice
  was also merged into the styleguide on the OE wiki.
* Using 4 spaces in both types of tasks is better because it's less
  error prone when someone is not sure if e.g.
  do_generate_toolchain_file() is Python or shell task and also allows
  to highlight every tab used in .bb, .inc, .bbappend, .bbclass as
  potentially bad (shouldn't be used for indenting of multiline
  variable assignments and cannot be used for Python tasks).
* Don't indent closing quote on multiline variables
  we're quite inconsistent wheater it's first character on line
  under opening quote or under first non-whitespace character in
  previous line.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-04-15 16:23:17 +02:00
Marcin Juszkiewicz 97ded03d71 tbb: add 4.1 20130116 version (4.1 update 2)
Intel® Threading Building Blocks (Intel® TBB) lets you easily write
parallel C++ programs that take full advantage of multicore performance,
that are portable and composable, and that have future-proof
scalability.

Natively supports only x86(-64) targets with fallbacks for non-supported
architectures. There is a work at Linaro to add AArch64 and ARMv7a
support.

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-03-29 13:16:38 +01:00