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