Return-Path: Received: from bastet.se.axis.com (bastet.se.axis.com [195.60.68.11]) by mail.openembedded.org (Postfix) with ESMTP id AF01C71A84 for ; Wed, 13 Dec 2017 10:53:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 413BB183AF for ; Wed, 13 Dec 2017 11:53:50 +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 MztcO5d0Sfjs for ; Wed, 13 Dec 2017 11:53:49 +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 63EA5180EA for ; Wed, 13 Dec 2017 11:53:49 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4F2D01E06E for ; Wed, 13 Dec 2017 11:53:49 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 444131E06C for ; Wed, 13 Dec 2017 11:53:49 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder03.se.axis.com (Postfix) with ESMTP for ; Wed, 13 Dec 2017 11:53:49 +0100 (CET) Received: from XBOX02.axis.com (xbox02.axis.com [10.0.5.16]) by thoth.se.axis.com (Postfix) with ESMTP id 3729ADBE for ; Wed, 13 Dec 2017 11:53:49 +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.1263.5; Wed, 13 Dec 2017 11:53:49 +0100 From: Tobias Hagelborn To: Date: Wed, 13 Dec 2017 11:53:15 +0100 Message-ID: <1513162397-21000-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: XBOX03.axis.com (10.0.5.17) To XBOX02.axis.com (10.0.5.16) X-TM-AS-GCONF: 00 Cc: Tobias Hagelborn Subject: [PATCH v3 0/2] Make source code browsable locally - devtool srctree 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, 13 Dec 2017 10:53:49 -0000 Content-Type: text/plain UPDATE v2: - Moved default output dir to ${TMPDIR}/srctree - Retested on Pyro master (core-image-sato/core-image-minimal) In our organization, there is a demand to be able to 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 | 90 ++++++++++++++++++++++++++++++++++++++++++ scripts/lib/devtool/srctree.py | 87 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 177 insertions(+) create mode 100644 meta/classes/srctree.bbclass create mode 100644 scripts/lib/devtool/srctree.py -- 2.1.4