Return-Path: Received: from bastet.se.axis.com (bastet.se.axis.com [195.60.68.11]) by mail.openembedded.org (Postfix) with ESMTP id 405A471DC7 for ; Fri, 24 Mar 2017 07:08:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id C6CD818361 for ; Fri, 24 Mar 2017 08:08:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id EhomvSpM9Nsg for ; Fri, 24 Mar 2017 08:08:12 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id 2495C1835B for ; Fri, 24 Mar 2017 08:08:12 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0C47F1E09C for ; Fri, 24 Mar 2017 08:08:12 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0147B1E09B for ; Fri, 24 Mar 2017 08:08:12 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder03.se.axis.com (Postfix) with ESMTP for ; Fri, 24 Mar 2017 08:08:11 +0100 (CET) Received: from XBOX02.axis.com (xbox02.axis.com [10.0.5.16]) by thoth.se.axis.com (Postfix) with ESMTP id E9A991C6B for ; Fri, 24 Mar 2017 08:08:11 +0100 (CET) Received: from lnxtobiasha.se.axis.com (10.0.5.60) by XBOX02.axis.com (10.0.5.16) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 24 Mar 2017 08:08:11 +0100 From: Tobias Hagelborn To: Date: Fri, 24 Mar 2017 08:07:15 +0100 Message-ID: <1490339237-2618-1-git-send-email-tobiasha@axis.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-Originating-IP: [10.0.5.60] X-ClientProxiedBy: XBOX02.axis.com (10.0.5.16) To XBOX02.axis.com (10.0.5.16) X-TM-AS-GCONF: 00 Cc: Tobias Hagelborn Subject: [PATCH 0/2] Make source code browsable locally 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: Fri, 24 Mar 2017 07:08:14 -0000 Content-Type: text/plain In our organization, there is a demand to be able download source code for searching. With the use of sstate-cache this has been challenge. Also, the source is not gathered but rather spread in a larger directory structure together with build output. There are probably others that also want to be able to do the same. This addition does: * Force download of all source via the srctree_all task * Symlink the source together in a separate directory structure for easier search without the risk of matching with build output. This is achived with a new class srctree.bbclass that implements the needed tasks and a devtool command srctree which offers a convenience command to set up source for a recipe and it's dependencies. There is also a way of organising the package source code in your own way. This is done by implementing a custom dir generation function and assign to SRCTREE_PN_PATH in a custom class and set SRCTREE_EXTENSION in a configuration file. Tobias Hagelborn (2): srctree.bbclass: Download sourcecode and make it searchable devtool: srctree: New command for setting up browsable source-code meta/classes/srctree.bbclass | 92 ++++++++++++++++++++++++++++++++++++++++++ scripts/lib/devtool/srctree.py | 87 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 179 insertions(+) create mode 100644 meta/classes/srctree.bbclass create mode 100644 scripts/lib/devtool/srctree.py -- 2.1.4