From patchwork Sat Mar 30 16:02:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3071 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A71B03F333 for ; Sat, 30 Mar 2024 17:03:04 +0100 (CET) Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-515bbb9a73asf2199680e87.0 for ; Sat, 30 Mar 2024 09:03:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711814584; cv=pass; d=google.com; s=arc-20160816; b=1EcXj2vH4VJ4EgqB7Thi3MIe80cSF8Z8dKvNNkhCAQ0Gu0RuR9gmZu2xoNKT8BW25k XK/DIja3SBCwRqaYjqsX3dY7ViLvRJTIlFZtOIW3omcQBub2pmxyY6/s6E67zsJKDpSO JCqfZyEGuesoG9pOvOMYUv20qFjT9Ij0H3IHOcv2dfGgJhtl6UJjS+QFnscnXX+ONdAu EGjXnqkR+B8T53cCGwHj7F3TcRUeP6HIwVOuDISFcmOdBe2m6hl1joU8k2rN4v0dHGfe Lvjybru7yG4aeqRG3N0xOSM4vOw13212i5E+e3hqTDpTRmsAfUcxhCZx89euZoEJlFsd 8TOQ== 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=epfkfbzHN19R3jYxyOu2NATgm/4L534mSJ4RE3i+H9I=; b=qfnL9LPH/WYDmbQQ6tpU9flRxzXtPqq3PGyRqqY4UvIp0NZ3x9OmATIGpymWvQMh5P TToBwJBvkLz8K2HK6z191nL5VC1lp9bVg3XJbni9busGOSPmrzYE9dAH1zINdKRBDR+i R184JdA5DYwYOhjFO1ZTiPu1s38Ft1kviIu7hBNEHDJEM4yrTl7xLcJh73CtE7FDcY/C 5rRDpGAvwLha+t2UqAUb2hDmWNAHNaW+Poy4e42myzkG9CCcSca7m9njYMpoRC2wbkDx ajo4mihyPQ/83+7oSWZk3i7gMgUMssz4Pb/rXMCEz5LyErPloTKS8PjWX1bRqzHDrscR xkYg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Y6TwbhJS; 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=1711814584; x=1712419384; 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=XhUUMChVXxj44ly4KEPbuam+8a54pjluS+hZkd4/F+cPtocYSGg8KF+7/vmSBv22kb VaCUo2FPAMQLYiwfMws3tTmYP6fYYzvlyDALxCsBq/ZfocnIDXYpMV4jbD/EAKI3REjY 1vnRI/X3GQ8BICc3q1HKrYxKOketsLIoDaDr8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711814584; x=1712419384; 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=bu9KYGSLMn0Ocy6C6kVbHq5QkXsh4OLJjrmJpro/3rRQQORJcXANRl06hYNb61XoDi 6i8ly5TmcBavOagSBYtc/o+Ue+z42pKRA+DWmeZCAognkQpj7AUjG6ZRlt1qhBpY9Gl8 47CHjMqUc51BVq7koA5BYc5J7LeqezD3a54WQQVDy7PV6oZPyrjk80twbCQZ6RC+IQrv RYN9AfLL0POf815Pd9bSNGaSA+ZMbb5FPR7heZXOhbH92yzTr3iIj1yYvebi2dnySdlv MePjhYSP8kboQFv+tLldDs1Rp2iYnbYTwpaAzefmN9py/pS9BohoA/oYuGBd0EXvXq2f GA0w== X-Forwarded-Encrypted: i=2; AJvYcCUcvRe+L7hL1P3VuWKzKfuzXyhgJoT4TBM+p5YM3OE2wAXjE+AJLqieqAiD0f3v/PRR93EaiYRVmbrnlMgLTGOAuSQBd1k2aYqL2YVGqIhp5arQxy9WGVyd74/Aog== X-Gm-Message-State: AOJu0YzBG0MQJFbsu+TVve6wyVUNTwBDG7yU5Y5CqoM7Je3jsUmC6nIk FhDYTY5nCWxs19F1mVsIpUUbK2opgSHWrczSt/QzSmuSB4mOfwL6DxE52uI42Vwc9Q== X-Google-Smtp-Source: AGHT+IGTzBxlIV+9dZtbr8K9nKevvH7HzSA0aNFWDinak1r53JMp0sNghtlcpw0ezf8+s3chkEnAvQ== X-Received: by 2002:a05:6512:5c9:b0:513:b30c:53c7 with SMTP id o9-20020a05651205c900b00513b30c53c7mr3548893lfo.10.1711814584046; Sat, 30 Mar 2024 09:03:04 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:1391:b0:515:bf5a:b49 with SMTP id fc17-20020a056512139100b00515bf5a0b49ls693645lfb.1.-pod-prod-04-eu; Sat, 30 Mar 2024 09:03:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXANBaAa59fEYnIHXHUN8loomYhGgwSYOXh4v2DlcP79+nlw33PKKmJ2dyf6hliFM0sJb6qbm6MTmk8MGZB4wQ5Co2yNr0TiiU2y6dF16nivxDc X-Received: by 2002:a05:6512:2248:b0:515:9474:2fca with SMTP id i8-20020a056512224800b0051594742fcamr3814239lfu.5.1711814581828; Sat, 30 Mar 2024 09:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711814581; cv=none; d=google.com; s=arc-20160816; b=uojH4j7Twn64Xw/Yueh4LPm8JyROsdNkFeUESuBaXOhDbGgt1rt2Bvgdn7n8JfKX8/ tpATL99caoQMKg2GSP0wbJCp5wmWA37KgZ44qBnLUaSgpfGN4SyaQmM45mdmLG0D1VOx n5Xa6EjabnA3wD76MZHCiWNrClBg9FI7dT9Z9TIoPNsqTg8nIfN5DV6pZWYPudohmg6Z aBf/RL7frzcpNB20oePO+8u5lpJGXXGC+LjcekAq28B/F8Swgc2TjVALokWtjDFevYHO iXKrroBP+WXbSdZXdFSVTYP+aB7TZZ4P+D+cTZuQj5qEY07UEjkuDlnFTq94PCpv1Wg1 MFdQ== 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=PRU0Cb4zGizYP1h8rqp+0XJnzXZKUzYvZRH1ODLM62c=; b=j3+JyzRZdDh/ZK03+Cw3ro8oDgJB17x17fq2sb/SxOmN/Zrh5Nd9eBlq4oak7aEb5M ulKp7d3yEDNut9HpX0Xn4fdk2/B7X9WLWmIjtU+/dajNuQ4EdkkAwhAvDqpEtTb+b6FH o9ZBdL1Sn9gK0tadpzJogWV1elVXu6Hb3W2wW+aGXs8bxznUw3VQrcm+6CaaO27yO9yn K+9CseqNcuDqvEaxfTtvKoK+Ngrehn+6qJ4xMjq0/KmDri2PFBZQIuRgZJwYnGZhBBe5 WWeE/X+EOYSYTcjke4h5cLLYr4TBqEjJG0ceItn7D78BFU2WwdY9IhoCmhmxav750H7F Mu1Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Y6TwbhJS; 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 g21-20020a0565123b9500b00515a8e0bf48sor1976297lfv.0.2024.03.30.09.03.01 for (Google Transport Security); Sat, 30 Mar 2024 09:03:01 -0700 (PDT) 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; AJvYcCX6R50mMYrT/gvTjFo/8MvWuw8HQZmqblHTrzvItfEi7rlEwjzoEQx2QXVrCc3Vz0Uyb4+6yxSD+ztHafCkWjVKDnUtWGSqhAsravjXGJyTJjiQ X-Received: by 2002:ac2:420a:0:b0:514:cbee:a261 with SMTP id y10-20020ac2420a000000b00514cbeea261mr3341365lfh.27.1711814581547; Sat, 30 Mar 2024 09:03:01 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-8-99-67.retail.telecomitalia.it. [87.8.99.67]) by smtp.gmail.com with ESMTPSA id f13-20020a056402004d00b0056c633354c6sm2127107edu.45.2024.03.30.09.03.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 09:03:01 -0700 (PDT) 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, "Yann E . Morin" Subject: [PATCH v10 10/12] board/ti/am62x-sk: move post-{build, image}.sh to board/ti/common/am6xx Date: Sat, 30 Mar 2024 17:02:42 +0100 Message-ID: <20240330160244.3214733-11-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240330160244.3214733-1-dario.binacchi@amarulasolutions.com> References: <20240330160244.3214733-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=Y6TwbhJS; 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