Return-Path: Received: from bes.se.axis.com (bes.se.axis.com [195.60.68.10]) by mail.openembedded.org (Postfix) with ESMTP id 4928B72F24 for ; Wed, 14 Jun 2017 11:35:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by bes.se.axis.com (Postfix) with ESMTP id 846FA2E633; Wed, 14 Jun 2017 13:35:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bes.se.axis.com Received: from bes.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bes.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id acXhweea6SNA; Wed, 14 Jun 2017 13:35:51 +0200 (CEST) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bes.se.axis.com (Postfix) with ESMTPS id 0A01D2E37A; Wed, 14 Jun 2017 13:35:50 +0200 (CEST) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DF1E01E0A2; Wed, 14 Jun 2017 13:35:50 +0200 (CEST) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D3AE81E0A0; Wed, 14 Jun 2017 13:35:50 +0200 (CEST) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder03.se.axis.com (Postfix) with ESMTP; Wed, 14 Jun 2017 13:35:50 +0200 (CEST) Received: from XBOX02.axis.com (xbox02.axis.com [10.0.5.16]) by thoth.se.axis.com (Postfix) with ESMTP id C73DFDBD; Wed, 14 Jun 2017 13:35:50 +0200 (CEST) Received: from [10.94.62.1] (10.0.5.60) by XBOX02.axis.com (10.0.5.16) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 14 Jun 2017 13:35:50 +0200 To: Richard Purdie , Tobias Hagelborn , References: <1497421480-21923-1-git-send-email-tobiasha@axis.com> <1497432535.3942.40.camel@linuxfoundation.org> From: Tobias Hagelborn Message-ID: Date: Wed, 14 Jun 2017 13:35:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1497432535.3942.40.camel@linuxfoundation.org> X-Originating-IP: [10.0.5.60] X-ClientProxiedBy: XBOX01.axis.com (10.0.5.15) To XBOX02.axis.com (10.0.5.16) X-TM-AS-GCONF: 00 Subject: Re: [PATCH] devtool: deploy-target: Support stripped libs and execs 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: Wed, 14 Jun 2017 11:35:58 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit On 06/14/2017 11:28 AM, Richard Purdie wrote: > On Wed, 2017-06-14 at 08:24 +0200, Tobias Hagelborn wrote: >> New devtool deploy-target option --strip which enables deploying >> stripped binaries, saving some space on target. >> >> * Copies the files of ${D} into a new directory and strips them in >> place >> * Based on sysroot_strip from staging.bbclass >> * Added devtool.conf option "strip" for changing default behavior >> * Added .ko strip support compared to original function sysroot_strip > > This looks very like the original strip function. Would it be possible > to create one generic strip function in lib/oe which we could call from > the various places rather than duplicating this again? > > (I think staging.bbclass and lib/oe/package.py:runstrip() are already > similar code). > > Cheers, > > Richard > I did think if this but I felt these are quite central functions and I didn't have enough tests locally to cover for those classes (staging / package) I can supply another version of this patch where the strip function is merged into lib/oe. //Tobias