From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 03 Jul 2026 17:08:52 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ej1-f58.google.com (mail-ej1-f58.google.com [209.85.218.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 663F8pdo017199 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 3 Jul 2026 17:08:52 +0200 Received: by mail-ej1-f58.google.com with SMTP id a640c23a62f3a-c125308ea0asf10296566b.3 for ; Fri, 03 Jul 2026 08:08:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1783091326; cv=pass; d=google.com; s=arc-20260327; b=jEERnO03I92lXYaZQq+pnyQ/I+fdkctxoK0KowrSCLI8LUXFxu/zpeXQoffYpFP4Sb XSyGg3DbyRmkYjxnxeG53AVH4TSz0SHQXmsthZi3ykE1YrwKcrpD0022wmxUKc30fhg9 dybpxRKVKUrHjLUb+hjn826eEJsN8AOb2n4JpHL49EyQNx4N6+vPB24nDghn+oxSCRSC r+djBppJCY7vbxT54uKpkDtYsxZvs1LL2Xb8mbW3IXPoXr2FDu8CGxOpR+dErbD5BEzg 0Vt5FtdeLHkcVmNWTP1LwOPClvg99SYzVssHzYe4l07OOc8dcgT7VbC/4YSq6kp0b1gD USLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=XkzbVPKdAobeywKbAI9y10toJzsWTmr84gT+Km5OSuU=; fh=i0TkO12xplXjdTMCcIx26KIAcV7MnCt1h2ciWQh4OlE=; b=O5rIifaYJu7rgO0KrCW22wwsivG5qOAQmFEWYqKNo8kDfRAXLKdd+S+f8NawBtFbQq P6GSWq/ZkXW2c79GZqDwG7MUD6tU7YtuZQbosly9roe/XxkR0vhO0qGKNW6VDPZU5niJ /qiYArNLH8FYUpII3k31YH82ei3yed96spHhUzLTtPIk56kt4wjAnyXf6UHyPnAxnI2q y5HH/Bk+AH5+J0WoYEVdUcsijxF7cqNUNL8lakJUiyaNMBvS2xUXatSWVEPDymQ5KgGU S1HcOk1mWeYw8oiKNf+g8ai9P+HeductUcZGijUrSwDj9Za7f219bwbFvKpigDYW1NTF PeVQ==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1783091326; x=1783696126; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-type :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :from:to:cc:subject:date:message-id:reply-to:content-type; bh=XkzbVPKdAobeywKbAI9y10toJzsWTmr84gT+Km5OSuU=; b=GDFOLltQg6M9Do9w1w1aB5w4Vo/RFSsy7WV15Ul7/ljFE5lYzp7X7IywZDA9HCXA5L a2q/l2x/kOMrGZgEncp/oxjzFmcMoZ59JwTfne2/ftqv/lalI2fm5yN4JhxivMRwAluE hrsneBChLAoQekjDdV682YVSEksq5mPphzPZMpfEjoCNyuvOjeHrTiDdsfqio+JBx3y9 z3thKFyjszqT7F3MQTI6ZywuQN3ka7uEwn7nBt9Rj0yP/PFslwVuD0xvUiWLnSjKo7FS rBTUN+DcThJPdigq+iecjM8KI/ab4dTXdOlpeKLUs25tuS0EE8tlYSxc/ppnfX4xXkZC c4bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783091326; x=1783696126; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :content-type:x-original-authentication-results:x-original-sender :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to:content-type; bh=XkzbVPKdAobeywKbAI9y10toJzsWTmr84gT+Km5OSuU=; b=bpiNKUbUgbZNwPJqvgwJmwE3L/6YXbdDaHvjw+3P6zn3V4iGo5Zjn82rVdgBwNwjvS xvtL72A1ofkAdOkUJuyMRMRAvXZXUeI0aYOABJ87Jg6cnpcMo++xTlji4FzFsNmNanFp zCbXosaFmcG24Z6Cv0O2wI9rPqdUTTXbNSwWd/OtpAFWal+Q4sfomMu3BhV0ZK+5IPNF YU1ipaSzqMXB8UQgeXMV0cUmulW6AgiPhYsPGjt9JES6mwD6vaEnKLbBxLvqQApMamYe ba9A2XWKDnYMtvLRZWWKwGEvhtbED2cxTiIjUlYgDH/mnW3+qp4s1CWVkNLZOADZEHil Cdhg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AHgh+RrjHEJBK2qesvN9hrxNHf584gPV/ofiRb9qkHrllo16WBD05jQdfxJlgWIH99qscN/hg8nC@ilbers.de X-Gm-Message-State: AOJu0YwVk8+SYgYT2p4jmFzR8o27UQ36JyyQqUbfxh2HWPSrGWPX7h44 MWBg849mvacdbKb8siabUczCA/PFM2nqLXlD8y68BGKUjSUk4ivoBqBt X-Received: by 2002:a05:6402:3908:b0:699:6415:751e with SMTP id 4fb4d7f45d1cf-69a175c5af8mr48408a12.4.1783091326387; Fri, 03 Jul 2026 08:08:46 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="AX0PUUee5HmVJBtSXxKs+kg9rB1p154WyP4D2ysaOt640MnOvw==" Received: by 2002:a05:6402:321a:b0:698:599e:a7d7 with SMTP id 4fb4d7f45d1cf-6989b1c50bfls3574022a12.1.-pod-prod-04-eu; Fri, 03 Jul 2026 08:08:44 -0700 (PDT) X-Received: by 2002:a17:907:8997:b0:c12:13cd:9579 with SMTP id a640c23a62f3a-c12e3cdbe1amr8299466b.0.1783091324407; Fri, 03 Jul 2026 08:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783091324; cv=none; d=google.com; s=arc-20260327; b=FXgkBQM9gq4D7r5GOyW1a/FXs+XnqeVjai8SKLGwEFh54du2Vr67pSerDERBCId1or +IdIMdhPnUUbZrcpxNoBlh68tQhRXuSVV7KEuQWlKJPU++mo+Oioqs+6hJ78lXa6G/am 87ivx6eTrUSJwSkP+FuW7Ek7xs6nRWXnoiZdtLccBVbmVBuV8wEqhx0MDA4OFR7TYADx YYwfdVokfCkGzxMTiG+fZiRfkQHOuiNf7q4h7aBHKGd0FXrT8E8GzSed2VE79d2F3cVT Lrq4VJSrriZOL6Nv/2APPtZhmoGkwwUFBKwGZcgxXi3lLRIlnugj371BTQL0x0L0qei7 jxSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=oeuCOTpzQuFv2lx+sJFftN7CfwJlZnopp9sbxbJ8DCg=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=qAdJrrWYXTiJ8NYgj1CX03vmrhS37/dZT13NyxhBbqMf+u+1Z2s/vDBTpqdfma10U0 IGTGUK8bP5fo2Ql0JdDuLFHmLqTfC1Ah6ETpSt4iwOOu/jBCfi8SQmfxIsMdDyO/gAab 1TRspOmefVzgTpOo1z11Ruk0iwucnsiq6XtA2rOUghaUDfUTqE4NrVAQ7cZZODnNcXcy rde7BFIlUHySZhSnbdD409yD9X88Cp/vW9tU5ucKXSFlBLkhIysYfYanBwqnkQEkkAAs EIS2jPGd+mYJfUir9RhDmacaOAR3lbmxa3SjLsbCaUDFAql1mE8ecdOgrs6V1c5YSO+n 81lA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id a640c23a62f3a-c12b5afbcd1si10515966b.0.2026.07.03.08.08.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Jul 2026 08:08:44 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from user-B660.promwad.corp ([159.148.83.123]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 663F8gDS017164 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Jul 2026 17:08:43 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v12 1/3] meta: Fix do_copy_boot_files error for different distros of same machine Date: Fri, 3 Jul 2026 18:08:33 +0300 Message-Id: <20260703150835.2490688-2-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260703150835.2490688-1-amikan@ilbers.de> References: <20260703150835.2490688-1-amikan@ilbers.de> MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: j/CzH/oClO8A When building different distros for the same machine (e.g., phyboard-mira-bullseye and phyboard-mira-bookworm), files with the same name (e.g, DTB files) might be deployed to the same location and this causes a build error. Use DISTRO-dependent deploy directory as a fix. Also fix paths in installer and testsuite. Fixes test_dtb_deploy_distros testcase: ERROR: mc:phyboard-mira-bookworm:isar-image-base-1.0-r0 do_copy_boot_files: The recipe isar-image-base is trying to install files into a shared area when those files already exist. Those files and their manifest location are: NOTE: recipe isar-image-base-1.0-r0: task do_copy_boot_files: Failed build/tmp/deploy/images/phyboard-mira/imx6q-phytec-mira-rdk-nand.dtb (not matched to any task) Please verify which recipe should provide the above files. Signed-off-by: Anton Mikanovich --- RECIPE-API-CHANGELOG.md | 15 +++++++++++++++ .../classes-recipe/installer-add-rootfs.bbclass | 2 +- meta/conf/bitbake.conf | 2 +- testsuite/citest.py | 12 +++++------- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md index 5d2514c0..a6ded089 100644 --- a/RECIPE-API-CHANGELOG.md +++ b/RECIPE-API-CHANGELOG.md @@ -1087,3 +1087,18 @@ and `arch=all` binary packages). Recipes for such mixed packages should append `PROVIDES="foo-doc-archall"` for an `arch=all` binary package `foo-doc`). Consumers can then simply reference the package by its original name (e.g., `foo-doc`). + +### Change DEPLOY_DIR_IMAGE path + +Change DEPLOY_DIR_IMAGE from ${DEPLOY_DIR}/images/${MACHINE} to +${DEPLOY_DIR}/images/${MACHINE}-${DISTRO}. When building different distros +with the same machine the following error occurs: + +do_copy_boot_files: The recipe isar-image-base is trying to install files +into a shared area when those files already exists. It happens when some +files have the same names (e.g., dtb files) for different distros. + +To prevent this new path is separated also by distro and kernel values. + +This change will influence on build artifacts location and should be taken +into account by downstreams. diff --git a/meta-isar/classes-recipe/installer-add-rootfs.bbclass b/meta-isar/classes-recipe/installer-add-rootfs.bbclass index 111506df..22c23879 100644 --- a/meta-isar/classes-recipe/installer-add-rootfs.bbclass +++ b/meta-isar/classes-recipe/installer-add-rootfs.bbclass @@ -13,7 +13,7 @@ INSTALLER_TARGET_IMAGES ??= "${INSTALLER_TARGET_IMAGE}" INSTALLER_TARGET_MC ??= "installer-target" INSTALLER_TARGET_DISTRO ??= "${DISTRO}" INSTALLER_TARGET_MACHINE ??= "${MACHINE}" -INSTALLER_TARGET_DEPLOY_DIR_IMAGE ??= "${DEPLOY_DIR}/images/${INSTALLER_TARGET_MACHINE}" +INSTALLER_TARGET_DEPLOY_DIR_IMAGE ??= "${DEPLOY_DIR}/images/${INSTALLER_TARGET_MACHINE}-${INSTALLER_TARGET_DISTRO}" IMAGE_DATA_FILE ??= "${INSTALLER_TARGET_IMAGE}-${INSTALLER_TARGET_DISTRO}-${INSTALLER_TARGET_MACHINE}" IMAGE_DATA_POSTFIX ??= "wic.zst" diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 6db10eb3..8134c10c 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -57,7 +57,7 @@ WORKDIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}/${PN}/${PV}-${PR}" GIT_DL_LINK_DIR = "${TMPDIR}/work/${DISTRO}-${DISTRO_ARCH}" DEPLOY_DIR_BOOTSTRAP = "${DEPLOY_DIR}/bootstrap" DEPLOY_DIR_SDKCHROOT = "${DEPLOY_DIR}/sdkchroot" -DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}" +DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}-${DISTRO}" DL_DIR ?= "${TOPDIR}/downloads" SSTATE_DIR ?= "${TOPDIR}/sstate-cache" SSTATE_MANIFESTS = "${TMPDIR}/sstate-control/${DISTRO}-${DISTRO_ARCH}" diff --git a/testsuite/citest.py b/testsuite/citest.py index 250c01c6..7d666880 100644 --- a/testsuite/citest.py +++ b/testsuite/citest.py @@ -522,8 +522,9 @@ class InitRdBaseTest(CIBaseTest): super().init() self.deploy_dir = os.path.join(self.build_dir, 'tmp', 'deploy') - def deploy_dir_image(self, machine): - return os.path.join(self.deploy_dir, 'images', machine) + def deploy_dir_image(self, mc, image): + multiconfig = f"{mc}:{image}" + return CIUtils.getVars('DEPLOY_DIR_IMAGE', target=multiconfig) def dracut_in_image(self, targets): machine = 'qemuamd64' @@ -555,7 +556,7 @@ class InitRdBaseTest(CIBaseTest): bb_should_fail=False): mc = f'mc:{machine}-{distro.removeprefix("debian-")}' initrd_image = f'{initrd}-{distro}-{machine}-initrd.img' - initrd_path = os.path.join(self.deploy_dir_image(machine), initrd_image) + initrd_path = os.path.join(self.deploy_dir_image(mc, initrd), initrd_image) # cleansstate if the initrd image was already built/deployed to verify # that a new build does result in the image being deployed @@ -725,10 +726,7 @@ class DtbDeployTest(CIBaseTest): self.init() self.move_in_build_dir('tmp', 'tmp_before_dtbdeploy') - try: - self.perform_build_test(targets, image_install='') - except exceptions.TestFail: - self.cancel('KFAIL') + self.perform_build_test(targets, image_install='') def test_dtb_deploy_images(self): """ -- 2.34.1 -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260703150835.2490688-2-amikan%40ilbers.de.