Message ID | 52F9E289.2080002@enea.com |
---|---|
State | New |
Headers | show |
On 2014-02-11 09:56, David Nyström wrote: > On 2014-02-11 09:50, Laurentiu Palcu wrote: >> Hi David, >> >> On Tue, Feb 11, 2014 at 09:42:49AM +0100, David Nyström wrote: >>> 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' >> I guess you're missing this commit: >> >> bitbake: build.py: create separate function for shell trap creation code >> >> which is already in master. > > Thanks, > > David Tested-by: david.nystrom@enea.com With the manifest stub patch I sent and v5, FEEDS functionality for IPK is verified working again. Only below is generated when building from FEEDS: $ cat tmp/deploy/images/qemuppc/core-image-minimal-qemuppc.manifest busybox-syslog ppc7400 1.21.1-r0 libc6 ppc7400 2.18-r0 busybox ppc7400 1.21.1-r0 busybox-udhcpc ppc7400 1.21.1-r0 modutils-initscripts ppc7400 1.0-r6 libuuid1 ppc7400 2.23.2-r0 base-files qemuppc 3.0.14-r73 sysvinit-inittab qemuppc 2.88dsf-r9 initscripts ppc7400 1.0-r141 update-alternatives-cworth ppc7400 1:0.1.8+svnr653-r13.0 libblkid1 ppc7400 2.23.2-r0 udev-utils ppc7400 182-r7 libkmod2 ppc7400 14+git0+3b38c7fcb5-r0 base-passwd ppc7400 3.5.26-r2 busybox-hwclock ppc7400 1.21.1-r0 packagegroup-core-boot qemuppc 1.0-r11 udev ppc7400 182-r7 sysvinit-pidof ppc7400 2.88dsf-r11 update-rc.d all 0.7-r5 netbase ppc7400 1:5.1-r0 udev-cache ppc7400 182-r7 run-postinsts ppc7400 1.0-r9 init-ifupdown qemuppc 1.0-r3 sysvinit ppc7400 2.88dsf-r11 Br, David >> laurentiu >> >> >>> >>> 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' >>> >>> >>> >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-core >> >
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.