diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-03-19 20:56:09 +0100 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-03-19 20:56:09 +0100 |
commit | 6a21d65d2840c58cfa7cd749a04669d8f7980646 (patch) | |
tree | 00b1aa153b69cda8cf9406c4700fd7730c34d3a5 /recipes/linux-uml/linux-uml_2.6.11-rc2-mm1.bb | |
parent | dcfe7349b369a87881cf1fa43085d9e9c5609fcf (diff) | |
parent | 6f854d71c347475d53d5080a5490625345d95d12 (diff) |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/linux-uml/linux-uml_2.6.11-rc2-mm1.bb')
-rw-r--r-- | recipes/linux-uml/linux-uml_2.6.11-rc2-mm1.bb | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/recipes/linux-uml/linux-uml_2.6.11-rc2-mm1.bb b/recipes/linux-uml/linux-uml_2.6.11-rc2-mm1.bb new file mode 100644 index 0000000000..915378cb56 --- /dev/null +++ b/recipes/linux-uml/linux-uml_2.6.11-rc2-mm1.bb @@ -0,0 +1,58 @@ +DESCRIPTION = "User Mode Linux Kernel" +SECTION = "kernel" +LICENSE = "GPL" +KV = "${@bb.data.getVar('PV',d,True).split('-')[0]}" +RCV = "${@bb.data.getVar('PV',d,True).split('-')[1]}" +MMV = "${@bb.data.getVar('PV',d,True).split('-')[2]}" +LV = "2.6.10" +PR = "r3" + +SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${LV}.tar.bz2 \ + ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/testing/patch-${KV}-${RCV}.bz2;patch=1 \ + ${KERNELORG_MIRROR}/pub/linux/kernel/people/akpm/patches/2.6/${KV}-${RCV}/${KV}-${RCV}-${MMV}/${KV}-${RCV}-${MMV}.gz;patch=1 \ + file://defconfig" +#http://www.suse.de/~kraxel/uml/patches/2.6.10-rc3/uml-core-on-panic;patch=1 \ +#http://www.suse.de/~kraxel/uml/patches/2.6.10-rc3/uml-pretend-to-be-i586;patch=1 \ +#http://www.suse.de/~kraxel/uml/patches/2.6.10-rc3/uml-general-protection-fault;patch=1 \ +#http://www.suse.de/~kraxel/uml/patches/2.6.10-rc3/uml-x11-fb;patch=1 \ + +S = "${WORKDIR}/linux-${LV}" + +inherit kernel + +COMPATIBLE_HOST = 'i.86.*-linux' +COMPATIBLE_MACHINE = "x86-uml" + +export OS = "Linux" +ARCH = "um" +SUBARCH = "${TARGET_ARCH}" +KERNEL_IMAGETYPE = "linux" +EXTRA_OEMAKE = "'CC=${KERNEL_CC}' 'LD=${KERNEL_LD}' \ + 'SUBARCH=${SUBARCH}'" +EXTRA_CFLAGS += "-I${includedir}" + +do_configure() { + install -m 0644 ${WORKDIR}/defconfig .config + oe_runmake oldconfig +} + +do_compile() { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + install -d arch/um/include/linux/ + install -m 0644 include/linux/inet.h arch/um/include/linux/ + kernel_do_compile +} + +do_stage_prepend() { + install -d arch/um/boot/ + ln -sf ${S}/linux arch/um/boot/linux +} + +do_install() { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + #oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install + install -d ${D}/boot + install -m 0755 linux ${D}/boot/linux-${PV} + install -m 0644 System.map ${D}/boot/System.map-${PV} + install -m 0644 .config ${D}/boot/config-${PV} +} |