From patchwork Wed Jun 19 03:04:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liu, Yi" X-Patchwork-Id: 3621 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 19 Jun 2024 05:05:00 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f188.google.com (mail-lj1-f188.google.com [209.85.208.188]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 45J34xhD026418 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 19 Jun 2024 05:04:59 +0200 Received: by mail-lj1-f188.google.com with SMTP id 38308e7fff4ca-2eb6f6b1b2dsf47148971fa.0 for ; Tue, 18 Jun 2024 20:04:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718766294; cv=pass; d=google.com; s=arc-20160816; b=wgWL9/EjrlkU2P0g9QAptVcLowgyKI/ketbvafRYEwLWfY61BcafGsgLrPleCsm1zD eKU4TGPaoreJzHeJah3J1t95Gta3Tejm/0oq08Uoi3zDJpZA4dadBOwWg1A/j/NfHAFY TqnqpH6D7pc5ney6WOk091Hnmmj5yDrWT9YcvM48BvtRrva62rysXl57iu+nQLrJ+7H4 qjN2eiA9fr4io5x7v5IaPWZAuGUgFNJisb4rO/+pYTalq3zjtwCzscOSBSk0inAqaZqX wAzayF3WAXzlD2cVZ5euABPsbUQyF0UgZ5QnsTNCWgsxOC9DN9mUeRQhOxJOr0awJobN D/jA== 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 :message-id:date:subject:to:from:dkim-signature; bh=9qIRDz4BNd1Hm34Dfg5OBX1Y94F8VrsKsc80HF9MMtE=; fh=KT7FH//FKQ0sg3NFI96HoSzMbzXk2n9l5lIxx5jJxOU=; b=ld2wPRCKpQwgn/rkTHNFr1PXrG8K3U3wagAWv276bmDhFvpZ3ZG14v8Ag994Y9Rw2T I5dv86FwKKfEvTyWjlPsRs46aVzwhhF67vd0Dv7cTk59NsWFtEuyYbZ9xiGtYQJi6TMM cy1Md7G2QRk53vroP2EzDjJXZEwD+UPUCbsEu7Ssa7PYgtQB4Y8SNVmdK/IOsX8QzVSs BVzu7ejUBljvjT3H6E22/Exa2zun8zbyfdcx6Y9nd2VPPWrNwgbd8MDUdATfT4i+t7JV tYR/9VfMRxibPvCthPkiRTIXGAzQ0M957AbyFwQCn+WATYaIpw8R1fzu5NkrsAm1kQEG xUjw==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=cUjQm9p1; spf=pass (google.com: domain of fm-1326608-20240619030449e138e249de0974cd82-ecgqhc@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1326608-20240619030449e138e249de0974cd82-ECGQhc@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=1718766294; x=1719371094; 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:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=9qIRDz4BNd1Hm34Dfg5OBX1Y94F8VrsKsc80HF9MMtE=; b=sONTaawQ17fyxLLRw4TTCSdYm/q7W4Q/Aq4D3Pk3to9v/o/VKc+0RP6CFbyhpVXUIk DNVmuNEyEX1xDf8X+PrtkB0nrROZoDgBTXYmf/D93u/S9HY2qNPWtDf3fGNEcI2viyD+ +nlm/f1nI7wSETq3xOtZMXT5tIuZDjPJLl9ih1oca4OM2Nb8qwnz2j5cOOqBagtDLdFR JapC7OA+x7lAZdIt9uf0IAmU4h4f65ZydIVrGKwLZiLbKzsguJEgRsN+wVwDjCzpiNMH zOZDrkc866A2Fp9MBk1IvDxWvMwvAiOsKuJCjGxqkmd/yrws2dBJw0CMqJo+oNx2W5Rk DXuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718766294; x=1719371094; 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:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9qIRDz4BNd1Hm34Dfg5OBX1Y94F8VrsKsc80HF9MMtE=; b=sN2RbK5MXUUUIZMCbV3EgKAGpYcHJynz8h1o40DHWFmDhS2n0RBXYWJ2VUouI6tblg YjSfSOXmjY0xA4zqpK0ZtIR8tQhmBJkqIz57REkuUSV3Bn1FOktDURZVQGEd5qtaloQM CVVB1VtYl3kc9VT4pSDgWycKzxi1VHO6zFlbdD9OYdFzE/jROvRL21qw0Zin47xub0k6 mZV+2ro9XDyLrwrjD7+lEAhfQkCk/zauKuBkNQ8SE10LrfLkKNlC1Bg+3UiiOMcSEd29 /SOLuEYtvIsa3c+bejmP+HJ0po2yJNiVpBGmFafjtlOj926tcQzRBeANxt4CyilRWwpS cWzQ== X-Forwarded-Encrypted: i=2; AJvYcCUIHzvsMQwvOR5tDAf2VQV0Lx7vTa1TU5H/1DOOfwM2g6pOkZ3IUzkH+F7hrxqBLLohE02lJeqr6/FbzTNBJ5iCtqVj3tU= X-Gm-Message-State: AOJu0YybYuOcDEna9yQSZBMu5gW1h1xhqaLcNjf3lhYk+xWJ+NOHT3cJ PfrHYqN1CWXhRJxD9XFzmrsmnRTV/A3PkArQVoKqbuMM37wiQFxL X-Google-Smtp-Source: AGHT+IGtYbUKeCzhLGL3dnrKnwDYIJ67oDzP0MaNLGBTaWl6quluobGhXZN3ZFMQrhv+fdhwrNhqrg== X-Received: by 2002:a05:6512:238a:b0:52c:c9e9:7dc1 with SMTP id 2adb3069b0e04-52ccaa5f82bmr967895e87.32.1718766292607; Tue, 18 Jun 2024 20:04:52 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:5e1b:0:b0:52c:a1ba:536b with SMTP id 2adb3069b0e04-52ca1ba5523ls2389948e87.1.-pod-prod-03-eu; Tue, 18 Jun 2024 20:04:50 -0700 (PDT) X-Received: by 2002:ac2:518c:0:b0:52c:81d5:6d0e with SMTP id 2adb3069b0e04-52ccaa559f0mr761882e87.2.1718766290327; Tue, 18 Jun 2024 20:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718766290; cv=none; d=google.com; s=arc-20160816; b=TQfBNpomprwFKi1OVcc7U+Z6Au+Q1lsgWBuzahoY5uDU0tZTcS2Yo38KRARUThq2wi gfQO2m9Ld8wV/66dO8DL5U4zs6wCvH+8poFnAQlikvezfnuhMKTY/hGPqGuR/DeJToGd CjmgUpWlr6xcbLcJkcR03CPd9hhF2gYJnYrjUUn6PlGLuKoCa4Ja+nITwivhajDxR9GW N+kFWZ7ZVHx3tmaGitO68MRi++YBznXiKl0ncEA2o0RoeSqhLiCui/GHnF774LEuKDpF /Oog7Fxd5retgMchsYtSc7iPrZYD/2HMr/nuHmJv+KmvG9ef3dzA19AbaaGgJNAYe+Qt QmsA== 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:message-id:date :subject:to:from:dkim-signature; bh=/P89t2cL7RujXh4alFIH6/M+J2+hxk6yXLpuXEPNDDE=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=nLjz3h1VTVGBPglk2/neir/rrXrhVO790kFWzyi4vPxSRLqlPQiRDOddtCx40yk3qm DZPdSY9US/6NJ0bE+2V4AlPWXxNmoHcVRV0b50pMYH2vzOKir4I8OT0DHyttzuRkYPiG suIRiYeHYRBafqgiiN+GNPKT0QR8NAN5qXc0KBhQZSTTaQtZYJGqUp5mDvoPp2Uty+90 i16G8Imj4i4r2TuaOWPj0p+y/fvS0xx6Lc96ZOCNmo25keHLmujPxJlqYkaYb8u3YBCD 6Yxl9HLdU4IaUWrUahWqK1g6t5epsH+/L8URNZAwRRWZf7wYuZkodl/tDNQJvmJHwbP8 8Pew==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=cUjQm9p1; spf=pass (google.com: domain of fm-1326608-20240619030449e138e249de0974cd82-ecgqhc@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1326608-20240619030449e138e249de0974cd82-ECGQhc@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net. [185.136.65.227]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-52ca2839febsi296549e87.7.2024.06.18.20.04.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2024 20:04:50 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1326608-20240619030449e138e249de0974cd82-ecgqhc@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) client-ip=185.136.65.227; Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 20240619030449e138e249de0974cd82 for ; Wed, 19 Jun 2024 05:04:49 +0200 X-Patchwork-Original-From: "'Liu Yi' via isar-users" From: "Liu, Yi" To: isar-users@googlegroups.com Subject: [PATCH] rootfs-u-boot: add missing import get_bitbake_var Date: Wed, 19 Jun 2024 11:04:40 +0800 Message-Id: <20240619030440.1858-1-liuyi@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1326608:519-21489:flowmailer X-Original-Sender: liuyi@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=cUjQm9p1; spf=pass (google.com: domain of fm-1326608-20240619030449e138e249de0974cd82-ecgqhc@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1326608-20240619030449e138e249de0974cd82-ECGQhc@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Liu Yi Reply-To: Liu Yi 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=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= The variable image_rootfs_dir will not be correctly defined if missing import of get_bitbake_var func. Signed-off-by: Liu Yi Reviewed-by: Jan Kiszka Reviewed-by: Jan Kiszka --- meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py index 7dde49d4..5611f93a 100644 --- a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py +++ b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py @@ -20,7 +20,7 @@ import os from wic import WicError from wic.plugins.source.rootfs import RootfsPlugin -from wic.misc import exec_cmd +from wic.misc import get_bitbake_var, exec_cmd logger = logging.getLogger('wic')