From: Wolfgang Denk Date: Mon, 17 Dec 2012 20:55:46 +0100 Subject: [U-Boot] [PATCH] env: don't generate callback list entries for SPL In-Reply-To: <50CF6EA8.4050200@ti.com> References: <1355770407.18495.2@snotra> <50CF6EA8.4050200@ti.com> Message-ID: <20121217195546.2C309202B05@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Tom, In message <50CF6EA8.4050200@ti.com> you wrote: > > Since I'd assume 'sort' in make isn't sort -u, I'm not sure how it's > filtering out the dupes unless we don't really need it afterall, > am335x_evm builds with CONFIG_SPL_NET_SUPPORT enabled. I'm curious > now, so I'm poking it. Wrong assumption. RTFM shows: `$(sort LIST)' Sorts the words of LIST in lexical order, removing duplicate words. The output is a list of words separated by single spaces. Thus, $(sort foo bar lose) returns the value `bar foo lose'. Incidentally, since `sort' removes duplicate words, you can use it for this purpose even if you don't care about the sort order. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de [Doctors and Bartenders], We both get the same two kinds of customers -- the living and the dying. -- Dr. Boyce, "The Menagerie" ("The Cage"), stardate unknown