From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7240866782221697024 X-Received: by 2002:a05:600c:3657:b0:3f7:38e1:5e5a with SMTP id y23-20020a05600c365700b003f738e15e5amr1530860wmq.33.1685895673218; Sun, 04 Jun 2023 09:21:13 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:a53:b0:3f7:3990:93f3 with SMTP id c19-20020a05600c0a5300b003f7399093f3ls232590wmq.1.-pod-prod-07-eu; Sun, 04 Jun 2023 09:21:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4pCN4lcrw/hY2gDeEA/rt0oMOPTkgM71s5sM0pr44c5254kYl9I8llg7rwwE0rUOn74zZR X-Received: by 2002:a05:600c:2146:b0:3f7:3636:358c with SMTP id v6-20020a05600c214600b003f73636358cmr2090540wml.11.1685895671740; Sun, 04 Jun 2023 09:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685895671; cv=none; d=google.com; s=arc-20160816; b=apAHaaSTlwGhVL8dEjmeFuzO0uVLapJ7uiMIYN2Wdojb5msYa15ItDeLJcg3dwyJLU hMRBr8Dv9jsdoDKWJ6iUBK7Wn0ld2rJuxevoE8wnn+xn40jcskeCR/n/ynrkuiOyyiYU yxl+Ax1yaA6PCvqQ0SXKBNtCFXasq/ypBXKTJV1jbkY1Y32kQHtadRcstILquQOiNENQ hGf8+pE4MVlgeQbI9Es3w6yv4rTBWCTPTdTuxEmJP2A2frnfD4vXxQ74iT9hjP/SuxNP xhI1JNfG68DJzDn8b0k14ljuPUWEN3UWRJ1YDDWSkDwIy1tGKqDvCfVxpHYkcvTDr1wn S5+Q== 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=BGCtwgVd3BbpwtTRqWr6GPxZ/ixbd1f8+3LsQxBnywk=; b=eztcUHKRtKjJ09KDuYeNsiJv60e71jaNf7RtTNYR9WHu/1O4CIp2GAC/sfS14w++F9 wTgGS98OyvGQd7sSabnwLb6OeBcpO1ToXy79IujBbK/+h80hKqd08oUMBmZOzEW1cMVu 7uCNGkrhRRsAEdmXk6u5X3VhOU58r5EdNcLBjLBjOSgafw6x8vUYNPma/MPO2Xs+hsMO AOxOEqXHsCLGvnQ/FNHHHMgYDW9gL+3feNmgITzGeBA2nDXs9hZciYJg8ffdSKN+EBiy vNgdUHmWcx++I7oEkf6gC4Mtyvg7weRaHVzAHgEbvxskIiPFYtv391Xe3enSyGPGt7lw Ix+w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=KcmA5ksv; spf=pass (google.com: domain of fm-294854-2023060416211185084be96f092442ad-90jokb@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-294854-2023060416211185084be96f092442ad-90JOKB@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id co17-20020a0560000a1100b0030ae88d3201si540189wrb.2.2023.06.04.09.21.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jun 2023 09:21:11 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-294854-2023060416211185084be96f092442ad-90jokb@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=KcmA5ksv; spf=pass (google.com: domain of fm-294854-2023060416211185084be96f092442ad-90jokb@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-294854-2023060416211185084be96f092442ad-90JOKB@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 2023060416211185084be96f092442ad for ; Sun, 04 Jun 2023 18:21:11 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=jan.kiszka@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=BGCtwgVd3BbpwtTRqWr6GPxZ/ixbd1f8+3LsQxBnywk=; b=KcmA5ksv3GDOi9TMCDyvj3VdvKiEsYLmBMHZ8sWS4Zr6R51c5D1K2QP2M7ISWLlhTImtiu AXP/zFYROqXheOnWxI+nV/biCpng2Un4J9C3i0CsGvy6HtYaw/URctu7CSUxqLcXFOYWsEbp 76h4iURwaW0W/Yy2dKD3bKSyGzAXE=; From: Jan Kiszka To: isar-users Cc: Felix Moessbauer Subject: [PATCH 4/6] meta-isar: jh7110-u-boot-spl-tool: Rework Date: Sun, 4 Jun 2023 18:21:07 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-TUID: aWvIcQgD0wuZ From: Jan Kiszka Setting PACKAGE_ARCH is no longer needed, we can ask via "-native" for the desired build type. Furthermore, install the binary as normal tool under /usr/bin to simplify its usage. Signed-off-by: Jan Kiszka --- meta-isar/recipes-bsp/jh7110-u-boot-spl-image/files/rules | 2 +- .../jh7110-u-boot-spl-image/jh7110-u-boot-spl-image_0.1.bb | 2 +- .../jh7110-u-boot-spl-tool/jh7110-u-boot-spl-tool_0.1.bb | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/meta-isar/recipes-bsp/jh7110-u-boot-spl-image/files/rules b/meta-isar/recipes-bsp/jh7110-u-boot-spl-image/files/rules index 6a25dd36..a8b2c6b8 100644 --- a/meta-isar/recipes-bsp/jh7110-u-boot-spl-image/files/rules +++ b/meta-isar/recipes-bsp/jh7110-u-boot-spl-image/files/rules @@ -4,7 +4,7 @@ U_BOOT_SPL_BIN := /usr/lib/u-boot/starfive-visionfive2/u-boot-spl.bin override_dh_auto_build: cp $(U_BOOT_SPL_BIN) u-boot-spl.bin - /usr/lib/jh7110-uboot-spl-tool/spl_tool -c -f u-boot-spl.bin + spl_tool -c -f u-boot-spl.bin %: dh \$@ diff --git a/meta-isar/recipes-bsp/jh7110-u-boot-spl-image/jh7110-u-boot-spl-image_0.1.bb b/meta-isar/recipes-bsp/jh7110-u-boot-spl-image/jh7110-u-boot-spl-image_0.1.bb index 08c53b51..f237a9c3 100644 --- a/meta-isar/recipes-bsp/jh7110-u-boot-spl-image/jh7110-u-boot-spl-image_0.1.bb +++ b/meta-isar/recipes-bsp/jh7110-u-boot-spl-image/jh7110-u-boot-spl-image_0.1.bb @@ -8,7 +8,7 @@ inherit dpkg SRC_URI = "file://rules file://install" DESCRIPTION = "StarFive VisionFive 2 u-boot SPL" -DEPENDS = "jh7110-u-boot-spl-tool u-boot-starfive-visionfive2" +DEPENDS = "jh7110-u-boot-spl-tool-native u-boot-starfive-visionfive2" DEBIAN_BUILD_DEPENDS = "jh7110-u-boot-spl-tool, u-boot-starfive-visionfive2:${DISTRO_ARCH}" # this is a host tool diff --git a/meta-isar/recipes-bsp/jh7110-u-boot-spl-tool/jh7110-u-boot-spl-tool_0.1.bb b/meta-isar/recipes-bsp/jh7110-u-boot-spl-tool/jh7110-u-boot-spl-tool_0.1.bb index 1835d474..42d3b9d8 100644 --- a/meta-isar/recipes-bsp/jh7110-u-boot-spl-tool/jh7110-u-boot-spl-tool_0.1.bb +++ b/meta-isar/recipes-bsp/jh7110-u-boot-spl-tool/jh7110-u-boot-spl-tool_0.1.bb @@ -13,11 +13,8 @@ SRCREV = "8c5acc4e5eb7e4ad012463b05a5e3dbbfed1c38d" S = "${WORKDIR}/tools/spl_tool" -# This is a host tool -PACKAGE_ARCH = "${HOST_ARCH}" - do_prepare_build[cleandirs] += "${S}/debian" do_prepare_build(){ deb_debianize - echo "spl_tool usr/lib/jh7110-uboot-spl-tool" > ${S}/debian/${PN}.install + echo "spl_tool usr/bin" > ${S}/debian/${BPN}.install } -- 2.35.3