Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update hosttools and move to poky 5 #871

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,8 @@ jobs:
group: ${{ matrix.host.runner }}
container: ${{ matrix.host.container }}

env:
TAR_OPTIONS: --no-same-owner
defaults:
run:
shell: bash
Expand Down
5 changes: 4 additions & 1 deletion meta-zephyr-sdk/conf/distro/include/zephyr-sdk.inc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ DISTRO_FEATURES_NATIVE = ""
DISTRO_FEATURES_BACKFILL = ""
DISTRO_FEATURES_NATIVESDK = ""

MAINTAINER = "Intel Yocto team"
MAINTAINER = "Zephyr developers / devops team"

SSTATE_DIR ?= "${TOPDIR}/../zephyr-cache/sstate-cache"
CACHE_forcevariable = "${TOPDIR}/../zephyr-cache/cache"
PERSISTENT_DIR = "${TOPDIR}/../zephyr-cache/persistent"
DL_DIR ?= "${TOPDIR}/../zephyr-downloads"

PREFERRED_VERSION_meson:forcevariable = "1.7.%"
PREFERRED_VERSION_nativesdk-meson:forcevariable = "1.7.%"
2 changes: 1 addition & 1 deletion meta-zephyr-sdk/conf/distro/zephyr-sdk.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require conf/distro/poky.conf
require include/zephyr-sdk.inc

DISTRO_VERSION = "0.9"
DISTRO_VERSION = "0.10"
PACKAGE_CLASSES = "package_ipk"
TARGET_VENDOR = "-zephyr"
2 changes: 1 addition & 1 deletion meta-zephyr-sdk/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ LICENSE_PATH += "${LAYERDIR}/files/additional-licenses"
BBFILE_COLLECTIONS += "zephyr-sdk"
BBFILE_PATTERN_zephyr-sdk := "^${LAYERDIR}/"
BBFILE_PRIORITY_zephyr-sdk = "8"

LAYERSERIES_COMPAT_zephyr_sdk = "Scarthgap"
6 changes: 0 additions & 6 deletions meta-zephyr-sdk/recipes-core/expat/expat_%.bbappend

This file was deleted.

30 changes: 0 additions & 30 deletions meta-zephyr-sdk/recipes-devtools/arc_qemu/files/cross.patch

This file was deleted.

37 changes: 0 additions & 37 deletions meta-zephyr-sdk/recipes-devtools/meson/meson.inc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,40 +1,43 @@
From 6c4eef1d92e9e42fdbc888365cab3c95fb33c605 Mon Sep 17 00:00:00 2001
From 32c4ccfbdc8649f595a79e7fd1bd39d6f8325340 Mon Sep 17 00:00:00 2001
From: Ross Burton <[email protected]>
Date: Tue, 3 Jul 2018 13:59:09 +0100
Subject: [PATCH] Make CPU family warnings fatal

Upstream-Status: Inappropriate [OE specific]
Signed-off-by: Ross Burton <[email protected]>

---
mesonbuild/envconfig.py | 2 +-
mesonbuild/environment.py | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
mesonbuild/envconfig.py | 4 ++--
mesonbuild/environment.py | 6 ++----
2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
index 307aac3..66fb7ec 100644
index 86bad9b..9703315 100644
--- a/mesonbuild/envconfig.py
+++ b/mesonbuild/envconfig.py
@@ -267,7 +267,7 @@ class MachineInfo(HoldableObject):
@@ -277,8 +277,8 @@ class MachineInfo(HoldableObject):
'but is missing {}.'.format(minimum_literal - set(literal)))

cpu_family = literal['cpu_family']
if cpu_family not in known_cpu_families:
- if cpu_family not in known_cpu_families:
- mlog.warning(f'Unknown CPU family {cpu_family}, please report this at https://github.com/mesonbuild/meson/issues/new')
+ if cpu_family not in known_cpu_families and cpu_family != "riscv":
+ raise EnvironmentException('Unknown CPU family {}, see https://wiki.yoctoproject.org/wiki/Meson/UnknownCPU for directions.'.format(cpu_family))

endian = literal['endian']
if endian not in ('little', 'big'):
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 71286a5..179917e 100644
index 71a2f3a..4cbeabe 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -352,9 +352,7 @@ def detect_cpu_family(compilers: CompilersDict) -> str:
trial = 'ppc64'
@@ -416,10 +416,8 @@ def detect_cpu_family(compilers: CompilersDict) -> str:
if compilers and not any_compiler_has_define(compilers, '__mips64'):
trial = 'mips'

if trial not in known_cpu_families:
- if trial not in known_cpu_families:
- mlog.warning(f'Unknown CPU family {trial!r}, please report this at '
- 'https://github.com/mesonbuild/meson/issues/new with the '
- 'output of `uname -a` and `cat /proc/cpuinfo`')
+ if trial not in known_cpu_families and trail != "riscv":
+ raise EnvironmentException('Unknown CPU family %s, see https://wiki.yoctoproject.org/wiki/Meson/UnknownCPU for directions.' % trial)

return trial
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
From 6f33fb67097beeb17e2345aaec3bda4a57b0b138 Mon Sep 17 00:00:00 2001
From: Ross Burton <[email protected]>
Date: Wed, 20 Nov 2024 13:09:38 +0000
Subject: [PATCH] dependencies/dev: prepend sysroot when searching for GTest
sources

Don't hardcode paths in /usr when looking for the GTest sources, as in
cross-compile or other builds with a sysroot this will find the host
sources, not ones that we want to use in the sysroot.

