From patchwork Fri Mar 1 13:36:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3030 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 6EC633F057 for ; Fri, 1 Mar 2024 14:36:48 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-563ec73081esf1776918a12.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=Jbl9p1TrIKzBWXxGJ15c/Ao9n6/Tz/J6JqpLTOIvMjayhCzT2PeDwNn1Hgn6mumwPn APRNEyLnVNNuw1nkAJwUibC3KPKE3GehikiXjT99EzT+K+B/QFhrGrwKhb+W185pBmb4 K0cgMDfcjKpRhpQDVK7ZVcUvHnMYXgkKg8Gnzi2ntC9vnKTZjZwc64RVD42Rm8yhj+77 C7/zpunDUtaJC2WflNX2REOSG8ZTErNwXnXdWtPA1yKablUoZMYaDawTb01z/w3FMZaj +ACHSO+ZwK1N8t8042dqUCbH8Qs8SYpUwCOIsnBuaUyx87osyhs1GEp/XtyW238hwM2O tjZA== 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=8RVudo6QRDdZ/YsiAbQc8LE/ntf9wxAPjBDZfAGh3ZQ=; fh=4FjbWdY6R+JgItPX52EexJlhJM5puAE6EeyXbkhrqhc=; b=StZzK77ql5Jl+wHEpseTr6WZknmzk7CgxsBILnU3q+NDU+LwWTPProgRIYVP7UZpk9 cBDPvMMFw8ISHE+LQ2EwvCdIeEX25jpGbmUiy+IAVik18rfZZNaF8ILjP9tmaLBfbKpW a1uxYCmOOdt5jeHILJdn1k3+3Q+f9+5SoPolrQqcAnL3rk6NhAhEGXD7OMsZLEjLDAqQ G8brHzlWf+fGF4fI0G4eaKLWk38o1Vd8vsSWqv24jpPfUYPxcVTdmW/6fj7f1Us66VDK fJSfSyNZ+j/b267xhRLUJU+Ky0WiJYgI89flKSpl95oGxuPB7rvWtTs6rWp+WoY40el4 zu4w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ZgS/Jbyh"; 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=8RVudo6QRDdZ/YsiAbQc8LE/ntf9wxAPjBDZfAGh3ZQ=; b=QA92Af3AUI/GQ+AkK7hDaOtDCPqzOYOoEujmSyNrktQyYzCPrAyi1VIFGXVtbBfcC5 avfOt9IRcMUf5nZ1FxCY959KC74npNCxZZY4A0tFpveAQ6f3vw3LgBFzAm8yRd/RGuaS UZgZEn+wz7TqCsvrruc/Qm5k1X9ancc3Ia18E= 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=8RVudo6QRDdZ/YsiAbQc8LE/ntf9wxAPjBDZfAGh3ZQ=; b=jVrNu7L7XaSWw7ER5SpHcMK189TBhzd0Jmyrv8GffYJWUXmfax63SA1/8BXo58LskL rp12CB+5bVyG/T59vzsBMF9FeZQoy2ZFZK9e4EZkQpvxvbZ7+54Bs8E/0B8z1O4i/xTr pN1YI4b+Ong29Xpt3mnz7s6UaEZt+tHLBh/U4gMBAedlULOrazsqJcHNnqcpehKyu4J3 5w6OcZBGoFgAIjA5ANSt2KepNbQyTk3XFFYYISgY4pi3pYkFFG6d8FTLvqIyQP3JYynR XgV2JOl/e11OMYvMFf0uEimSn7YKHv36yGjFkAWm1D8mD7oVE66Hbe/y8S3Gr2xwANJN jamQ== X-Forwarded-Encrypted: i=2; AJvYcCV4p93WIv21Fccz+bvab0jynJ+I7s7mYlbDplFTwaURB2P0OrFq3zShhOeYumU1XmnSiE6rSHrGjrFBlashfueoGnkqhfR3bNMDk1f6QoSHNrM/+Qp6wl2QPt9bKQ== X-Gm-Message-State: AOJu0YzddTfIH4MBQXF+WTicLY/2VO7fz+oqZCIb8qQObHYTnd6mAaEN KOa494xclvvM2CmKrfPF/aTckQXNg5bsO8GP4Yg3Nh/Q89nWWsxZjqPcUtNczngx5A== X-Google-Smtp-Source: AGHT+IFMBy+6+bVZ64JB8W87D3ckvhJ9yBbXbqxah9vOCVw9WAJdpMBYd2vrL6VVByVv9h/EGrzAbQ== X-Received: by 2002:a05:6402:8c5:b0:565:c34f:df4e with SMTP id d5-20020a05640208c500b00565c34fdf4emr1269232edz.29.1709300208200; Fri, 01 Mar 2024 05:36:48 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:f27:b0:566:a1b7:c657 with SMTP id i39-20020a0564020f2700b00566a1b7c657ls25581eda.2.-pod-prod-04-eu; Fri, 01 Mar 2024 05:36:46 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV20Y9/FDF7Nv3wljHBSrKnSwQLRoP398RmoFRbqNkyFRUD8U/+OsxJV3vC9i2Qr3v+qxq7KgcDz21A5/P7Tg/JXiMWteqdTdsaW2jqXUxdjdF5 X-Received: by 2002:a17:906:2351:b0:a44:763:4dd3 with SMTP id m17-20020a170906235100b00a4407634dd3mr1276123eja.27.1709300206158; Fri, 01 Mar 2024 05:36:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709300206; cv=none; d=google.com; s=arc-20160816; b=GQuA7wcDBJOybkey8wLp8O/iJ63WLr5Toa02wjw2NgzGUxQPSDNZ2J2Ld9iUmIenT5 FVNycsz8Nloji9AaJLSbvHHF6FHLAwoxMXohj5LzHb9pqFe4l70nHN0ZnDjiQ5lo4eH4 bGHxTryIuXfMPbbsf2DciptKNNXPV/FoH+IEQCqTcWc4t6DbH4yrl9Det9udEMxMF5nV O2yIdUYOyZHBx7ItOhLEiNwLbpPw9chOE1JTOY9snY3RUniW97sk4QA6tVxaNO4DzvAh Vv6VeM/n548CtnfYISjU+y6EtQ/yU2HLxhmYaHroOsuBp6PTpu+BaAhFtU9JZpV06OuD 6lJg== 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=BBHmOg83dmdyJhrLvJaCDYqux5uadIRjVh5Zh5ThZRk=; fh=QrV4GeiOfcGuE/xNPTBEZz/MCRcPR2AwZS/9aP7CSrE=; b=lOQLeGBhrj2Qpd8Vx3e8trELn6bUYw3bm1eHUvdJQ6B6Q3QeZl0GPEdNGHyCyh+94G lgIfA4P9dpdrqI7IVFTb5quWRpDkQK4TIywdFgIP28HyeO/B+uBh8LisLSg8fRfMT8tR 3TThgqmG71j2I/FqpVGrcwrMDr3y8gmvBmXqAtrwf/QP3Neg1HAQaSVQyDa3kiC/+Bas 9r7xZTNrAouSd7GKCOpGQQuNuG8NPh2uyZAtn8+MfAPZT5s1+hwUuU3b4s1YL+H4CiNn gXWZHiFN1zXhGM2Bo/XvGoj9iW3ilW+cmgRYDY+s9vFo8GY5Ye4bFI9+KO8bLsb9QrdI w+uQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ZgS/Jbyh"; 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 oy29-20020a170907105d00b00a3e64071910sor1551944ejb.4.2024.03.01.05.36.46 for (Google Transport Security); Fri, 01 Mar 2024 05:36:46 -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; AJvYcCUTGS5e58qNe2vCNTMt6YXjuMZ96vguRWUaBqv4Ueg3DuSkFuoOve+dMiO/6eAipt9PJK5j8xDku9ZD76zCcPhDcXyya8sMxdc1AyZ1Ii1l9S+f X-Received: by 2002:aa7:cd10:0:b0:566:4d9:c3cd with SMTP id b16-20020aa7cd10000000b0056604d9c3cdmr1292194edw.41.1709300205859; Fri, 01 Mar 2024 05:36:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:36:45 -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 18/23] board/ti/am62x-sk: generalize post-build.sh Date: Fri, 1 Mar 2024 14:36:15 +0100 Message-ID: <20240301133620.3547430-19-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="ZgS/Jbyh"; 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: , Removing any explicit reference to the ti_am62x_sk_defconfig configuration, the script can also be used by other configurations or at least by ti_am64x_sk_defconfig. Signed-off-by: Dario Binacchi --- Added in v8 Signed-off-by: Dario Binacchi --- board/ti/am62x-sk/post-build.sh | 10 +++++++--- configs/ti_am62x_sk_defconfig | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/board/ti/am62x-sk/post-build.sh b/board/ti/am62x-sk/post-build.sh index 4f19f4d6cf91..d066e28fd0d5 100755 --- a/board/ti/am62x-sk/post-build.sh +++ b/board/ti/am62x-sk/post-build.sh @@ -12,8 +12,8 @@ EOF exit 1 } -o='c:d:r:x:' -O='console:,devicetree:,root:,extra-args:' +o='c:d:l:r:x:' +O='console:,devicetree:,label:,root:,extra-args:' opts="$(getopt -n "${0##*/}" -o "${o}" -l "${O}" -- "${@}")" eval set -- "${opts}" while [ ${#} -gt 0 ]; do @@ -24,6 +24,9 @@ while [ ${#} -gt 0 ]; do (-d|--devicetree) DEVICETREE="${2}"; shift 2 ;; + (-l|--label) + LABEL="${2}"; shift 2 + ;; (-r|--root) ROOT="${2}"; shift 2 ;; @@ -38,6 +41,7 @@ done [ -n "${CONSOLE}" ] || die "Missing \`console' argument" [ -n "${DEVICETREE}" ] || die "Missing \`devicetree' argument" +[ -n "${LABEL}" ] || die "Missing \`label' argument" [ -n "${ROOT}" ] || die "Missing \`root' argument" append="console=${CONSOLE} root=${ROOT} rw rootfstype=ext4 rootwait" if [ -n "${EXTRA_ARGS}" ]; then @@ -46,7 +50,7 @@ fi mkdir -p "${BINARIES_DIR}" cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf" - label am62x-sk-buildroot + label ${LABEL} kernel /Image fdtdir / devicetree /${DEVICETREE} diff --git a/configs/ti_am62x_sk_defconfig b/configs/ti_am62x_sk_defconfig index 877f88899af9..bd294bb712ee 100644 --- a/configs/ti_am62x_sk_defconfig +++ b/configs/ti_am62x_sk_defconfig @@ -2,7 +2,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_SCRIPT_ARGS="-c ttyS2,115200n8 -d k3-am625-sk.dtb -r /dev/mmcblk1p2 -x earlycon=ns16550a,mmio32,0x02800000" +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 BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18"