From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7FDE7E014F5 for ; Fri, 12 Jul 2013 04:10:15 -0700 (PDT) Received: by mail-we0-f173.google.com with SMTP id x54so7932524wes.18 for ; Fri, 12 Jul 2013 04:10:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding:content-type:x-gm-message-state; bh=zAihm4gY2+9ijJ4dQsXDm6Q5SNuX9UdkAXiy9OHDVUQ=; b=pMUZmJbjx1FuRZ+D61+HcHLnfeq9d3L6hUGEwjKGhnpCNJi6ubpSbfgSjw6RepOSP7 OqSl2qtLMRkBc8UbQ6wVxQUxmjT9rsRDjeVpTTMzIqcEwkkxZIMBmmF+WcYA5lYBpFHI 6aMl4AM0LFbhF5nx6qFQ9W47YCiyVcZR/zzEUAtLpSwPmfH1GwBMwytlwHjiMwRwBeeJ 4wPr6P+3KoEJ/fnJqAh0YWEDvk5HmiYxoDjyYSPfcWmUPRz2Pvg00vbE3VBlFHy5/bHH YAv2UTXoJoDSKhgfs6VME7sKZQVp2UF3e0fBxLSwVHyF6oVzCHpHWA68j/NKCPw6qArl 9juw== X-Received: by 10.180.108.129 with SMTP id hk1mr1297448wib.56.1373627413894; Fri, 12 Jul 2013 04:10:13 -0700 (PDT) Received: from fedora-fisso.localnet (static-217-133-170-65.clienti.tiscali.it. [217.133.170.65]) by mx.google.com with ESMTPSA id p1sm2661690wix.9.2013.07.12.04.10.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 12 Jul 2013 04:10:13 -0700 (PDT) From: Davide Soldan To: meta-freescale@yoctoproject.org Date: Fri, 12 Jul 2013 13:10:07 +0200 Message-ID: <7850885.nPNPjFg3Me@fedora-fisso> User-Agent: KMail/4.10.4 (Linux/3.9.8-100.fc17.x86_64; KDE/4.10.4; x86_64; ; ) MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlFzcQsgm2BtFW+vUz8LkqHQ8HMmHLlAL+6dcqZKf4bnfc5o0evxHwhpQY5i6L7ZIuAgGnX Subject: extend image.bbclass (or any bbclass file) X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2013 11:10:18 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi to all, I'm trying to move, from outside to inside my recipes, all the changes I've done for my custom image. For example I changed the image.bbclass adding a function. But this file is outside of my recipes that are stored under my git repository. So I'd like to move this function from image.bbclass to another bbclass file under mi recipes directory. I tried to copy image.bbclass under my recipes directory, change its name, and references correctly, but duplicates functions gave me some errors: ERROR: The function normal_groups defined in image.bbclass was already declared in image-custom.bbclass. BitBake has a global python function namespace so shared functions should be declared in a common include file rather than being duplicated, or if the functions are different, please use different function names. ERROR: The function complementary_globs defined in image.bbclass was already declared in image-custom.bbclass. BitBake has a global python function namespace so shared functions should be declared in a common include file rather than being duplicated, or if the functions are different, please use different function names. ERROR: The function get_devtable_list defined in image.bbclass was already declared in image-custom.bbclass. BitBake has a global python function namespace so shared functions should be declared in a common include file rather than being duplicated, or if the functions are different, please use different function names. So I think there should be a way to append some code to image.bbclass as I can do with recipes and bbappend files...right? How I can do that? Or maybe there's another and better way to do that? Thanks to all!