mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
228f0a3ecb
commit
c454aef30f
|
@ -21,96 +21,96 @@ CMDLINE_append = " ${CMDLINE_DEBUG}"
|
||||||
# $1 - Configure variable to be set
|
# $1 - Configure variable to be set
|
||||||
# $2 - value [n/y/value]
|
# $2 - value [n/y/value]
|
||||||
kernel_configure_variable() {
|
kernel_configure_variable() {
|
||||||
# Remove the config
|
# Remove the config
|
||||||
CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;"
|
CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;"
|
||||||
if test "$2" = "n"
|
if test "$2" = "n"
|
||||||
then
|
then
|
||||||
echo "# CONFIG_$1 is not set" >> ${S}/.config
|
echo "# CONFIG_$1 is not set" >> ${S}/.config
|
||||||
else
|
else
|
||||||
echo "CONFIG_$1=$2" >> ${S}/.config
|
echo "CONFIG_$1=$2" >> ${S}/.config
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure_prepend() {
|
do_configure_prepend() {
|
||||||
# Clean .config
|
# Clean .config
|
||||||
echo "" > ${S}/.config
|
echo "" > ${S}/.config
|
||||||
CONF_SED_SCRIPT=""
|
CONF_SED_SCRIPT=""
|
||||||
|
|
||||||
# oabi / eabi support
|
# oabi / eabi support
|
||||||
if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then
|
if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then
|
||||||
kernel_configure_variable AEABI y
|
kernel_configure_variable AEABI y
|
||||||
if [ "${ARM_KEEP_OABI}" = "1" ] ; then
|
if [ "${ARM_KEEP_OABI}" = "1" ] ; then
|
||||||
kernel_configure_variable OABI_COMPAT y
|
kernel_configure_variable OABI_COMPAT y
|
||||||
else
|
else
|
||||||
kernel_configure_variable OABI_COMPAT n
|
kernel_configure_variable OABI_COMPAT n
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
kernel_configure_variable AEABI n
|
kernel_configure_variable AEABI n
|
||||||
kernel_configure_variable OABI_COMPAT n
|
kernel_configure_variable OABI_COMPAT n
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set cmdline
|
# Set cmdline
|
||||||
kernel_configure_variable CMDLINE "\"${CMDLINE}\""
|
kernel_configure_variable CMDLINE "\"${CMDLINE}\""
|
||||||
|
|
||||||
# Localversion
|
# Localversion
|
||||||
kernel_configure_variable LOCALVERSION "\"\""
|
kernel_configure_variable LOCALVERSION "\"\""
|
||||||
kernel_configure_variable LOCALVERSION_AUTO n
|
kernel_configure_variable LOCALVERSION_AUTO n
|
||||||
|
|
||||||
# Udev quirks
|
# Udev quirks
|
||||||
# Newer versions of udev mandate that sysfs doesn't have deprecated entries
|
# Newer versions of udev mandate that sysfs doesn't have deprecated entries
|
||||||
if [ "${UDEV_GE_141}" = "1" ] ; then
|
if [ "${UDEV_GE_141}" = "1" ] ; then
|
||||||
kernel_configure_variable SYSFS_DEPRECATED n
|
kernel_configure_variable SYSFS_DEPRECATED n
|
||||||
kernel_configure_variable SYSFS_DEPRECATED_V2 n
|
kernel_configure_variable SYSFS_DEPRECATED_V2 n
|
||||||
kernel_configure_variable HOTPLUG y
|
kernel_configure_variable HOTPLUG y
|
||||||
kernel_configure_variable UEVENT_HELPER_PATH "\"\""
|
kernel_configure_variable UEVENT_HELPER_PATH "\"\""
|
||||||
kernel_configure_variable UNIX y
|
kernel_configure_variable UNIX y
|
||||||
kernel_configure_variable SYSFS y
|
kernel_configure_variable SYSFS y
|
||||||
kernel_configure_variable PROC_FS y
|
kernel_configure_variable PROC_FS y
|
||||||
kernel_configure_variable TMPFS y
|
kernel_configure_variable TMPFS y
|
||||||
kernel_configure_variable INOTIFY_USER y
|
kernel_configure_variable INOTIFY_USER y
|
||||||
kernel_configure_variable SIGNALFD y
|
kernel_configure_variable SIGNALFD y
|
||||||
kernel_configure_variable TMPFS_POSIX_ACL y
|
kernel_configure_variable TMPFS_POSIX_ACL y
|
||||||
kernel_configure_variable BLK_DEV_BSG y
|
kernel_configure_variable BLK_DEV_BSG y
|
||||||
kernel_configure_variable DEVTMPFS y
|
kernel_configure_variable DEVTMPFS y
|
||||||
kernel_configure_variable DEVTMPFS_MOUNT y
|
kernel_configure_variable DEVTMPFS_MOUNT y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Newer inits like systemd need cgroup support
|
# Newer inits like systemd need cgroup support
|
||||||
if [ "${KERNEL_ENABLE_CGROUPS}" = "1" ] ; then
|
if [ "${KERNEL_ENABLE_CGROUPS}" = "1" ] ; then
|
||||||
kernel_configure_variable CGROUP_SCHED y
|
kernel_configure_variable CGROUP_SCHED y
|
||||||
kernel_configure_variable CGROUPS y
|
kernel_configure_variable CGROUPS y
|
||||||
kernel_configure_variable CGROUP_NS y
|
kernel_configure_variable CGROUP_NS y
|
||||||
kernel_configure_variable CGROUP_FREEZER y
|
kernel_configure_variable CGROUP_FREEZER y
|
||||||
kernel_configure_variable CGROUP_DEVICE y
|
kernel_configure_variable CGROUP_DEVICE y
|
||||||
kernel_configure_variable CPUSETS y
|
kernel_configure_variable CPUSETS y
|
||||||
kernel_configure_variable PROC_PID_CPUSET y
|
kernel_configure_variable PROC_PID_CPUSET y
|
||||||
kernel_configure_variable CGROUP_CPUACCT y
|
kernel_configure_variable CGROUP_CPUACCT y
|
||||||
kernel_configure_variable RESOURCE_COUNTERS y
|
kernel_configure_variable RESOURCE_COUNTERS y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# root-over-nfs-over-usb-eth support. Limited, but should cover some cases
|
# root-over-nfs-over-usb-eth support. Limited, but should cover some cases
|
||||||
# Enable this by setting a proper CMDLINE_NFSROOT_USB.
|
# Enable this by setting a proper CMDLINE_NFSROOT_USB.
|
||||||
if [ ! -z "${CMDLINE_NFSROOT_USB}" ]; then
|
if [ ! -z "${CMDLINE_NFSROOT_USB}" ]; then
|
||||||
oenote "Configuring the kernel for root-over-nfs-over-usb-eth with CMDLINE ${CMDLINE_NFSROOT_USB}"
|
oenote "Configuring the kernel for root-over-nfs-over-usb-eth with CMDLINE ${CMDLINE_NFSROOT_USB}"
|
||||||
kernel_configure_variable INET y
|
kernel_configure_variable INET y
|
||||||
kernel_configure_variable IP_PNP y
|
kernel_configure_variable IP_PNP y
|
||||||
kernel_configure_variable USB_GADGET y
|
kernel_configure_variable USB_GADGET y
|
||||||
kernel_configure_variable USB_GADGET_SELECTED y
|
kernel_configure_variable USB_GADGET_SELECTED y
|
||||||
kernel_configure_variable USB_ETH y
|
kernel_configure_variable USB_ETH y
|
||||||
kernel_configure_variable NFS_FS y
|
kernel_configure_variable NFS_FS y
|
||||||
kernel_configure_variable ROOT_NFS y
|
kernel_configure_variable ROOT_NFS y
|
||||||
kernel_configure_variable ROOT_NFS y
|
kernel_configure_variable ROOT_NFS y
|
||||||
kernel_configure_variable CMDLINE "\"${CMDLINE_NFSROOT_USB}\""
|
kernel_configure_variable CMDLINE "\"${CMDLINE_NFSROOT_USB}\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Activate CONFIG_LEGACY_PTYS
|
# Activate CONFIG_LEGACY_PTYS
|
||||||
kernel_configure_variable LEGACY_PTYS y
|
kernel_configure_variable LEGACY_PTYS y
|
||||||
|
|
||||||
# Keep this the last line
|
# Keep this the last line
|
||||||
# Remove all modified configs and add the rest to .config
|
# Remove all modified configs and add the rest to .config
|
||||||
sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${S}/.config'
|
sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${S}/.config'
|
||||||
|
|
||||||
yes '' | oe_runmake oldconfig
|
yes '' | oe_runmake oldconfig
|
||||||
}
|
}
|
||||||
|
|
||||||
# Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled
|
# Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled
|
||||||
|
|
Loading…
Reference in New Issue
Block a user