From patchwork Fri Mar 1 13:36:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3031 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D9E1C3FAAC for ; Fri, 1 Mar 2024 14:36:48 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-565862cc48fsf2626425a12.1 for ; Fri, 01 Mar 2024 05:36:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709300208; cv=pass; d=google.com; s=arc-20160816; b=xJi2Fn/Pd2PaaF6xQCi2x0EWup9ORcdrF4ayKKnM1SdQYVAw6qPo4G9CVLj+PXYqIB ibPbmQpaAWXQ08mJf+CGVj5QVedCAxbFNJjjJLTgMtP+HBsLz/gtKmKHPVe9rRcH0KF8 p2f2TZ0LhEOR+Mn4aKREPP1tKAOUkirXjPHSTjpPyLmHNJLhL/XkZOCcgR+Ck6f31XTd zpz+0gf7lJMOtWb+qpOYZTOj18POunGF75KKoNAfAf5USOzaGmXSg6NaM6/FDxaSXA46 f3apWiQZkIsN4DxyOCDTEdNZDjg9n2+7pVVOOjVSnVI9Vd0ertvLZMPiVv09AfYyF9Cw Tn5A== 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=XmBGcKzlTsYVWfdNN4wF57h596z2BQFnPyryugwoMFw=; fh=p+E5QWqS4bitvf6exkt+aZshzYHaw/y2wD/vLyTifso=; b=MxQ3dIEJ/M302i0TGpN7Mbt8qce58s+lomXZnAFP4plH4/33w169PdXAMfcF/YjfHB HN1yze6pVirZ8bPP+HkkendtmbPL4y1uL182VTTO1DDXLY8nWK8BBzr5kA2XKupr3ynK qTJI9PtWdeVp6ANGf3KLqZH9cCKbQ6DSbLYicFxBDplvBTXWHiSc+m5zeVo7xiJ/uPKM YU/WjCPrKTwWB7kHdKMAMZHIXEMOI4+HovYphoqAmASwYFtf1C3WAY4fMpPwxeoVJdHK C7YgbnGimE4r1CtEDPjWvtSZ7V5KYuHQtPoLQkIwsebUbYc1NWi5tfKoY00ueLMyYyRr Hp4A==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jwFm3Qcq; 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=1709300208; x=1709905008; 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=XmBGcKzlTsYVWfdNN4wF57h596z2BQFnPyryugwoMFw=; b=IcC7KxzY9l5Mtq+fgUci0senx6CPb5YU3dfkfX/ghbaTpZEFrcoagbgbIuTnGRdv9v qLtMfzjZjA9KXbxMreYEmCR6Z0fkXhm6vhoG+xJVnIMR89Xd3O8j2GBm97S6h2qlw59g puSdUW3Co5IUM+Vh7np8gW5JFIugw6OOXqexs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709300208; x=1709905008; 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=XmBGcKzlTsYVWfdNN4wF57h596z2BQFnPyryugwoMFw=; b=ncT0Q9X6bF7hfqzF+YFk8q7l/zhbcEEsYsSRqKQ2klVDgf+Q0p0hQEgj1xCzYRnEFF v4R6ISQ21Z8m/HotAAbh/K+HwRyXb4l77XKkchrNS8CR5Z9n14pSMr4DzJPqsVlzFcTc CPpbNNKICeZZC9pODznptCDtkCeiBGlK3eqNL8+DQCcLvWSCH4RsGnQTJx+6zTSp+dxC AYmif3P3YGEdRm595frhtgwCxc96TAYHh7r/lDg5ZymSWv8YwuKNqomi4tHcRswavDq4 SzajcKmIqVgt8OrFKv+TXfniPANNboCNmHxt4rGCp9NP4mi/UrgNqH/S9yYlmxzgG2Mh VB8Q== X-Forwarded-Encrypted: i=2; AJvYcCWWq9Q0CthhaugrrwFDOxSV+7C0lzDA00CRZkNZmoivzUrh6GdOzRUaiEi62r2SkZKBZYXbCvAmukXKq+28Lb/5cbY3DexzSSPO+ylRIXCANeqUtf5MjweSbkKh1w== X-Gm-Message-State: AOJu0Yx11ud+CFwaN7KSiYXGrdeWmuN2O8lVpwFfY3PvaYqWlRJZZo7K /yXrh1eX/uTgdVshM3RYvgg2GEMs5xpaYTTmVUk4MUiXEHfH3YB+6IjEydhwVWxW2w== X-Google-Smtp-Source: AGHT+IH2AOjw6nIWYnnsflBLet8VEwHtN9qsnHQPB3mIecP9je+x2biosQBah0FClZe/veco1SWr6w== X-Received: by 2002:a50:85c3:0:b0:566:72b0:286a with SMTP id q3-20020a5085c3000000b0056672b0286amr1673454edh.2.1709300208688; Fri, 01 Mar 2024 05:36:48 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5419:b0:563:c18b:4d80 with SMTP id ev25-20020a056402541900b00563c18b4d80ls186633edb.1.-pod-prod-00-eu; Fri, 01 Mar 2024 05:36:47 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX7UwUSJaxLUcCwFCOKghryibdXeQXKtKS/Tg2IPTD7HcaTaM9+ZdEBnxnjEowHOzC7ldde3cNa+ZPu8k+zEV+4gcCM0LIZZ6+Rvzb2Wq4AZMf3 X-Received: by 2002:a05:6402:2692:b0:566:33a6:2045 with SMTP id w18-20020a056402269200b0056633a62045mr1485851edd.20.1709300207263; Fri, 01 Mar 2024 05:36:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709300207; cv=none; d=google.com; s=arc-20160816; b=ciiSWTWLZWJSits5XpMrtGacYBxpPnnKUAN0C4bTax6BhKwvXucgyoD1p0ytYrl/Kn MzK8F5EnuCyHJd22M16vb8Aef5y2QUZO1beliQWz53G+Otki+wafdwAu7JMBZdONGpaf c7jcgnY3ip2O62KsXfrJDQv5XQ7xt6KfLRIil4yMxVVLMNaqGTmVYY9lElAqekH+PFGF kWi+ph/nZPCk2JN7KUMZsiCvQaTrn/0djexbQAvOlx7yP/bw4yKuPoUTFblqhjyrAdxH rtE2Fkdtdcr+yj3jJWpjpPA7Mylqf1OtPcw4iWl/2VJHmPf9i+PAfeNR4JF7Ja6h4fKv 1ZGQ== 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=GdedvwudBMy6PXkstKINBSTXNLsRNFw8wRdfGPR0l8E=; fh=K29/UL6O1lVnRqxtK+6VMXfqiS05i9WaAohJ9wuyevk=; b=hfl606FPJ+tltl4RcsNzun1BakXkVP5P60ZItz+BzLZhX2iisDW9vmN9k1kzNCL+e5 HjNd/Un9aX2GblZHFOAZv2lMEgl5V++d0sAjvdGldkrf3TCuMc0nNrHu2mMPFIXXEjHH 7IsGiy7eFiU2VGfNV4bGO4/7b9kVzRyBoO3DQLQ9cv8renRBlmryVefeVTwtzA9kIoTu RdmizWfCzEp3kkVWN7w7g0Y2bQc7kUGWWwXbzdGpVAqKPLRb5JOaGlzoBQXAYBnmR3Xn 6LbEgYw/v1r1TSAnPLYtB1FYc+A9NJwpnMgmiepOb9bJ/sgCtCMEfCCsb6H0SLFWLo0A JJxA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jwFm3Qcq; 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 w17-20020a05640234d100b00566a4ddb730sor1713713edc.2.2024.03.01.05.36.47 for (Google Transport Security); Fri, 01 Mar 2024 05:36:47 -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; AJvYcCWsPxxH321hoiooHlxTD0t3GWerOhsgkgtm+KCaqw1SwWRRlrajscm04hoLGIDEEuFDFGpVvExu8okkoh3EcA1CL7weoav2h5k+who96tX9mpRz X-Received: by 2002:aa7:d517:0:b0:566:78ff:b24e with SMTP id y23-20020aa7d517000000b0056678ffb24emr1686980edq.17.1709300207019; Fri, 01 Mar 2024 05:36:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:36:46 -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 19/23] board/ti/am62x-sk: move post-{build, image}.sh to board/ti/common/am6xx Date: Fri, 1 Mar 2024 14:36:16 +0100 Message-ID: <20240301133620.3547430-20-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=jwFm3Qcq; 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: , The patch makes it clear that the moved scripts can be used by the am6{2,4}x platforms. Signed-off-by: Dario Binacchi --- Added in v8 Signed-off-by: Dario Binacchi --- board/ti/am62x-sk/post-image.sh | 5 ----- board/ti/{am62x-sk => common/am6xx}/post-build.sh | 0 board/ti/common/am6xx/post-image.sh | 11 +++++++++++ configs/ti_am62x_sk_defconfig | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) delete mode 100755 board/ti/am62x-sk/post-image.sh rename board/ti/{am62x-sk => common/am6xx}/post-build.sh (100%) create mode 100755 board/ti/common/am6xx/post-image.sh diff --git a/board/ti/am62x-sk/post-image.sh b/board/ti/am62x-sk/post-image.sh deleted file mode 100755 index 34f732c091ad..000000000000 --- a/board/ti/am62x-sk/post-image.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -x - -BOARD_DIR="$(dirname "$0")" - -support/scripts/genimage.sh -c "${BOARD_DIR}/genimage.cfg" diff --git a/board/ti/am62x-sk/post-build.sh b/board/ti/common/am6xx/post-build.sh similarity index 100% rename from board/ti/am62x-sk/post-build.sh rename to board/ti/common/am6xx/post-build.sh diff --git a/board/ti/common/am6xx/post-image.sh b/board/ti/common/am6xx/post-image.sh new file mode 100755 index 000000000000..917ca238aa78 --- /dev/null +++ b/board/ti/common/am6xx/post-image.sh @@ -0,0 +1,11 @@ +#!/bin/sh -x + +board_dir() { + if grep -Eq "^BR2_DEFCONFIG=.*/ti_am64x_sk_defconfig\"$" "${BR2_CONFIG}"; then + echo "am64x-sk" + else + echo "am62x-sk" + fi +} + +support/scripts/genimage.sh -c "board/ti/$(board_dir)/genimage.cfg" diff --git a/configs/ti_am62x_sk_defconfig b/configs/ti_am62x_sk_defconfig index bd294bb712ee..310ba6fb6453 100644 --- a/configs/ti_am62x_sk_defconfig +++ b/configs/ti_am62x_sk_defconfig @@ -1,7 +1,7 @@ BR2_aarch64=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y -BR2_ROOTFS_POST_BUILD_SCRIPT="board/ti/am62x-sk/post-build.sh" -BR2_ROOTFS_POST_IMAGE_SCRIPT="board/ti/am62x-sk/post-image.sh" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/ti/common/am6xx/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/ti/common/am6xx/post-image.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c ttyS2,115200n8 -d k3-am625-sk.dtb -l am62x-sk-buildroot -r /dev/mmcblk1p2 -x earlycon=ns16550a,mmio32,0x02800000" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y