From patchwork Fri May 17 16:35:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 3570 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 17 May 2024 18:35:54 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f56.google.com (mail-lf1-f56.google.com [209.85.167.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 44HGZqTv017326 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 17 May 2024 18:35:53 +0200 Received: by mail-lf1-f56.google.com with SMTP id 2adb3069b0e04-522362e82e5sf6307761e87.2 for ; Fri, 17 May 2024 09:35:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715963746; cv=pass; d=google.com; s=arc-20160816; b=P6Xmj35d1JHO6FPS54RXmRRnRRQjFwHq16M29sN16rLzGb/TMD4mYzbl9aZ3TrB2oh gjdKovd8PuuDKQJqZbYH+9d4qIGP2iG/0kdDqi8WaCAViEKQE96Blj6NE48peh2DhWQ3 k/0SiCAvKPpozdj12OrOpDPHQFdSj4yhgoWZrP7VMN05viPhi03jNWaUnqUqswJ1bTCR uf0IBwHiVWRgjyaofmInsHraNWr1xDlJ4r2yZmC8ClINFMF/fxpG5tCqD467baEuqVvu JDIDzBn3Ud2U3bnrjDDssWPWBMbNX7BJyQwji02pT3luXOYssxaXeVsNTaCHJ62MBGk6 N6Dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Gq0sUE6WVPevIjAqCdY3c1GM/mIHsDxf+Rx1iIVQImM=; fh=dtuIbh1TW4PdVzftuwCa/upRte/85t0BUrQrk7gcvI0=; b=hWVttudHZxYBy5oVzk17b4wHhLlz4LVxpFUc/FIeG1hTuDq0aQIws3wRnA4E35Vr+8 CpASUJaQPG5c2J6Y8C80iQYC4+QBsQVQolMH7o2qbnmZOa5s2RWZ8PZEtGTi1/c9qkQl p7Nohzl9HNdnyzBDaEQaV5dasgjHzVanhImy0WE2T/w9wYCeJNZ2JTIcJuYIJM5SrfUQ 6lzbuxFVeOIm599E69s2u4xgw1A4uZzCQbDYkWKEFVS+feucfsI5pZpTTm8GJi6CIoyR EI3ZIo+y3osr4oquHF2K2Tq0axq+v9RLukvZJfpgNuzJrVQRnHgM9lI7aPJ5U1NG7SA7 P+7Q==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=B4K+wGlz; spf=pass (google.com: domain of fm-294854-2024051716354321a71646d07a808898-r8nili@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-294854-2024051716354321a71646d07a808898-r8nILI@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1715963746; x=1716568546; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Gq0sUE6WVPevIjAqCdY3c1GM/mIHsDxf+Rx1iIVQImM=; b=vDkXSbu+tUJxNvqyORcuj9KsFofPUdhN8nSU7cTI8QiN2qeamTwN94TGYypHoWH2Dq fzh4HC2WaCiCajXVUC7B5N+IWPLvy+mVhMX8mDGv3Mb/iFS/cVgJDMREdOJnj3vMLTkl 9edrAQn/TrtgQRm2V+6kt5X56G6Lo2Q658RYh90IOLMksnC1z6tsxpOu2gF+Wy4yy9Fu 6bPZh8tzraC18JRI9m94ySset5UXmmA+fV6x78ScKF4NUgJeoFnW5ynzjGahIm1Hfwwa BX7UOc1eEjD9LrpbaxD3xBJMtMRbUF8uYHLAGO4YNRbmv5JPO6r8XsJwADrrk2g17FXi Zp6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715963746; x=1716568546; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Gq0sUE6WVPevIjAqCdY3c1GM/mIHsDxf+Rx1iIVQImM=; b=VeN7A+F+NZrHgSyzXQsPg8USzz/moVV3bJhiAs6PV8lsMMVCAQ9Lcq/AXvrTxEhO1K oapHovxq2pqhJbSLDZOFVc8ek/uika6zDgSLyMzwp6KROijW9IP8N8vfh9BUWvR4rzTw T3mEhBoGNxRM78iE9qtlbEEwXJD7Lgp67bYpennDAtK+pTV+zFJ057ea08BHODJP7e3D 5SrWBKpc29vgUAQ0X/aGeTc79bdpAyX4ORT8Oq0GBztFbKgCCKJI29n9scber1EDvmwj rEIyUUK7+jzRESU0G/2II2j/SI0q71E3hf0vsvkmw56Yy0T2wV9ViXYs7eRPgeGA9iAp XAWg== X-Forwarded-Encrypted: i=2; AJvYcCWrdk0Me2rXbgO/xqnvPLfoyKrw23KjyFHfS0J17FbTgfIGS3YOrLDByY505OPmAwZujEGVVcrCvnKueuxJj7lo2C5HmWc= X-Gm-Message-State: AOJu0YyvcPk/JlzkDW2tOcd6zO9TQQVVBfOOq4Y0Zmz5N+Wwttn/Ewkm +J1yAWATX+Q1EDA6XFwqJGMduVVlZeaOmEZOzvfFSuBrisKRM+Yr X-Google-Smtp-Source: AGHT+IHd+hOHRZ9q+QFdxKT3W9ivAOgwckMn2y+W7UURbUKx47bqKwdRUe8pgvZS7/CfdKZIfdwAVw== X-Received: by 2002:a05:6512:1310:b0:516:cc06:fa03 with SMTP id 2adb3069b0e04-5221006ccdemr17474101e87.56.1715963746194; Fri, 17 May 2024 09:35:46 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:43c4:b0:572:3b0d:1694 with SMTP id 4fb4d7f45d1cf-573332e9c48ls2206567a12.2.-pod-prod-01-eu; Fri, 17 May 2024 09:35:44 -0700 (PDT) X-Received: by 2002:a50:a40c:0:b0:56d:c928:ad76 with SMTP id 4fb4d7f45d1cf-5734d67e8d0mr15188212a12.26.1715963744079; Fri, 17 May 2024 09:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715963744; cv=none; d=google.com; s=arc-20160816; b=fjCsaC1xakhTG7+jvwA4myPsw4J0tDyVYp6poF+p4jy4GPxrGxdzW1MuhzI/ODNWtT RTC10SEGTSRwUymLh+NrVcVLMi4220xgOV1LAFdoqWP1ZDNijK2IQv7dxrAyKDQzFiiv nqcjlgiiTYX48A9X00U0KTU7wL17QCYMNNcGDZWnOiGgaBV4AonoYrCJ3fHQm5ZiV3fq yuzabulFfISVs2PLPSqxP9Khx2I7TcrXKQS6piuQPiF4rw5ByP6g7+bdhInm9WWyglUg wjT23Fd6fG75S7jGk5HNsqsxtVCKJiSiC7J59Mrw81gkSSw/xGz8E4fsXBJ4bD5QJb8k fQgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=VeZKB82Qfy/aDB+eLCq5K8Q4Xp0W6NZoCkR748pAnIM=; fh=XGT9su1InluIJlpNbfO5AhdONNgYrcrI0omn79eqbSQ=; b=oLYUuPHLxAE6oOx9fGgbgprYVEe7FBahHKT3GB2vW95Cc5oPGvFbwrErE8TFeXsGev N1AMgSkcdnpbfgSwTEB5jfGSAGgTYp0T8AZ6yqZSRUq74aPfOSV8Qsy45ALNhGM2NM44 3e3raHLQKfX7Q6tNAYI+ksc1DjsfypBeZRjYtEbdrjjF2tV5JStjnwiQ+l1YBfTotvqe yawUAPGumHgN3jbZeGAuBeP6/FnZt6Tp92THwK8IlKhNrP3Gpmtk4NmOj/vB4H3AlVB6 MT9JXsT0rpvyQm83lbDnsizdgNXmEXvKibcZND0bnTZJNMId0oSk4P7KQ4vCc5r0LHXR mpCg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=B4K+wGlz; spf=pass (google.com: domain of fm-294854-2024051716354321a71646d07a808898-r8nili@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-294854-2024051716354321a71646d07a808898-r8nILI@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net. [185.136.65.225]) by gmr-mx.google.com with ESMTPS id 4fb4d7f45d1cf-574be5729e1si305430a12.0.2024.05.17.09.35.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 May 2024 09:35:44 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-294854-2024051716354321a71646d07a808898-r8nili@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) client-ip=185.136.65.225; Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 2024051716354321a71646d07a808898 for ; Fri, 17 May 2024 18:35:43 +0200 X-Patchwork-Original-From: "'Jan Kiszka' via isar-users" From: Jan Kiszka To: isar-users Cc: Felix Moessbauer , stefan-koch@siemens.com, Adriaan Schmidt , Anton Mikanovich Subject: [PATCH v3 3/5] linux-custom: Resolve native source package differences Date: Fri, 17 May 2024 18:35:40 +0200 Message-Id: <99b4e97b01b683fa3bf6490475e3c8a125ab824b.1715963742.git.jan.kiszka@siemens.com> In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-Original-Sender: jan.kiszka@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=B4K+wGlz; spf=pass (google.com: domain of fm-294854-2024051716354321a71646d07a808898-r8nili@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-294854-2024051716354321a71646d07a808898-r8nILI@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Jan Kiszka Reply-To: Jan Kiszka 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-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: Jan Kiszka When building the native package, KERNEL_FILE as defined in bitbake.conf is wrong as it uses the package arch. Avoid that by redefining KERNEL_FILE in the kernel recipe using KERNEL_ARCH. Signed-off-by: Jan Kiszka --- meta/recipes-kernel/linux/linux-custom.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc index c54c287f..b53d136c 100644 --- a/meta/recipes-kernel/linux/linux-custom.inc +++ b/meta/recipes-kernel/linux/linux-custom.inc @@ -175,6 +175,9 @@ def get_kernel_arch(d): KERNEL_ARCH ??= "${@get_kernel_arch(d)}" +# set KERNEL_FILE without depending on package arch used in bitbake.conf +KERNEL_FILE:forcevariable = "${@ 'vmlinux' if d.getVar('KERNEL_ARCH') in ['mipsel', 'riscv', 'arm64'] else 'vmlinuz'}" + def config_fragments(d): fragments = [] sources = d.getVar("SRC_URI").split()