diff options
author | Alexandru Niculita <alexnick87@gmail.com> | 2013-11-12 17:35:14 +0200 |
---|---|---|
committer | Alexandru Niculita <alexnick87@gmail.com> | 2013-11-12 17:35:14 +0200 |
commit | c454aef30ffaf66f307f54726399bb2380836e05 (patch) | |
tree | 8240e99f262171adaaf94b1ea81afc2f0033e88e | |
parent | 228f0a3ecb8040d7c60d4150f85acd26984a1c7b (diff) | |
download | meta-raspberrypi-c454aef30ffaf66f307f54726399bb2380836e05.tar.gz |
Remove tabs from recipe
From: Philipp Wagner <mail@philipp-wagner.com>
Change-Id: I24aea3b31e144d6f22f9149c186eeaae8b9e2c58
Signed-off-by: Philipp Wagner <mail@philipp-wagner.com>
Signed-off-by: Alexandru Niculita <alexnick87@gmail.com>
-rw-r--r-- | recipes-kernel/linux/linux.inc | 174 |
1 files changed, 87 insertions, 87 deletions
diff --git a/recipes-kernel/linux/linux.inc b/recipes-kernel/linux/linux.inc index 493616c..7a8f984 100644 --- a/recipes-kernel/linux/linux.inc +++ b/recipes-kernel/linux/linux.inc | |||
@@ -21,96 +21,96 @@ CMDLINE_append = " ${CMDLINE_DEBUG}" | |||
21 | # $1 - Configure variable to be set | 21 | # $1 - Configure variable to be set |
22 | # $2 - value [n/y/value] | 22 | # $2 - value [n/y/value] |
23 | kernel_configure_variable() { | 23 | kernel_configure_variable() { |
24 | # Remove the config | 24 | # Remove the config |
25 | CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;" | 25 | CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;" |
26 | if test "$2" = "n" | 26 | if test "$2" = "n" |
27 | then | 27 | then |
28 | echo "# CONFIG_$1 is not set" >> ${S}/.config | 28 | echo "# CONFIG_$1 is not set" >> ${S}/.config |
29 | else | 29 | else |
30 | echo "CONFIG_$1=$2" >> ${S}/.config | 30 | echo "CONFIG_$1=$2" >> ${S}/.config |
31 | fi | 31 | fi |
32 | } | 32 | } |
33 | 33 | ||
34 | do_configure_prepend() { | 34 | do_configure_prepend() { |
35 | # Clean .config | 35 | # Clean .config |
36 | echo "" > ${S}/.config | 36 | echo "" > ${S}/.config |
37 | CONF_SED_SCRIPT="" | 37 | CONF_SED_SCRIPT="" |
38 | 38 | ||
39 | # oabi / eabi support | 39 | # oabi / eabi support |
40 | if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then | 40 | if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then |
41 | kernel_configure_variable AEABI y | 41 | kernel_configure_variable AEABI y |
42 | if [ "${ARM_KEEP_OABI}" = "1" ] ; then | 42 | if [ "${ARM_KEEP_OABI}" = "1" ] ; then |
43 | kernel_configure_variable OABI_COMPAT y | 43 | kernel_configure_variable OABI_COMPAT y |
44 | else | 44 | else |
45 | kernel_configure_variable OABI_COMPAT n | 45 | kernel_configure_variable OABI_COMPAT n |
46 | fi | 46 | fi |
47 | else | 47 | else |
48 | kernel_configure_variable AEABI n | 48 | kernel_configure_variable AEABI n |
49 | kernel_configure_variable OABI_COMPAT n | 49 | kernel_configure_variable OABI_COMPAT n |
50 | fi | 50 | fi |
51 | 51 | ||
52 | # Set cmdline | 52 | # Set cmdline |
53 | kernel_configure_variable CMDLINE "\"${CMDLINE}\"" | 53 | kernel_configure_variable CMDLINE "\"${CMDLINE}\"" |
54 | 54 | ||
55 | # Localversion | 55 | # Localversion |
56 | kernel_configure_variable LOCALVERSION "\"\"" | 56 | kernel_configure_variable LOCALVERSION "\"\"" |
57 | kernel_configure_variable LOCALVERSION_AUTO n | 57 | kernel_configure_variable LOCALVERSION_AUTO n |
58 | 58 | ||
59 | # Udev quirks | 59 | # Udev quirks |
60 | # Newer versions of udev mandate that sysfs doesn't have deprecated entries | 60 | # Newer versions of udev mandate that sysfs doesn't have deprecated entries |
61 | if [ "${UDEV_GE_141}" = "1" ] ; then | 61 | if [ "${UDEV_GE_141}" = "1" ] ; then |
62 | kernel_configure_variable SYSFS_DEPRECATED n | 62 | kernel_configure_variable SYSFS_DEPRECATED n |
63 | kernel_configure_variable SYSFS_DEPRECATED_V2 n | 63 | kernel_configure_variable SYSFS_DEPRECATED_V2 n |
64 | kernel_configure_variable HOTPLUG y | 64 | kernel_configure_variable HOTPLUG y |
65 | kernel_configure_variable UEVENT_HELPER_PATH "\"\"" | 65 | kernel_configure_variable UEVENT_HELPER_PATH "\"\"" |
66 | kernel_configure_variable UNIX y | 66 | kernel_configure_variable UNIX y |
67 | kernel_configure_variable SYSFS y | 67 | kernel_configure_variable SYSFS y |
68 | kernel_configure_variable PROC_FS y | 68 | kernel_configure_variable PROC_FS y |
69 | kernel_configure_variable TMPFS y | 69 | kernel_configure_variable TMPFS y |
70 | kernel_configure_variable INOTIFY_USER y | 70 | kernel_configure_variable INOTIFY_USER y |
71 | kernel_configure_variable SIGNALFD y | 71 | kernel_configure_variable SIGNALFD y |
72 | kernel_configure_variable TMPFS_POSIX_ACL y | 72 | kernel_configure_variable TMPFS_POSIX_ACL y |
73 | kernel_configure_variable BLK_DEV_BSG y | 73 | kernel_configure_variable BLK_DEV_BSG y |
74 | kernel_configure_variable DEVTMPFS y | 74 | kernel_configure_variable DEVTMPFS y |
75 | kernel_configure_variable DEVTMPFS_MOUNT y | 75 | kernel_configure_variable DEVTMPFS_MOUNT y |
76 | fi | 76 | fi |
77 | 77 | ||
78 | # Newer inits like systemd need cgroup support | 78 | # Newer inits like systemd need cgroup support |
79 | if [ "${KERNEL_ENABLE_CGROUPS}" = "1" ] ; then | 79 | if [ "${KERNEL_ENABLE_CGROUPS}" = "1" ] ; then |
80 | kernel_configure_variable CGROUP_SCHED y | 80 | kernel_configure_variable CGROUP_SCHED y |
81 | kernel_configure_variable CGROUPS y | 81 | kernel_configure_variable CGROUPS y |
82 | kernel_configure_variable CGROUP_NS y | 82 | kernel_configure_variable CGROUP_NS y |
83 | kernel_configure_variable CGROUP_FREEZER y | 83 | kernel_configure_variable CGROUP_FREEZER y |
84 | kernel_configure_variable CGROUP_DEVICE y | 84 | kernel_configure_variable CGROUP_DEVICE y |
85 | kernel_configure_variable CPUSETS y | 85 | kernel_configure_variable CPUSETS y |
86 | kernel_configure_variable PROC_PID_CPUSET y | 86 | kernel_configure_variable PROC_PID_CPUSET y |
87 | kernel_configure_variable CGROUP_CPUACCT y | 87 | kernel_configure_variable CGROUP_CPUACCT y |
88 | kernel_configure_variable RESOURCE_COUNTERS y | 88 | kernel_configure_variable RESOURCE_COUNTERS y |
89 | fi | 89 | fi |
90 | 90 | ||
91 | # root-over-nfs-over-usb-eth support. Limited, but should cover some cases | 91 | # root-over-nfs-over-usb-eth support. Limited, but should cover some cases |
92 | # Enable this by setting a proper CMDLINE_NFSROOT_USB. | 92 | # Enable this by setting a proper CMDLINE_NFSROOT_USB. |
93 | if [ ! -z "${CMDLINE_NFSROOT_USB}" ]; then | 93 | if [ ! -z "${CMDLINE_NFSROOT_USB}" ]; then |
94 | oenote "Configuring the kernel for root-over-nfs-over-usb-eth with CMDLINE ${CMDLINE_NFSROOT_USB}" | 94 | oenote "Configuring the kernel for root-over-nfs-over-usb-eth with CMDLINE ${CMDLINE_NFSROOT_USB}" |
95 | kernel_configure_variable INET y | 95 | kernel_configure_variable INET y |
96 | kernel_configure_variable IP_PNP y | 96 | kernel_configure_variable IP_PNP y |
97 | kernel_configure_variable USB_GADGET y | 97 | kernel_configure_variable USB_GADGET y |
98 | kernel_configure_variable USB_GADGET_SELECTED y | 98 | kernel_configure_variable USB_GADGET_SELECTED y |
99 | kernel_configure_variable USB_ETH y | 99 | kernel_configure_variable USB_ETH y |
100 | kernel_configure_variable NFS_FS y | 100 | kernel_configure_variable NFS_FS y |
101 | kernel_configure_variable ROOT_NFS y | 101 | kernel_configure_variable ROOT_NFS y |
102 | kernel_configure_variable ROOT_NFS y | 102 | kernel_configure_variable ROOT_NFS y |
103 | kernel_configure_variable CMDLINE "\"${CMDLINE_NFSROOT_USB}\"" | 103 | kernel_configure_variable CMDLINE "\"${CMDLINE_NFSROOT_USB}\"" |
104 | fi | 104 | fi |
105 | 105 | ||
106 | # Activate CONFIG_LEGACY_PTYS | 106 | # Activate CONFIG_LEGACY_PTYS |
107 | kernel_configure_variable LEGACY_PTYS y | 107 | kernel_configure_variable LEGACY_PTYS y |
108 | 108 | ||
109 | # Keep this the last line | 109 | # Keep this the last line |
110 | # Remove all modified configs and add the rest to .config | 110 | # Remove all modified configs and add the rest to .config |
111 | sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${S}/.config' | 111 | sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${S}/.config' |
112 | 112 | ||
113 | yes '' | oe_runmake oldconfig | 113 | yes '' | oe_runmake oldconfig |
114 | } | 114 | } |
115 | 115 | ||
116 | # Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled | 116 | # Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled |