summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-mx31.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/linux/linux-mx31.inc
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-mx31.inc')
-rw-r--r--meta/recipes-kernel/linux/linux-mx31.inc38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-mx31.inc b/meta/recipes-kernel/linux/linux-mx31.inc
new file mode 100644
index 0000000000..520229cf7f
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-mx31.inc
@@ -0,0 +1,38 @@
1SECTION = "kernel"
2DESCRIPTION = "Linux kernel for imx31 devices"
3LICENSE = "GPL"
4
5KERNEL_OUTPUT = "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"
6
7inherit kernel deploy
8
9COMPATIBLE_MACHINE = "mx31litekit|mx31ads|mx31phy"
10
11do_configure_prepend() {
12
13 rm -f ${S}/.config || true
14
15 if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then
16 echo "CONFIG_AEABI=y" >> ${S}/.config
17 echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config
18 else
19 echo "# CONFIG_AEABI is not set" >> ${S}/.config
20 echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config
21 fi
22
23 sed -e '/CONFIG_AEABI/d' \
24 -e '/CONFIG_OABI_COMPAT=/d' \
25 '${WORKDIR}/defconfig-${MACHINE}' >>'${S}/.config'
26
27 yes '' | oe_runmake oldconfig
28
29}
30
31do_deploy() {
32 install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOYDIR}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin
33 cd ${DEPLOYDIR}
34 ln -sf ${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin ${KERNEL_IMAGETYPE}-${MACHINE}.bin
35 tar -cvzf ${DEPLOYDIR}/modules-${KERNEL_RELEASE}-${MACHINE}.tgz -C ${D} lib
36}
37
38addtask deploy before do_populate_sysroot after do_install