From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.dream-property.net (mail.dream-property.net [82.149.226.172]) by mail.openembedded.org (Postfix) with ESMTP id EB04677628 for ; Thu, 22 Dec 2016 13:34:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.dream-property.net (Postfix) with ESMTP id C502331C3482; Thu, 22 Dec 2016 14:34:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.dream-property.net Received: from mail.dream-property.net ([127.0.0.1]) by localhost (mail.dream-property.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZZfDw7V8WOVR; Thu, 22 Dec 2016 14:34:36 +0100 (CET) Received: from [172.22.22.61] (55d4194f.access.ecotel.net [85.212.25.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.dream-property.net (Postfix) with ESMTPSA id 63DCB31C353E; Thu, 22 Dec 2016 14:34:36 +0100 (CET) To: Robert Yang , Andre McCurdy References: <6efb8d002491cd1e736b9126e09a5a63b4acd4d1.1482300982.git.liezhi.yang@windriver.com> <67916363-806f-7f9e-e9e8-941bb2614cfb@windriver.com> <02079360-2340-5cdb-b23c-db371383d408@opendreambox.org> From: Andreas Oberritter Message-ID: Date: Thu, 22 Dec 2016 14:34:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Cc: OE Core mailing list Subject: Re: [PATCH 5/5] hdparm: 9.48 -> 9.50 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2016 13:34:38 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 22.12.2016 04:14, Robert Yang wrote: > On 12/22/2016 11:09 AM, Andreas Oberritter wrote: >> On 22.12.2016 03:47, Robert Yang wrote: >>> On 12/21/2016 09:27 PM, Andre McCurdy wrote: >>>> Passing LDFLAGS on the make command line might be a cleaner solution >>>> than patching the Makefile. >>> >>> We can't do that since there is a "-e MAKEFLAGS=" in EXTRA_OEMAKE, >>> and its >>> Makefile is: >>> >>> all: >>> make -j2 hdparm >>> >>> hdparm: hdparm.h sgio.h $(OBJS) >>> $(CC) $(LDFLAGS) -o hdparm $(OBJS) >>> $(STRIP) hdparm >>> >>> The "make -j2 hdparm" doesn't pass any env vars to sub make since >>> MAKEFLAGS=, >>> so that need use weak assignment "?=" here. >> >> You don't need to use target 'all'. Try this: >> >> do_compile() { >> oe_runmake hdparm >> } > > I know this will work, but "make hdparm" rather than "all" may cause other > issues in the future when hdparm gets ugpraded, for example, "all" doesn't > only contain "hdmarm". And do we have really have to add a do_compile() > here ? It's certainly easier to delete do_compile in a future version's recipe than regenerating patches. hdparm is looking for a new maintainer, btw. 'hdparm' has been the only target built by 'all' since at least version 3.1, which dates back to 1996. Regards, Andreas