| Message ID | 20240304153253.732708-20-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBCOUS6XQMGQEZYSM3FQ@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com
[209.85.208.197])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 946FD42759
for <linux-amarula@patchwork.amarulasolutions.com>;
Mon, 4 Mar 2024 16:34:34 +0100 (CET)
Received: by mail-lj1-f197.google.com with SMTP id
38308e7fff4ca-2d3c3a909f0sf7451931fa.3
for <linux-amarula@patchwork.amarulasolutions.com>;
Mon, 04 Mar 2024 07:34:34 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1709566473; cv=pass;
d=google.com; s=arc-20160816;
b=bcrm1iIAV1iL2mCqaF2n8e80CYuPorseovqiQuBWMv496NK5gSqp5nICNMB4RqqFpF
Ym7HW4Eotw6QYTpIJkt8dBu9NJjyCS/ftKQk8OXu/mdBECKfw8BY58VK7bz0pnllN1qS
mL8m8QC/hZp5Co/dJ0Q9AZfNYOZGHEPp24LU7L/7cZlFhFHVTqms5wnnsMsCKCmw9LyB
Scx6l2/TJwVM5KHUxtOPiurdtU+BoIaBsJ4D4AUeqWIaypGfli6hsmlrtnwl625gluD/
GmoM6SRs2U/Sg0yqySsFZPabghg8BBu/2vnnaXmwtMKv5vt4obSezGhG/M2rLDXcMqbH
aUSw==
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=VkjCUw1B4hLrl8MxKmyykWxLJ3rTCDfqoDxTYj+mEag=;
fh=XFPuTrFN1f+nWVvVG2fHKorvM3Vc1OzXMqep1WoPOpg=;
b=x0bpjkjEkDF2F1Acnwi5o6jrwKEOS6kKa4wBXcnlU5iX1gWyast+SfBrVCAmnnm5Nk
ndHVcN52JtEgR0/Nk4BglEbdWWEIDbMvp/svTBeBZ74x/U07XY3OFB72fxI5LU8XOlME
wrXem06fjX8OVbWoYvTXPbdInO+ACf4pLUIMWRC2DDZsKQi/VIbUcmd5QRAzf69mNIKP
LyNFtiqjbeljbVLMC1vZjrG34C3QKCLdZTqB8CA6TFpvUL9RfdzPYLSPoU7Ye0wr9c9k
hsERM2KKDDBwsv9DjNAGi6hg0QN7QkAk/Gs43K9zKNAzFae7XT++g+kT2ndrYi8jd9/U
5lLg==; darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=lKWURMl3;
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=1709566473; x=1710171273;
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=VkjCUw1B4hLrl8MxKmyykWxLJ3rTCDfqoDxTYj+mEag=;
b=jZ1XcHf5ZnFQ+nekX2oLnEvXJWmleoou9J8x1AUEiDEi9GG3XaN+1sPS1TGpYmxJfC
50BdgKNGXnN+E1WlR3i/6BZCWzvJYr8nwxlCcrTr0B60RdGG6EMXFnT4hohG4jn4qxwe
hyWhBFUFcCX96YVeGFGKASdOCVu3RUIIip59o=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1709566473; x=1710171273;
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=VkjCUw1B4hLrl8MxKmyykWxLJ3rTCDfqoDxTYj+mEag=;
b=S7VWjHnrc5ZygS437ZTrcIsUy94FpolyYdnHAAA6kJM3SYcgYyrOunLLRpjvaHQj+K
F0Ww8iD0jf3WgdeNt6qgSbR9mirBg8qkddoDMsStTYhSO8Jd5omKNGH3C15Pr95tPjuT
nIDZhsuvASO7KqUBoREBhdLL5zbUU4II9Oe/8iPTvt6Mw93CHSxkBl7KjVmJbo1TUPCP
Bth6UDarM3ROHyVOPDgjE6lCxfOapMMd2tx7j3oMsttHVcqh0w+e6/zAsVm5rbWUKss4
L1dtH7Nim+FGpwv3r8mCf9JR1/eXJt1nZTH0ejdqnMMInycLMlrA9m+S1Rxo+vXCh9CO
bKOg==
X-Forwarded-Encrypted: i=2;
AJvYcCUpDpxwom0gyHxfctDhzg5vCwV+0B3metaTyPmAXvjNQWwuZuDwjbRzR4chyPokOhKvbvUv8ZnqqYzTc7pRfOKWuQFU85IgP+2Se2A8/eo2X2YtgZ2pJjmz8O/WuQ==
X-Gm-Message-State: AOJu0YxXtOB87uDrI/ZIvGmzH6LxD3YSonImSjxJiZbGZgMhLqdb3k30
Dg+zUojUwp20PH/iQWhTHwEnGktfmJxJyEL/rBBTaL8LUKW6T6mnlAO73Uv+Xqw4EQ==
X-Google-Smtp-Source: AGHT+IHOnJ4dvG8dMR6gHGf8DM6S90cvHzPVV17c4xFKwXOxIzjEKrOAJYYarOnME1YEr5PhPRddFw==
X-Received: by 2002:a2e:a316:0:b0:2d3:7c06:bb14 with SMTP id
l22-20020a2ea316000000b002d37c06bb14mr3535729lje.47.1709566473409;
Mon, 04 Mar 2024 07:34:33 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:a05:651c:2c3:b0:2d2:4324:b5a4 with SMTP id
f3-20020a05651c02c300b002d24324b5a4ls1232383ljo.0.-pod-prod-04-eu;
Mon, 04 Mar 2024 07:34:32 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AJvYcCW8GwxwLKOyPgpCNeUMlko8h9xVJa6Ft0pWba+/rTQ+WUPCa1QeqhmpHXRtp0yaDBFKsCVE78A1UpW+Bpzxhn6+8hnwHLdKCvs4jDMrB7rKjkDj
X-Received: by 2002:ac2:4c13:0:b0:513:24b8:a7b1 with SMTP id
t19-20020ac24c13000000b0051324b8a7b1mr6170326lfq.47.1709566471718;
Mon, 04 Mar 2024 07:34:31 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1709566471; cv=none;
d=google.com; s=arc-20160816;
b=lkoiycJ3crbY7YxtF7tqJJfsaiUvUhGV+1u42FmfUaatNnPx/Udk94sRffSDY82bOS
tBkodI9wgl73sviSpGQLVhzwAsWg7Ul5r5Nb0zXfz8V+7OwpDgs0nGG0jjgWh2+0s1dw
S/yuxXD59xUUrYXXLTnhOhSeIJIgx2moNUAKjJdJ1zeokCmjGgic1aWIMy6viV6xlHoE
qjaKuCLTxjhZVem+7I7T8+Bmb9PbUAHQVmEepMRHSmY6zvF0b9vS+e0vK+OFg7IIoV6g
ug8VR3vKujss5nsLMaFHvwPS2ZsE4II5z4vo6IHeJb2JbeUn5FH8qSRporXf6DCpa3ue
dFMw==
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=8FsuUnW0ZvZ+XZhTAOg/VpBNCVCV6RFCLKo+tBgu5TQ=;
fh=WyCUUpthk0XLUZP13gDc/ACMOvenBE6wB79F6sE5abU=;
b=epqOLvWt7kAJVFpCunfxYfMQQrqpE1E9D8xhFwlelPDxXBdX6ofLNaDUYvnEFnhvsV
rojmA94LVlPtZOHZDjGhy1G/g3VK22Y7wkhD/Ume9++Jbc/FuT/LyNKU4KlS9nU9gTXE
V1tGfrW4EFlojnUW3CW04qaHk32vJeuzb6JK6j9uJXRI3/Ww7CMlbfWfcwJ2+pBR3V46
xX0ShmJ7FLN/RhGNHX/XyqssEjF1dqb0QYiwEJs7L3DbQCop38kpr+WI1vXTmRl/pVMm
8ML8WKXVaOiZUSSoDRdI/bPUnbFKovKcO9h5CWmOs0plM+u+NGGaK+euQoV/JUiUmmbw
7+2g==; dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=lKWURMl3;
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
y7-20020a056512044700b00513184d91c4sor2396694lfk.14.2024.03.04.07.34.31
for <linux-amarula@amarulasolutions.com>
(Google Transport Security); Mon, 04 Mar 2024 07:34:31 -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;
AJvYcCXlyRdgxpxt9zb49OKoApWN2zvb+gsw++pM2OLaqQCz9ez548YTuNr1Q06ArUakb+TwFQhvsWyPVzqIiHPJgLmG/1Z4k+leJFcw9/F/rm3i0+Ot
X-Received: by 2002:ac2:4983:0:b0:513:2181:d412 with SMTP id
f3-20020ac24983000000b005132181d412mr6181050lfl.19.1709566471448;
Mon, 04 Mar 2024 07:34:31 -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.30
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 04 Mar 2024 07:34:31 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: buildroot@buildroot.org
Cc: Romain Naour <romain.naour@smile.fr>,
Alexander Sverdlin <alexander.sverdlin@gmail.com>,
Andreas Dannenberg <dannenberg@ti.com>,
Yegor Yefremov <yegorslists@googlemail.com>,
Xuanhao Shi <X15000177@gmail.com>, Anand Gadiyar <gadiyar@ti.com>,
James Hilliard <james.hilliard1@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
michael@amarulasolutions.com, Asaf Kahlon <asafka7@gmail.com>,
francois.perrad@gadz.org, linux-amarula@amarulasolutions.com,
bryce@redpinelabs.com
Subject: [PATCH v9 19/22] board/ti/am62x-sk: move post-{build,
image}.sh to board/ti/common/am6xx
Date: Mon, 4 Mar 2024 16:32:50 +0100
Message-ID: <20240304153253.732708-20-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=lKWURMl3;
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: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
Add support for AM62x-SK HS-FS devices
|
|
Commit Message
Dario Binacchi
March 4, 2024, 3:32 p.m. UTC
The patch makes it clear that the moved scripts can be used by the
am6{2,4}x platforms.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
Added in v8
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
Comments
Hello Dario, Le 04/03/2024 à 16:32, Dario Binacchi a écrit : > The patch makes it clear that the moved scripts can be used by the > am6{2,4}x platforms. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > Added in v8 > > 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" What if we add a new board based on am62 SoC like the beagleplay [1] ? I believe it's fine to have tiny post-image.sh script in each board directory instead of generic script that is aware of boards names (actually board directory name in Buildroot). [1] https://www.beagleboard.org/boards/beagleplay Best regards, Romain > + 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
Hi Romain On Wed, Mar 13, 2024 at 11:56 AM Romain Naour <romain.naour@smile.fr> wrote: > > Hello Dario, > > Le 04/03/2024 à 16:32, Dario Binacchi a écrit : > > The patch makes it clear that the moved scripts can be used by the > > am6{2,4}x platforms. > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > --- > > > > Added in v8 > > > > 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" > > What if we add a new board based on am62 SoC like the beagleplay [1] ? > > I believe it's fine to have tiny post-image.sh script in each board directory > instead of generic script that is aware of boards names (actually board > directory name in Buildroot). > This is TI common, other vendor can have their own script. Why all the boards thould keep from there? Michael > [1] https://www.beagleboard.org/boards/beagleplay > > Best regards, > Romain > > > > + 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 >
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