diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2010-06-24 15:00:48 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2010-07-19 11:59:51 -0400 |
commit | d39ae18df26852b96a6493649bfd53c917d58297 (patch) | |
tree | 29b7480646937b73524f0e285ed5a751464a2404 | |
parent | ae6c323a0bf8648fa308128d19d78e601e833a0d (diff) | |
download | poky-d39ae18df26852b96a6493649bfd53c917d58297.tar.gz |
qemu/mips: arrange for vmlinux to be bootable
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | meta/classes/kernel.bbclass | 4 | ||||
-rw-r--r-- | meta/conf/machine/qemumips.conf | 3 | ||||
-rw-r--r-- | meta/packages/linux/linux-wrs_git.bb | 6 | ||||
-rwxr-xr-x | scripts/runqemu | 2 |
4 files changed, 8 insertions, 7 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 85d1158bd3..673cfad231 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -68,13 +68,15 @@ UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" | |||
68 | # We don't want to override kernel Makefile variables from the environment | 68 | # We don't want to override kernel Makefile variables from the environment |
69 | EXTRA_OEMAKE = "" | 69 | EXTRA_OEMAKE = "" |
70 | 70 | ||
71 | KERNEL_ALT_IMAGETYPE ??= "" | ||
72 | |||
71 | kernel_do_compile() { | 73 | kernel_do_compile() { |
72 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE | 74 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE |
73 | oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 75 | oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
74 | if [ "${KERNEL_MAJOR_VERSION}" != "2.6" ]; then | 76 | if [ "${KERNEL_MAJOR_VERSION}" != "2.6" ]; then |
75 | oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 77 | oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
76 | fi | 78 | fi |
77 | oe_runmake ${KERNEL_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 79 | oe_runmake ${KERNEL_IMAGETYPE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
78 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then | 80 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then |
79 | oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 81 | oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
80 | else | 82 | else |
diff --git a/meta/conf/machine/qemumips.conf b/meta/conf/machine/qemumips.conf index 1f330e0d59..283ae1e1d4 100644 --- a/meta/conf/machine/qemumips.conf +++ b/meta/conf/machine/qemumips.conf | |||
@@ -7,7 +7,8 @@ TARGET_ARCH = "mips" | |||
7 | require conf/machine/include/qemu.inc | 7 | require conf/machine/include/qemu.inc |
8 | require conf/machine/include/tune-mips32.inc | 8 | require conf/machine/include/tune-mips32.inc |
9 | 9 | ||
10 | KERNEL_IMAGETYPE = "vmlinux.bin" | 10 | KERNEL_IMAGETYPE = "vmlinux" |
11 | KERNEL_ALT_IMAGETYPE = "vmlinux.bin" | ||
11 | 12 | ||
12 | SERIAL_CONSOLE = "115200 ttyS0" | 13 | SERIAL_CONSOLE = "115200 ttyS0" |
13 | 14 | ||
diff --git a/meta/packages/linux/linux-wrs_git.bb b/meta/packages/linux/linux-wrs_git.bb index a4bdcab5d7..be7d184e65 100644 --- a/meta/packages/linux/linux-wrs_git.bb +++ b/meta/packages/linux/linux-wrs_git.bb | |||
@@ -63,10 +63,8 @@ do_wrlinux_configcheck() { | |||
63 | } | 63 | } |
64 | 64 | ||
65 | do_wrlinux_link_vmlinux() { | 65 | do_wrlinux_link_vmlinux() { |
66 | if [ -n "${KERNEL_IMAGETYPE_LINK}" ]; then | 66 | cd ${B}/arch/${ARCH}/boot |
67 | cd ${B}/arch/${ARCH}/boot | 67 | ln -sf ../../../vmlinux |
68 | ln -sf ../../../${KERNEL_IMAGETYPE_LINK} | ||
69 | fi | ||
70 | } | 68 | } |
71 | 69 | ||
72 | do_wrlinux_configme[depends] = "kern-tools-native:do_populate_sysroot" | 70 | do_wrlinux_configme[depends] = "kern-tools-native:do_populate_sysroot" |
diff --git a/scripts/runqemu b/scripts/runqemu index 25d30c98a9..c7c51ec77a 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -104,7 +104,7 @@ fi | |||
104 | 104 | ||
105 | if [ "$MACHINE" = "qemumips" ]; then | 105 | if [ "$MACHINE" = "qemumips" ]; then |
106 | if [ "x$ZIMAGE" = "x" ]; then | 106 | if [ "x$ZIMAGE" = "x" ]; then |
107 | ZIMAGE=$BUILDDIR/tmp/deploy/images/vmlinux.bin-$MACHINE.bin | 107 | ZIMAGE=$BUILDDIR/tmp/deploy/images/vmlinux-$MACHINE.bin |
108 | fi | 108 | fi |
109 | if [ "$TYPE" = "ext3" ]; then | 109 | if [ "$TYPE" = "ext3" ]; then |
110 | if [ "x$HDIMAGE" = "x" ]; then | 110 | if [ "x$HDIMAGE" = "x" ]; then |