From patchwork Sat Mar 30 16:02:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3070 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 795CF3FAD6 for ; Sat, 30 Mar 2024 17:03:02 +0100 (CET) Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a4dfdbdaf06sf149530266b.3 for ; Sat, 30 Mar 2024 09:03:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711814582; cv=pass; d=google.com; s=arc-20160816; b=y48l7xJBAyc6PsyvDB3bPn+h0gz3ATTni030VDv+J9GJUCTMEV1nGy3wkSFy1Ux2ar 0thPgJy8gY5KDvIGcAbu0Wbv3pWj9zW2TTH7B6DjlaGvwt6JgIPeq8qs+mzQ4j94fS6/ LsXeUjbyQLKQQcmKkSmDUf1yvGlkCKdEThIrgbqybC6A6r7xN0BnSucBGqXOgwSmxEHF qR/+Ek1CXj0kJQ87vxVg7zSkISkDx5zJJ3cdCP8+jblMH7T0IeqpzyyugRmtB2wQHbuE E8yn4E8d2QKu6ge5rkiMJsOQsSjYxTwU/aLBVaGrZ4W0Qu0Hr7i9hQaFATcvCel8/DRo RacQ== 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=QcIGsVm/nYMDLnrX82Nm04f140wozpyGjJxGTgiiLXM=; b=ljooXZQWmGfOXGIouKR3ujd3t7aCzDwa6TePAYh9DPG6guGXNfpQm13DmJnTGIPEag LsapLrQ6sbJZQKvfWBm+tCs/cJ5G4D0Vb+XhtajvTUG4kgO0kESDNYk7gTyOZvUZJzHK CrudRjZYfJZb9Q4cbsEOCw6UibplSIjxdYTqUs+GcGlRVJxtdK3xbe8Sc2Rk9pw8g3C2 71kjjxMAwveQjXZVTfeEtk8BMRlRjjG5ZVrfPezs5Eyi+1eL1nhfGlzxLfIJmqOGpFOT 6Fqi1b7iKGP9e8LoATOY1uTw2DQSKu1F443qXqQo0h49WQHG5c2lnBthVtsoikvu2sht Hl/w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iK7Vx6Ce; 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=1711814582; x=1712419382; 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=BeLEfbm1O3oFkCt8o1j+hiwdDwGTftr/kAglw3vgYPS8/RHHidDzTJLIQdUODA91QQ VkYFgXy3RS8slsqc0NC7vOnn9V4qREQr5l8gfhTeC67h0HSAsZaXcbldrkJdtNPVGdaq P5f9UX+/3hvHZI7OOgGEBc6SFWlu6SpJ03kSc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711814582; x=1712419382; 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=gbrsH87169B5+mEqFcmeymVhygnp3sYSWE+QHn2mCKgNaYUb50SE+0MwIFR4sVebBn WoE2PcGD11/vyColF8iYp3AFvVPZgURrzOPkRH/EFr2e8It0c9WbiBJs6CDOWYxEJtAQ KiHrSblyFgTDlP4dLQE0CtrzumUF/U6ikZuArOmdKMPkAZYjBUpt/H2+LILo+8x4K8re afTQQ5zGYwn9y11xRgEzJghwOaMnknyiJ/xFRInk7+R+mSDoPAqs5R5bBwH3U5JeblIQ nEoSxAPriDd4QU8bdbnF/3oXac6KBc6vUp6gu7vQlklbSboDI1qb4wKOjOtlYgvoKzWG QY+w== X-Forwarded-Encrypted: i=2; AJvYcCWmOB2jn8af7xdpn0yd5ihpDSz+1eQ3Evo5njV+BXRvRyCggj2vx8q6q5fOJN616NjD4PULOk45dzoEv/GOLdwI1zOIvOB4QVnLTx5g3/6pj0V155BiSCV5oIBD3Q== X-Gm-Message-State: AOJu0Yxnk7PcRrJS9Hb1pW38QeV3xv3jh9HHtOKHgrM18Hjmo4nduwCO ywzlg0/9hy7K1aHvclZtqmU5i3RMqITw1AYqjw6doYtSAih539CU1h+nRnDvJ4TN2A== X-Google-Smtp-Source: AGHT+IGOzVd4MITmih8Y6bHjSV5+xe3Al+FfDNu30938JRve4am7B+mBwg/Gch7lho/adWKkWV+fXQ== X-Received: by 2002:a05:6402:2114:b0:56c:d44:f1c3 with SMTP id bl20-20020a056402211400b0056c0d44f1c3mr3933181edb.25.1711814582161; Sat, 30 Mar 2024 09:03:02 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:1907:b0:56c:4c79:16ab with SMTP id e7-20020a056402190700b0056c4c7916abls131188edz.1.-pod-prod-04-eu; Sat, 30 Mar 2024 09:03:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUcK/SoWEWF1U/uQuae5WA1B9KlnzTHT4OWGvDPYClZd8vHCQDfvZyGF0taCwj6xj/nziwJpGjy0U3F/A4aITJOPZuuHk+vHyqeBhe8EV2S1m6D X-Received: by 2002:a05:6402:3547:b0:567:1221:d486 with SMTP id f7-20020a056402354700b005671221d486mr3856560edd.33.1711814580567; Sat, 30 Mar 2024 09:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711814580; cv=none; d=google.com; s=arc-20160816; b=a8BXhNyYhpdcEk4ElGAXV4YLQ79F0XfbQt9UFqxp1GtStZ+FOu6TR6s6mQhOVBp0P0 XLrpat/jBdfkB86tBHHDnW1HJ98hiE/dyuincv8cjQt/JEHIKLWp4DyDktR1dQvdDURe iLyBVB1enTMg2YPAAJVl+L8muuo4Vj/kOJnck3uLNj5xzlOwIbSykVZ2B9o4BtNYqK9L YRFoEtqbM42TUnyNIcSlSssrnF650Xi2iAbM7+BZ326VyMIdFHAHDyoecIHoHH0D81+S PhD+eGVIfuMq4qQKnnJRkDiLmV1xvDd41uwwE5rA+ilY/rq56/20mjqlhydTM+Y1pdW5 7nqw== 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=2LE0rIPebpGxL1G07YhkIddS2DYJOM+DgJ0h5WLyZoI=; b=Z9e1J1FkQ8iHkn5kACIOoX8SbW09L5nXxdfWvIt5u+eDKAL6o8WpAIJ/sNfc4+WmZj tKFahucdrQbX2rCa5JO4B7OcR5wAhGAYy0MBwXNNvmZyWRgf0qFdPSmDh7l4hPpHXMvz MrwdQrPRBHYhcKQsWkx8Cs4URozObjvn0mVaQ4DrdEEFqDHzV6aMACKV916ZrmN6PKsa 6Ul1n5q8lB1SiGW7AgH2k0zSkS9whm//XLbS4j4BcauX+fWuhc9PxMh7a7ZYn4sUqWJ6 8DSuwVvjv4IyEUV/yY0/KKvmvO4YPHLlU0laIeAXVaZ+jNb8Bk947rlMpcOTrIi+gxyw TiMg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iK7Vx6Ce; 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 x14-20020a50ba8e000000b0056bcba9d413sor1314289ede.5.2024.03.30.09.03.00 for (Google Transport Security); Sat, 30 Mar 2024 09:03:00 -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; AJvYcCXoc1PW3hojee6+jV6WZ6phklwRa+ilyGLOnLd+mdBC4pIqrZ7D5oiTeLBD1lhUhMbi5ugpaGfp2Doua5hV1vdHyrkng4/L1pjsJLl6GLsdvVmr X-Received: by 2002:a05:6402:51cd:b0:566:777:af4f with SMTP id r13-20020a05640251cd00b005660777af4fmr3304678edd.1.1711814580288; Sat, 30 Mar 2024 09:03:00 -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.02.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 09:03:00 -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 09/12] board/ti/am62x-sk: generalize post-build.sh Date: Sat, 30 Mar 2024 17:02:41 +0100 Message-ID: <20240330160244.3214733-10-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=iK7Vx6Ce; 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"