From patchwork Mon Mar 4 15:32:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3050 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C06EB42757 for ; Mon, 4 Mar 2024 16:34:28 +0100 (CET) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-56544b5af9dsf3124866a12.2 for ; Mon, 04 Mar 2024 07:34:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709566468; cv=pass; d=google.com; s=arc-20160816; b=R9p58VRQGdi03kdBdg8PFb4F93rxUn8vc8I8VSQrjfvAmo4DAVHVowiy/tJl6Q8cjW GtjcOAwnKmsuBHM6Xe6MucKVaZLvxb/+yTx2CCYDVYNhtg1wZPfOZLddddxlGemUis0+ Wb/M48bh1NxPf35TxKS1VzHFoQsuvhhhJ1oyQfX/Y+nI0AH0rWz6+o1C9GyZLOptF/US bwsAObg//G6GmW4OYys6gP8+rySThwq/jithu9+8L/VoIRgLarWNG/PPofif187qmp6q 47irK+bCAgobG5Gel357PeOKZMWjpIR0etHK0CfbBTrt+QaEF6OYjqZQrdQ/OY7KcUzq 7Eyw== 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=N4V+T0siDqquVgP0ohzqTcc7XE3x92U8EkSLblZfkMs=; fh=pE08Fa8uxlzG+bDlT877MHmQesw82A6+VFX+VQecpQU=; b=FRnJfaYm5NYbdKDA/DU9zjnOK9VvGPijnkfn//camDYxAKUUBmCh00gQGfU4jGsbdD ofNWQgDfeHq53cuVB3FcNBko6BJ/IOWEgKGSP8WzqswL5qdTn5fSsQNM53qYX4BuJBMk 9LUot2OTIudJgkyKUI/BcANqY6dWVBXYx1C6SdXY8T64Cisu1wl1SpJuXanIrUR75zu0 h1HDBhp/UeHbOmy2Yva2gbhM6OoKFg5Ib7b+zAPEio1ssADx618w+BU3Pw8Y7IxW89Ws kVTEqwRRBg8urVnNOISwbdOlkGPf2d1oRvHUwABUVvvxhWkSXwDvpjypBGfzdfXgTQuD o3ZA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BSMgt4HR; 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=1709566468; x=1710171268; 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=N4V+T0siDqquVgP0ohzqTcc7XE3x92U8EkSLblZfkMs=; b=blaJWm70H4YVo/Oiu4Y6efAjzAB0L1+NXfCgqGKM2Q7F6oEB5/qLOuS+UMs+7rTnlP r6QPg7cahfPNd1kzBWu5538yuIPjQ25vNBtJbiZuLGJeDm7OIPrRyGE6UPjnKfEtPRiM opxxDIV5rDsWzF/jFP4mggR7gRDHTjwz05Uxs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709566468; x=1710171268; 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=N4V+T0siDqquVgP0ohzqTcc7XE3x92U8EkSLblZfkMs=; b=Oz//gle8R+hz+QYyF7UmCd5rKcx56Yoe+w/8FCWEfETmEsjehRwx+TwwZcmh0TI+3L pbKLPIVzVw8CAsWbZpXsoIAl0dixwIyzUyj4wrHPfGGc0/YHtybw8DSv7k+IjqbptFy9 M4y+kioq0bq4TmQhDS9a1jEVCVny17Uj0YqhtIN1XAKNw7uPOfZmXLEIx+3CX2uuqKGg /zWOedheHxlo2kDNy9D9azB10T6cohO+x8CScZCeCl4QmqqREJswL6oGd4pFwwAADF7P V1HTrk71VIp/9pq+AT5+QZEXhmwv6YsTF+asOcZoKSZXPx0qelURk2YAc07OjRJrBxwV b4MA== X-Forwarded-Encrypted: i=2; AJvYcCWRM4mJ9kROOXivcSwIStYaaMZJy2BBJxk7u+op2QZgLTWnhLIrq0AR5SKfYpRO5BD251VQySS4RG9ulljfVc366g8Sv0thOoetxSY/KssfZZ5aDbAncj9cNi5tJg== X-Gm-Message-State: AOJu0YxmcfgPYVc16eWrDbhHwJf7zLGQ9Uz3GKDVTJo+fPq1QXdJeI5f zXDgOR3UFTDbyIZ+dPzbihWZ0qlTUZdGI67ZiQkA2OwWW2GAPlePwDb5rt+xsPk4Bw== X-Google-Smtp-Source: AGHT+IFFiw/IUD1CvAxhh8jvcnuDnGQ2WlT4yO32xEZdENAPdMBT64qZVhbDCZAnCzX9ug2YS8sg5w== X-Received: by 2002:a05:6402:2267:b0:565:6bbc:39d1 with SMTP id du7-20020a056402226700b005656bbc39d1mr6201024edb.5.1709566468290; Mon, 04 Mar 2024 07:34:28 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:f26:b0:567:5bca:8f2e with SMTP id i38-20020a0564020f2600b005675bca8f2els289768eda.0.-pod-prod-06-eu; Mon, 04 Mar 2024 07:34:27 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUNe9iVjOlKQMis2qv/wgh34s/+buLVZBf/6l8TY8jICtFVhRh5apXUbZ5ol8o+H57xkUPLu0aW9rj2L9yjsjUbONvapn8FF+OhbX2aCvo301Ph X-Received: by 2002:a17:907:367:b0:a43:f020:57ed with SMTP id rs7-20020a170907036700b00a43f02057edmr6275023ejb.73.1709566466789; Mon, 04 Mar 2024 07:34:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709566466; cv=none; d=google.com; s=arc-20160816; b=TNDfIJzLbDO97CkW2e9Fop5tFJq9hq1FLdZw+ICGPb9MeWyW72AfvqutZBDwuMI2vN bFGsrKTbDBbpGhTCLonnWA04NlWVzCsJhZb/zRGVPVAyVRQgD0y76STvroMM9Lwgut/2 w1zSFUY9Q/oaYPE5TRrY/uOPN2/csDFrdhZvW7hTL+rbgU707C+Ng7KPbUI01tBGgr7g JFM4l/KkEkDd9RkdQFFZjhoPQ2heTEhwGeg25ndWiVlXUZ8bI40es3qA+M7hnoNjFeHz dp03OH7URiUbnStbPTr1MpNF0fVV1hr8xAU99h3nsPn9HUfZoDk9MLQEZft1deHZMhuq Emgg== 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=PTxw9v4vJWFWFxqGPEIz5b+ovpWbrurOUUDeiiATkds=; fh=XL5pem+ygcuPqmp8PIeSFJLpIwqndXCukRYmwj9uPx8=; b=z73Tolf1cRW0jgGryfQp5cqP5aUvOG4Gc2pTWUcPYSskwNxVv3YgeNnnIA295NRrdo GA96mbb9lLRlrGARy8EUoAoUSF7dybmeyxTlBvieUYmY6pML7eMvcj5TgVQi8xoA9M3s Qvy/c8XuHZMzy4xdlNnyaUR8vvccqIVclMytkwQnwxJoLALa0q8gs5Cqiyy2BLe2J4X6 3FiAi7jOuWM7TegOTzsqoR7ybeoIrClg/+aKFsVSfxZJGHLO3eUkF0ZbaEFcEKcF/YRQ utztF/0MzAvDBHQC3WnpJhME4Ko2X/i3Ey3r58TaCfDdwIclBCkBY0F0Tpbh/MldrSBE ET3w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BSMgt4HR; 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 m14-20020a17090607ce00b00a443a6c05dbsor3371900ejc.11.2024.03.04.07.34.26 for (Google Transport Security); Mon, 04 Mar 2024 07:34:26 -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; AJvYcCXF7sSDbj1Qa2tBsIssS1KXrH5HYdERzu6qN6TkoqZNPrgzCg4lwkYoK53Efw7Rxewip/b+U6leA8v7hhOYq7PhwR+aGAPAHPwXoXTi3aRVdkFP X-Received: by 2002:a17:906:1114:b0:a44:729f:5bac with SMTP id h20-20020a170906111400b00a44729f5bacmr6065947eja.53.1709566466482; Mon, 04 Mar 2024 07:34:26 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2001:b07:6474:ebbf:72fe:558f:d55e:d423]) by smtp.gmail.com with ESMTPSA id sa20-20020a1709076d1400b00a4432543b21sm4936082ejc.198.2024.03.04.07.34.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 07:34:26 -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 v9 15/22] boot/ti-k3/ti-k3-r5-loader: install tiboot3.bin Date: Mon, 4 Mar 2024 16:32:46 +0100 Message-ID: <20240304153253.732708-16-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240304153253.732708-1-dario.binacchi@amarulasolutions.com> References: <20240304153253.732708-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=BSMgt4HR; 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 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))