Closes #12690.

Upstream-Status: Submitted [https://github.com/mesonbuild/meson/pull/13934]
Signed-off-by: Ross Burton <[email protected]>
---
mesonbuild/dependencies/dev.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py
index 94f51ff69..cceb1756c 100644
--- a/mesonbuild/dependencies/dev.py
+++ b/mesonbuild/dependencies/dev.py
@@ -56,7 +56,9 @@ class GTestDependencySystem(SystemDependency):
def __init__(self, name: str, environment: 'Environment', kwargs: T.Dict[str, T.Any]) -> None:
super().__init__(name, environment, kwargs, language='cpp')
self.main = kwargs.get('main', False)
- self.src_dirs = ['/usr/src/gtest/src', '/usr/src/googletest/googletest/src']
+
+ sysroot = environment.properties[self.for_machine].get_sys_root() or ""
+ self.src_dirs = [sysroot + '/usr/src/gtest/src', sysroot + '/usr/src/googletest/googletest/src']
if not self._add_sub_dependency(threads_factory(environment, self.for_machine, {})):
self.is_found = False
return
--
2.34.1

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,43 +1,36 @@
From 2264e67d7c2c22ca634fd26ea8ada6f0344ab280 Mon Sep 17 00:00:00 2001
From f264b7fd2c86edfd5db77da264e8bf05f5e2bfeb Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <[email protected]>
Date: Mon, 19 Nov 2018 14:24:26 +0100
Subject: [PATCH] python module: do not manipulate the environment when calling
pkg-config

Upstream-Status: Inappropriate [oe-core specific]
Signed-off-by: Alexander Kanavin <[email protected]>

---
mesonbuild/modules/python.py | 12 ------------
1 file changed, 12 deletions(-)
mesonbuild/dependencies/python.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 422155b..aaf5844 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -70,11 +70,6 @@ class PythonDependency(ExternalDependency):
old_pkg_libdir = os.environ.get('PKG_CONFIG_LIBDIR')
old_pkg_path = os.environ.get('PKG_CONFIG_PATH')
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py
index 326e605..f5eb50f 100644
--- a/mesonbuild/dependencies/python.py
+++ b/mesonbuild/dependencies/python.py
@@ -403,9 +403,6 @@ def python_factory(env: 'Environment', for_machine: 'MachineChoice',
empty.name = 'python'
return empty

- os.environ.pop('PKG_CONFIG_PATH', None)
-
- if pkg_libdir:
- os.environ['PKG_CONFIG_LIBDIR'] = pkg_libdir
-
- old_pkg_libdir = os.environ.pop('PKG_CONFIG_LIBDIR', None)
- old_pkg_path = os.environ.pop('PKG_CONFIG_PATH', None)
- os.environ['PKG_CONFIG_LIBDIR'] = pkg_libdir
try:
self.pkgdep = PkgConfigDependency(pkg_name, environment, kwargs)
mlog.debug(f'Found "{pkg_name}" via pkgconfig lookup in LIBPC ({pkg_libdir})')
@@ -83,13 +78,6 @@ class PythonDependency(ExternalDependency):
mlog.debug(f'"{pkg_name}" could not be found in LIBPC ({pkg_libdir})')
mlog.debug(e)

- if old_pkg_path is not None:
- os.environ['PKG_CONFIG_PATH'] = old_pkg_path
-
- if old_pkg_libdir is not None:
- os.environ['PKG_CONFIG_LIBDIR'] = old_pkg_libdir
- else:
- os.environ.pop('PKG_CONFIG_LIBDIR', None)
else:
mlog.debug(f'"{pkg_name}" could not be found in LIBPC ({pkg_libdir}), this is likely due to a relocated python installation')
return PythonPkgConfigDependency(name, env, kwargs, installation, True)
finally:
@@ -414,8 +411,7 @@ def python_factory(env: 'Environment', for_machine: 'MachineChoice',
os.environ[name] = value
elif name in os.environ:
del os.environ[name]
- set_env('PKG_CONFIG_LIBDIR', old_pkg_libdir)
- set_env('PKG_CONFIG_PATH', old_pkg_path)
+ pass

candidates.append(functools.partial(wrap_in_pythons_pc_dir, pkg_name, env, kwargs, installation))
# We only need to check both, if a python install has a LIBPC. It might point to the wrong location,
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 656bf55fed01df2d2e2ad6d9d9887173cb16b85c Mon Sep 17 00:00:00 2001
From bcdd72ed1956e0a1b1b725e552fa391c549c2099 Mon Sep 17 00:00:00 2001
From: Peter Kjellerstedt <[email protected]>
Date: Thu, 26 Jul 2018 16:32:49 +0200
Subject: [PATCH 2/2] Support building allarch recipes again
Subject: [PATCH] Support building allarch recipes again

This registers "allarch" as a known CPU family.

Expand All @@ -12,17 +12,14 @@ Signed-off-by: Peter Kjellerstedt <[email protected]>
1 file changed, 1 insertion(+)

diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
index 4d58c91..ff01ad1 100644
index 9703315..74f2477 100644
--- a/mesonbuild/envconfig.py
+++ b/mesonbuild/envconfig.py
@@ -36,6 +36,7 @@ from pathlib import Path
@@ -28,6 +28,7 @@ from pathlib import Path


known_cpu_families = (
+ 'allarch',
'aarch64',
'alpha',
'arc',
--
2.24.0

Loading
Loading