From mboxrd@z Thu Jan 1 00:00:00 1970 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 E1B4CEB64DA for ; Thu, 20 Jul 2023 16:28:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ADBA886807; Thu, 20 Jul 2023 18:28:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=arvanta.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 82EE786806; Thu, 20 Jul 2023 18:28:54 +0200 (CEST) Received: from fx.arvanta.net (unknown [109.72.52.77]) by phobos.denx.de (Postfix) with ESMTP id 5E47E86807 for ; Thu, 20 Jul 2023 18:28:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=arvanta.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mps@arvanta.net Received: from m1 (ab.arvanta.net [10.5.1.5]) by fx.arvanta.net (Postfix) with ESMTP id B6D2E67B6; Thu, 20 Jul 2023 18:28:51 +0200 (CEST) Date: Thu, 20 Jul 2023 18:28:51 +0200 From: Milan =?utf-8?Q?P=2E_Stani=C4=87?= To: Marek Vasut Cc: u-boot@lists.denx.de, Christoph Niedermaier , Marek =?iso-8859-1?Q?Beh=FAn?= , Simon Glass , Stefano Babic , u-boot@dh-electronics.com Subject: Re: [PATCH] Makefile: Use sort shortopts Message-ID: <20230720162851.GA9595@m1> References: <20230720125042.70593-1-marex@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230720125042.70593-1-marex@denx.de> 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.8 at phobos.denx.de X-Virus-Status: Clean On Thu, 2023-07-20 at 14:50, Marek Vasut wrote: > POSIX does not defined longopts for sort, use shortops > for even more compatibility. > > Fixes: cc5a490cf465 ("Makefile: Sort u-boot-initial-env output") > Reported-by: Milan P. Stanić > Signed-off-by: Marek Vasut Tested-by: Milan P. Stanić small note: single quotes are not needed aroud = (equal sign) > --- > Cc: Christoph Niedermaier > Cc: Marek Behún > Cc: Simon Glass > Cc: Stefano Babic > Cc: u-boot@dh-electronics.com > Cc: u-boot@lists.denx.de > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 87f9fc786e8..5fc16b3b1f1 100644 > --- a/Makefile > +++ b/Makefile > @@ -2444,7 +2444,7 @@ quiet_cmd_genenv = GENENV $@ > cmd_genenv = \ > $(objtree)/tools/printinitialenv | \ > sed -e '/^\s*$$/d' | \ > - sort --field-separator='=' -k1,1 --stable -o $@ > + sort -t '=' -k 1,1 -s -o $@ > > u-boot-initial-env: $(env_h) FORCE > $(Q)$(MAKE) $(build)=tools $(objtree)/tools/printinitialenv > -- > 2.40.1 >