From patchwork Tue Feb 11 08:42:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?David_Nystr=C3=B6m?= X-Patchwork-Id: 24441 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 71CA9206FF for ; Tue, 11 Feb 2014 08:43:05 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id a41sf18121522yho.8 for ; Tue, 11 Feb 2014 00:43:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:message-id:date:from :user-agent:mime-version:to:references:in-reply-to:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list :content-transfer-encoding:content-type; bh=+7Pi4Q+wuylGaV/MYCiTQ6LNEBu9AcJaNQ8MLixZKgs=; b=AzjswK3PhG16BvrJv1XsL68/S/7g5azcd7xQuuuon1HisaGg54HuIMWQkROClb7Mxd 3g8lpfiK9NA5PFeK7FOq0HqsrKDMZY+k0ejbXOuau8ZvwePvheFubsELMkhUSyu0GE54 BFu+PVkp6mvtXqtXipMghCGMKE1VihP1Xp1Sw73IqZ4AZYEjjchYm4wMePH0DTwiMsrW xKQmoObTclotloa2akft49aw+vFkIrYdbmjaq8t7ePGVmirxT6V/Lf2NQHgLWSrwD9a7 dTB+aoLb+ljKlfGjVgrIWvLmDWjpKA5a+XpmeoYgJ8DggVyHZhVh6sOsee9CEZlzfpdK TQ/w== X-Gm-Message-State: ALoCoQm5Dx3rqdqXNSbbBBDFqEKdGIpbYNDFpoe0EGz4OzJUuVOuXkCxQLV+Tg6Hthevzmys+Rne X-Received: by 10.236.89.15 with SMTP id b15mr11116104yhf.13.1392108184604; Tue, 11 Feb 2014 00:43:04 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.73 with SMTP id i67ls2342410qgd.97.gmail; Tue, 11 Feb 2014 00:43:04 -0800 (PST) X-Received: by 10.58.170.69 with SMTP id ak5mr217502vec.28.1392108184523; Tue, 11 Feb 2014 00:43:04 -0800 (PST) Received: from mail-vb0-f51.google.com (mail-vb0-f51.google.com [209.85.212.51]) by mx.google.com with ESMTPS id sq4si5649889vdc.28.2014.02.11.00.43.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Feb 2014 00:43:04 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.51 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.51; Received: by mail-vb0-f51.google.com with SMTP id 11so5529679vbe.24 for ; Tue, 11 Feb 2014 00:43:04 -0800 (PST) X-Received: by 10.52.121.113 with SMTP id lj17mr23374035vdb.21.1392108184254; Tue, 11 Feb 2014 00:43:04 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp229917vcz; Tue, 11 Feb 2014 00:43:03 -0800 (PST) X-Received: by 10.66.160.2 with SMTP id xg2mr30864146pab.23.1392108182826; Tue, 11 Feb 2014 00:43:02 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id ez5si18205432pab.135.2014.02.11.00.43.02 for ; Tue, 11 Feb 2014 00:43:02 -0800 (PST) Received-SPF: pass (google.com: domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id A04656EE1A; Tue, 11 Feb 2014 08:42:59 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mx-3.enea.com (sestofw01.enea.se [192.36.1.252]) by mail.openembedded.org (Postfix) with SMTP id 8BBBB6EE16 for ; Tue, 11 Feb 2014 08:42:56 +0000 (UTC) Received: from [172.16.141.133] (172.16.141.133) by smtp.enea.com (172.21.1.209) with Microsoft SMTP Server id 14.3.158.1; Tue, 11 Feb 2014 09:42:50 +0100 Message-ID: <52F9E289.2080002@enea.com> Date: Tue, 11 Feb 2014 09:42:49 +0100 From: =?ISO-8859-1?Q?David_Nystr=F6m?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Laurentiu Palcu , References: In-Reply-To: X-Originating-IP: [172.16.141.133] Subject: Re: [OE-core] [PATCH v5 00/53] Rootfs/image generation refactoring (cover letter only) X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: david.nystrom@enea.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.51 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 On 2014-02-10 13:15, Laurentiu Palcu wrote: > V5: > * dump command output in case errors occur; > > V4: > * fix multilib build issue for RPM backend; > > V3: > * add simple check to just return if we're attempting to install packages and > the list is empty; > > V2: > * fix building from feeds for opkg; > * rebase; > When stubbing license manifest creation for the FEEDS functionality: Br, David $ bitbake -c rootfs core-image-minimal Parsing recipes: 100% |######################################################################################################################################################################| Time: 00:00:12 Parsing of 852 .bb files complete (0 cached, 852 parsed). 1212 targets, 56 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.21.1" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-13.10" TARGET_SYS = "powerpc-poky-linux" MACHINE = "qemuppc" DISTRO = "poky" DISTRO_VERSION = "1.5+snapshot-20140211" TUNE_FEATURES = "m32 fpu-hard ppc7400 altivec" TARGET_FPU = "" meta meta-yocto meta-yocto-bsp = "(detachedfromFETCH_HEAD):20104ecbb94a1ada0cb3a26c7801b56a897dc900" NOTE: Preparing runqueue NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: Error executing a python function in /media/sdb5/poky-contrib/meta/recipes-core/images/core-image-minimal.bb: The stack trace of python calls that resulted in this exception/failure was: File: 'do_rootfs', lineno: 17, function: 0013: # generate final images 0014: create_image(d) 0015: 0016: *** 0017:do_rootfs(d) 0018: File: 'do_rootfs', lineno: 14, function: do_rootfs 0010: # generate rootfs 0011: create_rootfs(d) 0012: 0013: # generate final images *** 0014: create_image(d) 0015: 0016: 0017:do_rootfs(d) 0018: File: '/media/sdb5/poky-contrib/meta/lib/oe/image.py', lineno: 231, function: create_image 0227: execute_pre_post_process(self.d, post_process_cmds) 0228: 0229: 0230:def create_image(d): *** 0231: Image(d).create() 0232: 0233:if __name__ == "__main__": 0234: """ 0235: Image creation can be called independent from bitbake environment. File: '/media/sdb5/poky-contrib/meta/lib/oe/image.py', lineno: 210, function: create 0206: execute_pre_post_process(self.d, pre_process_cmds) 0207: 0208: self._remove_old_symlinks() 0209: *** 0210: image_cmds = self._get_imagecmds() 0211: 0212: # create the images in parallel 0213: nproc = multiprocessing.cpu_count() 0214: pool = bb.utils.multiprocessingpool(nproc) File: '/media/sdb5/poky-contrib/meta/lib/oe/image.py', lineno: 195, function: _get_imagecmds 0191: cmds.append(localdata.expand("\trm ${IMAGE_NAME}.rootfs.${type}")) 0192: else: 0193: subimages.append(type) 0194: *** 0195: script_name = self._write_script(type, cmds) 0196: 0197: image_cmds.append((type, subimages, script_name)) 0198: 0199: return image_cmds File: '/media/sdb5/poky-contrib/meta/lib/oe/image.py', lineno: 158, function: _write_script 0154: self.d.setVarFlag('img_creation_func', 'func', 1) 0155: self.d.setVarFlag('img_creation_func', 'fakeroot', 1) 0156: 0157: with open(script_name, "w+") as script: *** 0158: script.write("%s" % bb.build.shell_trap_code()) 0159: script.write("export ROOTFS_SIZE=%d\n" % self._get_rootfs_size()) 0160: bb.data.emit_func('img_creation_func', script, self.d) 0161: script.write("img_creation_func\n") 0162: Exception: AttributeError: 'module' object has no attribute 'shell_trap_code' ERROR: Function failed: do_rootfs ERROR: Logfile of failure stored in: /media/sdb5/bld/tmp/work/qemuppc-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.9994 ERROR: Task 6 (/media/sdb5/poky-contrib/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1' Tested-by: david.nystrom@enea.com diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index c668783..a0413b9 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -26,6 +26,12 @@ python write_package_manifest() { } license_create_manifest() { + # Test if BUILD_IMAGES_FROM_FEEDS is defined in env + echo ${BUILD_IMAGES_FROM_FEEDS} + if [ -n "${BUILD_IMAGES_FROM_FEEDS}" ]; then + exit 0 + fi + I get this error message on v5.