sdkchroot: Drop bogus restriction to x86 hosts

Message ID 525e8730-d142-fd0d-8b89-af97e7f1105f@web.de
State Accepted, archived
Headers show
Series sdkchroot: Drop bogus restriction to x86 hosts | expand

Commit Message

Jan Kiszka Jan. 1, 2021, 5:01 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

This check is not just unneeded, at least for arm64. It also breaks the
build on non-x86 hosts because it takes away a dependency that the image
class requires.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta/recipes-devtools/sdkchroot/sdkchroot.bb | 6 ------
 1 file changed, 6 deletions(-)

--
2.26.2

Comments

Anton Mikanovich Jan. 18, 2021, 6:18 a.m. UTC | #1
01.01.2021 18:01, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> This check is not just unneeded, at least for arm64. It also breaks the
> build on non-x86 hosts because it takes away a dependency that the image
> class requires.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

Applied to next, thanks.

Patch

diff --git a/meta/recipes-devtools/sdkchroot/sdkchroot.bb b/meta/recipes-devtools/sdkchroot/sdkchroot.bb
index d7a848e2..e367eae2 100644
--- a/meta/recipes-devtools/sdkchroot/sdkchroot.bb
+++ b/meta/recipes-devtools/sdkchroot/sdkchroot.bb
@@ -35,12 +35,6 @@  ROOTFS_FEATURES += "clean-package-cache generate-manifest export-dpkg-status"
 ROOTFS_MANIFEST_DEPLOY_DIR = "${DEPLOY_DIR_SDKCHROOT}"
 ROOTFS_DPKGSTATUS_DEPLOY_DIR = "${DEPLOY_DIR_SDKCHROOT}"

-python() {
-    if d.getVar("HOST_ARCH") not in ['i386', 'amd64']:
-        raise bb.parse.SkipRecipe("SDK doesn't support {} as host".format(
-            d.getVar("ROOTFS_ARCH")))
-}
-
 SDK_PREINSTALL += " \
     debhelper \
     autotools-dev \