diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-02-18 15:38:12 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-21 17:59:39 +0000 |
commit | e79a8a6d1752d43746aa0cc09b8c20bfeabb2d95 (patch) | |
tree | d41ecfccfe2daf50bf740a0727fac48cf138b8c3 /meta/recipes-kernel | |
parent | 3b1662530fb76de3ab43c9057cd1141ff679df5a (diff) | |
download | poky-e79a8a6d1752d43746aa0cc09b8c20bfeabb2d95.tar.gz |
linux.inc: remove the obsolete linux.inc kernel recipe include
linux.inc was used by older kernel recipes which have now been removed from the
core meta data. I references machines now only defined in meta-extras. The
configure prepend mangles the kernel .config in non-intuitive ways and the
install peroforms some odd boot image manipulation that is not used nor required
by supported machines. The required functionality, such as defconfig setup, has
already been moved to the kernel bbclass. Remove linux.inc to avoid confusion
for new kernel recipe authors and clean up the kernel meta data.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/linux/linux.inc | 95 |
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 @@ | |||
1 | DESCRIPTION = "Linux Kernel" | ||
2 | SECTION = "kernel" | ||
3 | LICENSE = "GPLv2" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
6 | |||
7 | inherit kernel | ||
8 | require linux-dtb.inc | ||
9 | |||
10 | DEPENDS_append_em-x270 = " mtd-utils " | ||
11 | |||
12 | RPSRC = "http://www.rpsys.net/openzaurus/patches/archive" | ||
13 | |||
14 | # Specify the commandline for your device | ||
15 | |||
16 | #boot from mmc | ||
17 | CMDLINE_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 | |||
21 | do_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 | |||
82 | do_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 | |||