summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux.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.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.inc')
-rw-r--r--meta/recipes-kernel/linux/linux.inc91
1 files changed, 91 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux.inc b/meta/recipes-kernel/linux/linux.inc
new file mode 100644
index 0000000000..6f4db987d4
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux.inc
@@ -0,0 +1,91 @@
1DESCRIPTION = "Linux Kernel"
2SECTION = "kernel"
3LICENSE = "GPL"
4
5inherit kernel
6
7DEPENDS_append_em-x270 = " mtd-utils "
8
9RPSRC = "http://www.rpsys.net/openzaurus/patches/archive"
10
11# Specify the commandline for your device
12
13#boot from mmc
14CMDLINE_at91sam9263ek = "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p1 rootfstype=ext2 rootdelay=5"
15#boot from nfs
16#CMDLINE_at91sam9263ek = "mem=64M console=ttyS0,115200 root=301 root=/dev/nfs nfsroot=172.20.3.1:/data/at91 ip=172.20.0.5:::255.255.0.0"
17
18do_configure_prepend() {
19 echo "" > ${S}/.config
20
21 #
22 # logo support, if you supply logo_linux_clut224.ppm in SRC_URI, then it's going to be used
23 #
24 if [ -e ${WORKDIR}/logo_linux_clut224.ppm ]; then
25 install -m 0644 ${WORKDIR}/logo_linux_clut224.ppm drivers/video/logo/logo_linux_clut224.ppm
26 echo "CONFIG_LOGO=y" >> ${S}/.config
27 echo "CONFIG_LOGO_LINUX_CLUT224=y" >> ${S}/.config
28 fi
29
30 #
31 # oabi / eabi support
32 #
33 if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then
34 echo "CONFIG_AEABI=y" >> ${S}/.config
35 echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config
36 else
37 echo "# CONFIG_AEABI is not set" >> ${S}/.config
38 echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config
39 fi
40
41 echo "CONFIG_CMDLINE=\"${CMDLINE}\"" >> ${S}/.config
42
43 sed -e '/CONFIG_AEABI/d' \
44 -e '/CONFIG_OABI_COMPAT=/d' \
45 -e '/CONFIG_CMDLINE=/d' \
46 -e '/CONFIG_LOGO=/d' \
47 -e '/CONFIG_LOGO_LINUX_CLUT224=/d' \
48 < '${WORKDIR}/defconfig' >>'${S}/.config'
49
50 #
51 # root-over-nfs-over-usb-eth support. Limited, but should cover some cases.
52 # Enable this by setting a proper CMDLINE_NFSROOT_USB.
53 #
54 if [ ! -z "${CMDLINE_NFSROOT_USB}" ]; then
55 oenote "Configuring the kernel for root-over-nfs-over-usb-eth with CMDLINE ${CMDLINE_NFSROOT_USB}"
56 sed -e '/CONFIG_INET/d' \
57 -e '/CONFIG_IP_PNP=/d' \
58 -e '/CONFIG_USB_GADGET=/d' \
59 -e '/CONFIG_USB_GADGET_SELECTED=/d' \
60 -e '/CONFIG_USB_ETH=/d' \
61 -e '/CONFIG_NFS_FS=/d' \
62 -e '/CONFIG_ROOT_NFS=/d' \
63 -e '/CONFIG_CMDLINE=/d' \
64 -i ${S}/.config
65 echo "CONFIG_INET=y" >> ${S}/.config
66 echo "CONFIG_IP_PNP=y" >> ${S}/.config
67 echo "CONFIG_USB_GADGET=y" >> ${S}/.config
68 echo "CONFIG_USB_GADGET_SELECTED=y" >> ${S}/.config
69 echo "CONFIG_USB_ETH=y" >> ${S}/.config
70 echo "CONFIG_NFS_FS=y" >> ${S}/.config
71 echo "CONFIG_ROOT_NFS=y" >> ${S}/.config
72 echo "CONFIG_CMDLINE=\"${CMDLINE_NFSROOT_USB}\"" >> ${S}/.config
73 fi
74 yes '' | oe_runmake oldconfig
75}
76
77
78
79do_install_prepend() {
80 if test -e arch/${ARCH}/boot/Image ; then
81 ln -f arch/${ARCH}/boot/Image arch/${ARCH}/boot/uImage
82 fi
83
84 if test -e arch/${ARCH}/boot/images/uImage ; then
85 ln -f arch/${ARCH}/boot/images/uImage arch/${ARCH}/boot/uImage
86 fi
87
88 if test -e arch/${ARCH}/kernel/vmlinux.lds ; then
89 ln -f arch/${ARCH}/kernel/vmlinux.lds arch/${ARCH}/boot/vmlinux
90 fi
91}