From patchwork Fri Mar 1 13:36:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3027 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8BFE73F057 for ; Fri, 1 Mar 2024 14:36:44 +0100 (CET) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-56698ef9362sf1357636a12.0 for ; Fri, 01 Mar 2024 05:36:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709300204; cv=pass; d=google.com; s=arc-20160816; b=e67BhAE6ZVieiKrMZhQUUTLeLybyiyC/jwHLZfvlmFdQd3vmLQrSGxwJ8+N1tKABrZ p6T2x8oc3n8V1IH8aFurw0SI+n7SjtW9QS+vuxYGEH6aSyDgsDH3c9GWD5ANzIyK58Ed /3WDcDmXLv2CSH1orgSAOCRgH5xJRp6T1yEH0pCTTdEMcFzUa5FBKpmeayrtdwqI20KF 8hOlObr/DnicyEVNfws1RayxMyU3dH4pkIZCBmzErztwmyK40f/1F3FTF4+ha3E8lqL2 UVYOCPlKkZkOXlzS1c0cZAm+RK29/B+ZoPWgttQ2VVMEmrdjX+BziGo/1Q4NO3NJRjcR 0K2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=rhBNZa8jmyfjEzY3cZNRC8GMy/liNeG80hAHtMsMIN4=; fh=sxkbcBE1Vq67cghsz65v88T7pZVxorXtuCzrxk3mPF0=; b=A9vwahKF0kUtoi1fUTd3IjlvnuOD1C8jzfYKTNoCC073II60YIQaskVTqYtQ6Jpa+/ sToqMjE/2jbzUhO0ikNMjIeuPEkJGPG1T4tWLwk51mTQjQqBX5bq1AAA4M0tP6pOy3BV IpbPQycDtrOjpZNZGDRRNQhdhbXJa1qng6UKobWy1FQ+xw926de08sfqcuZyV1wGVPHH Z6q+k/Kyl2TjSsW5/WGjkJk5H9CNcp7+7aO1WGh+8+OWulgIbnqv5GYez2jzcGSXgEZq 6pJJ+nveEsauISx1K5ES3V/zDAaDeXDZrmxUMmyZGUTfNlx+3Iwa5YtSFY44MlOvF7sK X4fw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mh1H7SLC; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1709300204; x=1709905004; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=rhBNZa8jmyfjEzY3cZNRC8GMy/liNeG80hAHtMsMIN4=; b=ms8izcS2QAVbOUwtQe1g6CguY3ZSpx8qwQq5kKxYY5IXTVbs6R0SSxJC8/WKxYjbmb W+liU6u+uvywRrpBc6C3RfWWCDGy154gJc5eS2RZx92HfCHaznyzLAhIGjqeW35OfWWo 2Ug86SkPp+7n9JygHdZemB5beXVcKusjz4rAQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709300204; x=1709905004; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :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:from:to:cc:subject:date:message-id :reply-to; bh=rhBNZa8jmyfjEzY3cZNRC8GMy/liNeG80hAHtMsMIN4=; b=PqFLRemE8+eIzRFC4JQWNrBA6N9/oDlIH2zCvFVr0jghzpjKyo1a/NXDDCr873FGSV QXmFNLadbw9NQqLciDpbDjtX3YMU5BzCAo/hnwO04CL348UYpC3X1qgoI4WzyDFbTylj xCqhBtHhVvFXIizvQteen5fdC6BXpzCid8gGqfiDotjmpTgWRahpxf9BeDRpz7R8J4D6 Pa/rtGvEh5rlC1r1RsNU1lbiuh4SBqIOubqRptSN3ZiSQA7Oi5PpbGmD2J9PwaBrAM/i 5w5S7nN4qBC1d4lNv/3SuFLrQswy/45KNq5rau6egPN/B6yhGJnnQ5KrgnNndXIwsQmM qyGg== X-Forwarded-Encrypted: i=2; AJvYcCXk4mQa/F0QMeNdEWswS7hT/bkVxdMgSloP/lcchGceWd29t9oozJeWPwQtm3Xs0fZ2vIeCNiXoh/0TdYGpTgUW086VKbzga3NH/AVIHfPsP4vucREf60nTbDQIUg== X-Gm-Message-State: AOJu0Yy1jqT/so1utPj3LlWC0wkLnzl90CYZU+ZeOhb32qYcLmIawmFM NdblyVQpA7Hp7PPcxqd5H3eym+gbglp1ub/KNdzUjSZiqjqAwW3ugdMEkKi145JA/g== X-Google-Smtp-Source: AGHT+IGL4c2gMPM95r4rVhCeQcjxAAsyaeOy+N2u9W5irNTI7L1vTv9yv4N9S3ed8ruv6NqQVqbd0Q== X-Received: by 2002:a50:d6d7:0:b0:566:1952:694c with SMTP id l23-20020a50d6d7000000b005661952694cmr1417057edj.20.1709300204377; Fri, 01 Mar 2024 05:36:44 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5412:b0:566:730a:6e8b with SMTP id ev18-20020a056402541200b00566730a6e8bls111575edb.0.-pod-prod-03-eu; Fri, 01 Mar 2024 05:36:43 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUyr/wtPvD08/PCcmqNkui+qnKzrbXUrKOAbA1vN/Uqsumg93Ebe1ge17pK8GDRLPEussAJHrVz1IYKuslP4GiCQm4FfFsiWkq/uQH+DjfB8gbU X-Received: by 2002:a17:907:100a:b0:a3e:a5b9:d69d with SMTP id ox10-20020a170907100a00b00a3ea5b9d69dmr1513838ejb.74.1709300202829; Fri, 01 Mar 2024 05:36:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709300202; cv=none; d=google.com; s=arc-20160816; b=b0vXU6I9frWOYHIzjTnEOIO5wsZjBLp708zmffQhqVb6Lr7TNnVXEJc/dhin0fKggF RdUnCVScV8hcXuoXtxD1d1MzItHUu2jjz3oaTyeIyjuFLou5P89n4tWiFCEaT+4fFLkd BEu1C0ZY2NshTeCcVXdzNkwTuDdC6YsxUSzzEoUU+7o4XQYcxIsIP5gczA/2RhtFym8E HWTbCPjPhi9GY1QmQk91rNdM+VPoHFulbfORVkjzOAm3WLaEbRY1X2T/vISNnhSEs+L/ ycjWu11AICg2qaSHHDw2q3QVqMK3VPnoHbnaFDFKUaZgQH/6WQuFvLU4+NOoq73JyLPe fDSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=bprQybVcjJtafv+N+uoSsIglL497eIKFD5hLVUAwUew=; fh=bOs68QQdqjidAjKaGcuScMgdpGmjg8surFDlq/uEiH8=; b=D2rqJwvArzBzLzp34SmhPxXHi1hqutVv6/8b8t04OEgAGyZcuwCv5hzLA8nk0qMWvp OIe58DiD5aXMfXHp3Mim/hQl7p4HKU7iKN9nsMTnCohZUPVTIDEgj+/Q1newZepCFzBd 71svGDyOo+9BGWzFNXxIQCmz1ZTtO3vvy2RRrYbqMEv9/mWW35yfSXFPdLcA16GrgWeV z5tCZxQ6O629tX9dUOzJsiNzIwt2kPjrPTvLsCyzyMDcaoiY2tsYRNrM8PN+N3E0PFWy m0Z4BA19qX5D2/lB7P/V5A36bfTjUgUzEnOSS7jcxHOhgF5iQlhz6Fx0D5Zf6Gq1A3Ef G2Vw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mh1H7SLC; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id qq22-20020a17090720d600b00a4455299c23sor1285854ejb.17.2024.03.01.05.36.42 for (Google Transport Security); Fri, 01 Mar 2024 05:36:42 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCXdliXnSKm5LAzcZLxdC5AzXuE8YyUmdufntf9mz2Mq84DxN8ez0XTOxNdn+Ydiho4eMfVWY4U5R65DKPhpqIb8w9UZa8oHB1VWH//Mmr/ZhGkF X-Received: by 2002:a05:6402:2895:b0:566:3d19:9058 with SMTP id eg21-20020a056402289500b005663d199058mr1465336edb.33.1709300202518; Fri, 01 Mar 2024 05:36:42 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:5260:58bc:42cc:9d46]) by smtp.gmail.com with ESMTPSA id q28-20020a056402033c00b005659ea1caf0sm1566608edw.6.2024.03.01.05.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:36:42 -0800 (PST) From: Dario Binacchi To: buildroot@buildroot.org Cc: Romain Naour , Alexander Sverdlin , Andreas Dannenberg , Yegor Yefremov , Xuanhao Shi , Anand Gadiyar , James Hilliard , Thomas Petazzoni , Dario Binacchi , michael@amarulasolutions.com, Asaf Kahlon , francois.perrad@gadz.org, linux-amarula@amarulasolutions.com, bryce@redpinelabs.com Subject: [PATCH v8 15/23] boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin Date: Fri, 1 Mar 2024 14:36:12 +0100 Message-ID: <20240301133620.3547430-16-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301133620.3547430-1-dario.binacchi@amarulasolutions.com> References: <20240301133620.3547430-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mh1H7SLC; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Recent versions of U-Boot are capable of building tiboot3.bin using Binman. In this case, let's copy it to the binaries directory. The use of `find' command is justified by the need to use a regex expression to select the correct file. This is not possible with a simple `cp' command. Signed-off-by: Dario Binacchi --- Changes in v8: - Use the `find' command in pipe with the `cp' command. Changes in v6: - Replace `find' command with `cp' one. Changes in v5: - Replace tiboot3-*-$(TI_K3_R5_LOADER_SECTYPE)-*.bin with tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-*.bin Added in v4 Signed-off-by: Dario Binacchi --- boot/ti-k3-r5-loader/ti-k3-r5-loader.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk index fdb058f3b72a..9a05d005067a 100644 --- a/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk +++ b/boot/ti-k3-r5-loader/ti-k3-r5-loader.mk @@ -70,8 +70,12 @@ define TI_K3_R5_LOADER_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(TI_K3_R5_LOADER_MAKE) -C $(@D) $(TI_K3_R5_LOADER_MAKE_OPTS) endef +TI_K3_R5_LOADER_SECTYPE = $(call qstrip,$(BR2_PACKAGE_TI_K3_SECTYPE)) +TI_K3_R5_LOADER_SOC = $(call qstrip,$(BR2_PACKAGE_TI_K3_SOC)) + define TI_K3_R5_LOADER_INSTALL_IMAGES_CMDS cp $(@D)/spl/u-boot-spl.bin $(BINARIES_DIR)/r5-u-boot-spl.bin + cd $(@D); find ./ -type f -regex "\.\/tiboot3-$(TI_K3_R5_LOADER_SOC)-$(TI_K3_R5_LOADER_SECTYPE)-[^-]*..bin" -exec cp {} $(BINARIES_DIR)/tiboot3.bin \; endef $(eval $(kconfig-package))