Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/patchelf.cc b/src/patchelf.cc
index 55b38e3..7196908 100644
--- a/src/patchelf.cc
+++ b/src/patchelf.cc
@@ -721,10 +721,8 @@ void ElfFile<ElfFileParamNames>::rewriteSectionsLibrary()
since DYN executables tend to start at virtual address 0, so
rewriteSectionsExecutable() won't work because it doesn't have
any virtual address space to grow downwards into. */
- if (isExecutable) {
- if (startOffset >= startPage) {
$ bitbake -k core-image-lsb
WARNING: Host distribution "opensuse-13.2" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |###############################################################################################################################################| Time: 0:00:21
Parsing of 824 .bb files complete (0 cached, 824 parsed). 1290 targets, 61 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.34.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "opensuse-13.2"
$ bitbake core-image-minimal
Loading cache: 100% |#################################################################################################################################################| Time: 0:00:00
Loaded 1317 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.34.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal-4.8"
TARGET_SYS = "i586-poky-linux"
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index df7fe18..bacbeb4 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -71,6 +71,12 @@ efi_hddimg_populate() {
efi_populate $1
}
+efi_bootfs_populate() {
+ bootfs_dir="${WORKDIR}/bootfs"
diff --git a/scripts/runqemu b/scripts/runqemu
index a4036ae..e08ebb3 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -986,7 +986,7 @@ class BaseConfig(object):
cmd2 = "grep -q 'root=/dev/hd' %s" % self.rootfs
if subprocess.call(cmd1, shell=True) == 0:
logger.info('Using scsi drive')
- vm_drive = '-drive if=none,id=hd,file=%s,format=%s -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd' \
+ vm_drive = '-drive if=virtio,id=hd,file=%s,format=%s -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd' \
stty: standard input: Inappropriate ioctl for device
runqemu - INFO - Running /bin/ip link...
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock...
runqemu - INFO - Using preconfigured tap device tap0
runqemu - INFO - If this is not intended, touch /tmp/qemu-tap-locks/tap0.skip to make runqemu skip tap0.
runqemu - INFO - Network configuration: 192.168.7.2::192.168.7.1:255.255.255.0
runqemu - INFO - Using scsi drive
runqemu - INFO - Running ldd /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/wic-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/qemu-system-x86_64...
runqemu - INFO - Running /home/ed/git/yocto/poky/build/tmp/work/qemux86_64-poky-linux/wic-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -drive if=none,id=hd,file=/home/ed/git/yocto/poky/build/tmp/deploy/images/qemux86-64/wic-image-minimal-qemux86-64.wic,format=raw -device virtio-scsi-p
$ bitbake core-image-minimal
WARNING: Host distribution "opensuse-13.2" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |###############################################################################################################################################| Time: 0:00:14
Parsing of 848 .bb files complete (0 cached, 848 parsed). 1316 targets, 49 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.33.3"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "opensuse-13.2"
diff --git a/meta-refkit/lib/image-dsk.py b/meta-refkit/lib/image-dsk.py
index 2bddc5f..ee7d7c3 100644
--- a/meta-refkit/lib/image-dsk.py
+++ b/meta-refkit/lib/image-dsk.py
@@ -73,6 +73,7 @@ def sparse_copy(src_fname, dst_fname, offset_mib=0):
dst_file = open(dst_fname, 'r+b')
except IOError:
dst_file = open(dst_fname, 'wb')
+ dst_file.truncate(os.path.getsize(src_fname))
$ bitbake core-image-minimal
WARNING: Host distribution "opensuse-13.2" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |#################################################################################################################################################| Time: 0:00:00
Loaded 1316 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.33.2"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal-4.8"
[ed@vmed build (test)]$ oe-selftest -r wic.Wic.test_exclude_path
2017-03-09 22:41:36,429 - selftest - INFO - Running bitbake -e to get BBPATH
2017-03-09 22:41:39,172 - selftest - INFO - Checking that everything is in order before running the tests
2017-03-09 22:41:44,522 - selftest - INFO - Running bitbake -p
2017-03-09 22:41:48,223 - selftest - INFO - test runner init'ed like unittest
2017-03-09 22:41:50,941 - selftest - INFO - Loading tests from: oeqa.selftest.wic.Wic.test_exclude_path
2017-03-09 22:41:50,943 - selftest - INFO - Adding: "include selftest.inc" in local.conf
2017-03-09 22:41:50,944 - selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2017-03-09 22:41:50 - test_exclude_path (oeqa.selftest.wic.Wic)
Test --exclude-path wks option. ... FAIL