qemu/mips: arrange for vmlinux to be bootable

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Bruce Ashfield 2010-06-24 15:00:48 -04:00
parent ae6c323a0b
commit d39ae18df2
4 changed files with 8 additions and 7 deletions

View File

@ -68,13 +68,15 @@ UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}"
# We don't want to override kernel Makefile variables from the environment
EXTRA_OEMAKE = ""
KERNEL_ALT_IMAGETYPE ??= ""
kernel_do_compile() {
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}"
if [ "${KERNEL_MAJOR_VERSION}" != "2.6" ]; then
oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}"
fi
oe_runmake ${KERNEL_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}"
oe_runmake ${KERNEL_IMAGETYPE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}"
if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
else

View File

@ -7,7 +7,8 @@ TARGET_ARCH = "mips"
require conf/machine/include/qemu.inc
require conf/machine/include/tune-mips32.inc
KERNEL_IMAGETYPE = "vmlinux.bin"
KERNEL_IMAGETYPE = "vmlinux"
KERNEL_ALT_IMAGETYPE = "vmlinux.bin"
SERIAL_CONSOLE = "115200 ttyS0"

View File

@ -63,10 +63,8 @@ do_wrlinux_configcheck() {
}
do_wrlinux_link_vmlinux() {
if [ -n "${KERNEL_IMAGETYPE_LINK}" ]; then
cd ${B}/arch/${ARCH}/boot
ln -sf ../../../${KERNEL_IMAGETYPE_LINK}
fi
cd ${B}/arch/${ARCH}/boot
ln -sf ../../../vmlinux
}
do_wrlinux_configme[depends] = "kern-tools-native:do_populate_sysroot"

View File

@ -104,7 +104,7 @@ fi
if [ "$MACHINE" = "qemumips" ]; then
if [ "x$ZIMAGE" = "x" ]; then
ZIMAGE=$BUILDDIR/tmp/deploy/images/vmlinux.bin-$MACHINE.bin
ZIMAGE=$BUILDDIR/tmp/deploy/images/vmlinux-$MACHINE.bin
fi
if [ "$TYPE" = "ext3" ]; then
if [ "x$HDIMAGE" = "x" ]; then