* do_install(), do_install_append() in qemu.inc
@ 2015-01-09 13:07 Robert P. J. Day
2015-01-09 13:12 ` Burton, Ross
0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2015-01-09 13:07 UTC (permalink / raw)
To: OE Core mailing list
just a curiosity ... i notice the following snippet in qemu.inc:
do_install () {
export STRIP="true"
autotools_do_install
install -d ${D}${datadir}/qemu
install -m 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu
}
# The following fragment will create a wrapper for qemu-mips user emulation
# binary in order to work around a segmentation fault issue. Basically, by
# default, the reserved virtual address space for 32-on-64 bit is set to 4GB.
# This will trigger a MMU access fault in the virtual CPU. With this change,
# the qemu-mips works fine.
# IMPORTANT: This piece needs to be removed once the root cause is fixed!
do_install_append() {
if [ -e "${D}/${bindir}/qemu-mips" ]; then
create_wrapper ${D}/${bindir}/qemu-mips \
QEMU_RESERVED_VA=0x0
fi
}
# END of qemu-mips workaround
it's kind of odd to see both a do_install() and do_install_append()
in the same file. is this workaround still necessary?
BTW, the only reason i tripped over this is that the YP dev manual
discourages one from defining both do_install() and
do_install_append() in the same file, so i thought i would do a quick
check under poky to see which files were doing just that, and there
are a few others. should they be adjusted? it does seem weird to
explicitly define do_install() then, immediately, append to it in the
same file.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: do_install(), do_install_append() in qemu.inc
2015-01-09 13:07 do_install(), do_install_append() in qemu.inc Robert P. J. Day
@ 2015-01-09 13:12 ` Burton, Ross
0 siblings, 0 replies; 2+ messages in thread
From: Burton, Ross @ 2015-01-09 13:12 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: OE Core mailing list
[-- Attachment #1: Type: text/plain, Size: 622 bytes --]
On 9 January 2015 at 13:07, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> BTW, the only reason i tripped over this is that the YP dev manual
> discourages one from defining both do_install() and
> do_install_append() in the same file, so i thought i would do a quick
> check under poky to see which files were doing just that, and there
> are a few others. should they be adjusted? it does seem weird to
> explicitly define do_install() then, immediately, append to it in the
> same file.
>
It's certainly redundant if not harmful, when I come across instances like
that I tend to merge them.
Ross
[-- Attachment #2: Type: text/html, Size: 1042 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-09 13:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-09 13:07 do_install(), do_install_append() in qemu.inc Robert P. J. Day
2015-01-09 13:12 ` Burton, Ross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.