Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1E16C43334 for ; Wed, 8 Jun 2022 13:59:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AA0AF84344; Wed, 8 Jun 2022 15:59:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="QtKr77HC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5FCD08433F; Wed, 8 Jun 2022 15:59:19 +0200 (CEST) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 40C948433B for ; Wed, 8 Jun 2022 15:59:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x829.google.com with SMTP id x7so14939109qta.6 for ; Wed, 08 Jun 2022 06:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=c/nILqGEwvm8A7qqJau2O1d4w0rE0c4M41e7C8HxwTM=; b=QtKr77HCkQ5uU5zoJ0FVvnm5UqtusD3OqPILNAmYKTZtxZIH3oxi2H9MgnqSIBKizq vfICl0b5QticQEA/rXq+J/N201loARVdJXJ1sqzzeFxDmwG8qUG4tJrkofZXCy1sugOb NIFOOjphKyeDgzWemHS7DXXQgHi/VQxcSO93I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=c/nILqGEwvm8A7qqJau2O1d4w0rE0c4M41e7C8HxwTM=; b=n/rJht2XNt5yh4e0N6dotHw37LZLR+ZnecbuNa5dJNUBJ1/W6Z1mVVv0qU71+MJie5 IHTLZwzryoN1U4d0+yJa+cj7cfkofz2wwlWRvnT9/L6grKJb06p1JMYOJc/tvEFYfyy9 OLVjmmzzByhtB+k7Qi8U1Da/KbfGiJF56dPBAlY20hdaE+KykY/k+mKhv7lb+BJnW1Lt ERh6Joqw7uYgYO20+uIZj4e0BaoMxKR8xTliPCyVLvSwCl5FbzVaeIoJbb+2cW64aO+a qbZTMXkF0U2FZqDDg/Zzm0UVcBI9P3y4AOhVv+w1FXzLIF4Uj4/d3HHs9ptqA+HPDsIL UF4A== X-Gm-Message-State: AOAM530PVnOqLTlYlbH7uo5NslCgByTW4zq5RXLkv8eT1UNPGl6CDmHx nr98uxMW+QWjG7BeWKDS4N86GA== X-Google-Smtp-Source: ABdhPJwu5KXuG9GyrLqWVwYwbcxPwAsHdkDFsucUtuZEPPeeTTJldyT/Ms4yUrNEoZSyVgJma2UFIQ== X-Received: by 2002:ac8:570c:0:b0:304:e52c:3c2f with SMTP id 12-20020ac8570c000000b00304e52c3c2fmr18153808qtw.8.1654696754917; Wed, 08 Jun 2022 06:59:14 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id f12-20020a05620a280c00b0069fe1dfbeffsm3547030qkp.92.2022.06.08.06.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 06:59:14 -0700 (PDT) Date: Wed, 8 Jun 2022 09:59:12 -0400 From: Tom Rini To: Roger Knecht Cc: u-boot@lists.denx.de Subject: Re: [PATCH v2] cmd: cat: add new command Message-ID: <20220608135912.GD2484912@bill-the-cat> References: <20220604111851.14038-1-rknecht@pm.me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ELawpaRm0uGyL1wg" Content-Disposition: inline In-Reply-To: <20220604111851.14038-1-rknecht@pm.me> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --ELawpaRm0uGyL1wg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 04, 2022 at 11:19:15AM +0000, Roger Knecht wrote: > Add cat command to print file content to standard out >=20 > Signed-off-by: Roger Knecht > --- > v2: > - Moved cat from boot to shell commands > - Added MAINTAINERS entry > - Added comments > - Improved variable naming >=20 > MAINTAINERS | 5 +++++ > cmd/Kconfig | 6 ++++++ > cmd/Makefile | 1 + > cmd/cat.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 70 insertions(+) > create mode 100644 cmd/cat.c >=20 > diff --git a/MAINTAINERS b/MAINTAINERS > index 56be0bfad0..7c5cd178d9 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -729,6 +729,11 @@ M: Simon Glass > S: Maintained > F: tools/buildman/ >=20 > +CAT > +M: Roger Knecht > +S: Maintained > +F: cmd/cat.c > + > CFI FLASH > M: Stefan Roese > S: Maintained > diff --git a/cmd/Kconfig b/cmd/Kconfig > index 69c1814d24..8b531c7ebe 100644 > --- a/cmd/Kconfig > +++ b/cmd/Kconfig > @@ -1492,6 +1492,12 @@ endmenu >=20 > menu "Shell scripting commands" >=20 > +config CMD_CAT > + bool "cat" > + default y New commands shouldn't be default enabled. I also don't see a test. Please add a test, and enable the command in sandbox so the test is run. Thanks! --=20 Tom --ELawpaRm0uGyL1wg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmKgqy0ACgkQFHw5/5Y0 tyxFhgv/Zaw85jpgF4XBx1eF1KC0b/55jNca7g8jt6IH5Eyv2e6AkzCVCOes+idP qFZ69ph+mcWFFABIkFr2OIcYjBb9IOShjaVHI02pG4Kvtv3DDY3V/S2lXeDRE2VU RIKRTD3xMYzXdvqZLX+/zu/t04bgTg3XHM4DRp2CkBMFqeaTEedaNX3wKYhTP6z1 WVLh3B4nJSc79J2SU3GWrYR8dMVpm7ih/TYpZlb0D+hlQxPMDTuAYBJDyqkTkdlM nVtB3p7gRQjiSnCv0Lqb+aH0WrT8EFpO+SgtcehHkdUpfxJDoR+LME/pJMgzejHT KpPJH+gTkf9WjlJ6ZAprOLLtMpBB0YiWtxuOsvNPavBRtuEX0bO5M3b9qOBgNveq y8agtIuops2df3G6Q18CNi668uH3qJi3kUTvZPMXj+2HOcAxi6oRmmCFeUBRCnVU O+lkaBuhyN4pxy2D2mev6ffQeVXQSFZcM3tPbbFwVkjVZQHg0H8ofoBdbDD3zQWk JN01MybR =qfcG -----END PGP SIGNATURE----- --ELawpaRm0uGyL1wg--