diff options
| -rw-r--r-- | README | 2 | ||||
| -rw-r--r-- | classes/sdcard_image-rpi.bbclass | 20 | ||||
| -rw-r--r-- | conf/machine/include/rpi-default-providers.inc | 3 | ||||
| -rw-r--r-- | recipes-graphics/mesa/mesa_9.2.2.bbappend | 48 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi.inc | 34 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.11.0.bb | 6 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.2.27.bb | 33 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.6.11.bb | 33 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.8.13.bb | 6 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux.inc | 174 |
10 files changed, 187 insertions, 172 deletions
| @@ -117,6 +117,8 @@ How to use it: | |||
| 117 | IMAGE_FSTYPES = "tar.bz2 ext3.xz rpi-sdimg.xz | 117 | IMAGE_FSTYPES = "tar.bz2 ext3.xz rpi-sdimg.xz |
| 118 | 2. Overwrite SDIMG_ROOTFS_TYPE in local.conf | 118 | 2. Overwrite SDIMG_ROOTFS_TYPE in local.conf |
| 119 | SDIMG_ROOTFS_TYPE = "ext3.xz" | 119 | SDIMG_ROOTFS_TYPE = "ext3.xz" |
| 120 | 3. Overwrite SDIMG_COMPRESSION in local.conf | ||
| 121 | SDIMG_COMPRESSION = "xz" | ||
| 120 | *Accommodate the values above to your own needs (ex: ext3 / ext4). | 122 | *Accommodate the values above to your own needs (ex: ext3 / ext4). |
| 121 | 123 | ||
| 122 | 2.B. Optional - GPU memory: | 124 | 2.B. Optional - GPU memory: |
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index a2fcd52..3ee4e94 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass | |||
| @@ -50,6 +50,13 @@ IMAGE_DEPENDS_rpi-sdimg = " \ | |||
| 50 | # SD card image name | 50 | # SD card image name |
| 51 | SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg" | 51 | SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg" |
| 52 | 52 | ||
| 53 | # Compression method to apply to SDIMG after it has been created. Supported | ||
| 54 | # compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file | ||
| 55 | # is kept and a new compressed file is created if one of these compression | ||
| 56 | # formats is chosen. If SDIMG_COMPRESSION is set to any other value it is | ||
| 57 | # silently ignored. | ||
| 58 | #SDIMG_COMPRESSION ?= "" | ||
| 59 | |||
| 53 | # Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS. | 60 | # Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS. |
| 54 | FATPAYLOAD ?= "" | 61 | FATPAYLOAD ?= "" |
| 55 | 62 | ||
| @@ -107,6 +114,19 @@ IMAGE_CMD_rpi-sdimg () { | |||
| 107 | else | 114 | else |
| 108 | dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync | 115 | dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync |
| 109 | fi | 116 | fi |
| 117 | |||
| 118 | # Optionally apply compression | ||
| 119 | case "${SDIMG_COMPRESSION}" in | ||
| 120 | "gzip") | ||
| 121 | gzip -k9 "${SDIMG}" | ||
| 122 | ;; | ||
| 123 | "bzip2") | ||
| 124 | bzip2 -k9 "${SDIMG}" | ||
| 125 | ;; | ||
| 126 | "xz") | ||
| 127 | xz -k "${SDIMG}" | ||
| 128 | ;; | ||
| 129 | esac | ||
| 110 | } | 130 | } |
| 111 | 131 | ||
| 112 | ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; " | 132 | ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; " |
diff --git a/conf/machine/include/rpi-default-providers.inc b/conf/machine/include/rpi-default-providers.inc index 665c6e0..1a647c9 100644 --- a/conf/machine/include/rpi-default-providers.inc +++ b/conf/machine/include/rpi-default-providers.inc | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | # RaspberryPi BSP default providers | 1 | # RaspberryPi BSP default providers |
| 2 | 2 | ||
| 3 | PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi" | 3 | PREFERRED_PROVIDER_virtual/kernel = "linux-raspberrypi" |
| 4 | # The default kernel version is the same as used by Raspbian | ||
| 5 | PREFERRED_VERSION_linux-raspberrypi ?= "3.6.%" | ||
| 6 | |||
| 4 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | 7 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" |
| 5 | PREFERRED_PROVIDER_virtual/egl ?= "userland" | 8 | PREFERRED_PROVIDER_virtual/egl ?= "userland" |
| 6 | PREFERRED_PROVIDER_virtual/libgles2 ?= "userland" | 9 | PREFERRED_PROVIDER_virtual/libgles2 ?= "userland" |
diff --git a/recipes-graphics/mesa/mesa_9.2.2.bbappend b/recipes-graphics/mesa/mesa_9.2.2.bbappend index 88e5eab..34da98f 100644 --- a/recipes-graphics/mesa/mesa_9.2.2.bbappend +++ b/recipes-graphics/mesa/mesa_9.2.2.bbappend | |||
| @@ -1,34 +1,36 @@ | |||
| 1 | PRINC := "${@int(PRINC) + 1}" | 1 | PRINC := "${@int(PRINC) + 2}" |
| 2 | 2 | ||
| 3 | # | 3 | # |
| 4 | # FIXME | 4 | # FIXME |
| 5 | # We may a way to disable EGL and GL ES2, these are provided by userland package | 5 | # We need a way to disable EGL and GL ES2, these are provided by userland package |
| 6 | # | 6 | # |
| 7 | python __anonymous () { | 7 | python __anonymous () { |
| 8 | import re | 8 | import re |
| 9 | 9 | ||
| 10 | # Remove egl and gles2 configure options | 10 | machine = d.getVar('MACHINE', True) |
| 11 | extra_oeconf = d.getVar('EXTRA_OECONF', True).split() | 11 | if machine == 'raspberrypi': |
| 12 | take_out = ['--enable-egl', '--enable-gles2', '--enable-gles1'] | 12 | # Remove egl and gles2 configure options |
| 13 | put_in = ['--disable-egl', '--disable-gles2', '--disable-gles1'] | 13 | extra_oeconf = d.getVar('EXTRA_OECONF', True).split() |
| 14 | pattern = re.compile("--with-egl-platforms") | 14 | take_out = ['--enable-egl', '--enable-gles2', '--enable-gles1'] |
| 15 | new_extra_oeconf = [] | 15 | put_in = ['--disable-egl', '--disable-gles2', '--disable-gles1'] |
| 16 | for i in extra_oeconf: | 16 | pattern = re.compile("--with-egl-platforms") |
| 17 | if i not in take_out and not pattern.match(i): | 17 | new_extra_oeconf = [] |
| 18 | for i in extra_oeconf: | ||
| 19 | if i not in take_out and not pattern.match(i): | ||
| 20 | new_extra_oeconf.append(i) | ||
| 21 | for i in put_in: | ||
| 18 | new_extra_oeconf.append(i) | 22 | new_extra_oeconf.append(i) |
| 19 | for i in put_in: | 23 | d.setVar('EXTRA_OECONF', ' '.join(new_extra_oeconf)) |
| 20 | new_extra_oeconf.append(i) | ||
| 21 | d.setVar('EXTRA_OECONF', ' '.join(new_extra_oeconf)) | ||
| 22 | 24 | ||
| 23 | # Remove egl and gles2 from provides | 25 | # Remove egl and gles2 from provides |
| 24 | provides = d.getVar('PROVIDES', True).split() | 26 | provides = d.getVar('PROVIDES', True).split() |
| 25 | take_out = ['virtual/libgles2', 'virtual/egl', 'virtual/libgles1'] | 27 | take_out = ['virtual/libgles2', 'virtual/egl', 'virtual/libgles1'] |
| 26 | new_provides = [] | 28 | new_provides = [] |
| 27 | for i in provides: | 29 | for i in provides: |
| 28 | if i not in take_out: | 30 | if i not in take_out: |
| 29 | new_provides.append(i) | 31 | new_provides.append(i) |
| 30 | d.setVar('PROVIDES', ' '.join(new_provides)) | 32 | d.setVar('PROVIDES', ' '.join(new_provides)) |
| 31 | 33 | ||
| 32 | # We are now machine specific | 34 | # We are now machine specific |
| 33 | d.setVar('PACKAGE_ARCH', d.getVar('MACHINE_ARCH')) | 35 | d.setVar('PACKAGE_ARCH', d.getVar('MACHINE_ARCH')) |
| 34 | } | 36 | } |
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc new file mode 100644 index 0000000..e756b57 --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi.inc | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | require linux.inc | ||
| 2 | |||
| 3 | DESCRIPTION = "Linux Kernel for Raspberry Pi" | ||
| 4 | SECTION = "kernel" | ||
| 5 | LICENSE = "GPLv2" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
| 7 | |||
| 8 | COMPATIBLE_MACHINE = "raspberrypi" | ||
| 9 | |||
| 10 | PV_append = "+git${SRCREV}" | ||
| 11 | |||
| 12 | S = "${WORKDIR}/git" | ||
| 13 | |||
| 14 | # NOTE: For now we pull in the default config from the RPi kernel GIT tree. | ||
| 15 | KERNEL_DEFCONFIG = "bcmrpi_defconfig" | ||
| 16 | |||
| 17 | # CMDLINE for raspberrypi | ||
| 18 | CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" | ||
| 19 | |||
| 20 | UDEV_GE_141 ?= "1" | ||
| 21 | |||
| 22 | do_configure_prepend() { | ||
| 23 | install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available." | ||
| 24 | } | ||
| 25 | |||
| 26 | do_install_prepend() { | ||
| 27 | install -d ${D}/lib/firmware | ||
| 28 | } | ||
| 29 | |||
| 30 | do_deploy_append() { | ||
| 31 | # Deploy cmdline.txt | ||
| 32 | install -d ${DEPLOYDIR}/bcm2835-bootfiles | ||
| 33 | echo "${CMDLINE}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt | ||
| 34 | } | ||
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.11.0.bb b/recipes-kernel/linux/linux-raspberrypi_3.11.0.bb new file mode 100644 index 0000000..1ae39b2 --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi_3.11.0.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | SRCREV = "d7474694bdc9836af17f4b4d839509f9aad7ffa7" | ||
| 2 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.11.y \ | ||
| 3 | file://sl030raspberrypii2ckernel.patch \ | ||
| 4 | " | ||
| 5 | |||
| 6 | require linux-raspberrypi.inc | ||
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb b/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb index 263e0ce..cc4ee38 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb | |||
| @@ -1,35 +1,6 @@ | |||
| 1 | require linux.inc | ||
| 2 | |||
| 3 | DESCRIPTION = "Linux kernel for the RaspberryPi board" | ||
| 4 | COMPATIBLE_MACHINE = "raspberrypi" | ||
| 5 | |||
| 6 | PR = "r7" | ||
| 7 | PV_append = "+git${SRCREV}" | ||
| 8 | |||
| 9 | SRCREV = "ada8b4415ff44d535d63e4291a0eca733bc2ad0f" | 1 | SRCREV = "ada8b4415ff44d535d63e4291a0eca733bc2ad0f" |
| 10 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.2.27 \ | 2 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.2.27 \ |
| 11 | file://sl030raspberrypii2ckernel.patch \ | 3 | file://sl030raspberrypii2ckernel.patch \ |
| 12 | " | 4 | " |
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | # NOTE: For now we pull in the default config from the RPi kernel GIT tree. | ||
| 16 | KERNEL_DEFCONFIG = "bcmrpi_defconfig" | ||
| 17 | |||
| 18 | # CMDLINE for raspberrypi | ||
| 19 | CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" | ||
| 20 | |||
| 21 | UDEV_GE_141 ?= "1" | ||
| 22 | |||
| 23 | do_configure_prepend() { | ||
| 24 | install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available." | ||
| 25 | } | ||
| 26 | |||
| 27 | do_install_prepend() { | ||
| 28 | install -d ${D}/lib/firmware | ||
| 29 | } | ||
| 30 | 5 | ||
| 31 | do_deploy_append() { | 6 | require linux-raspberrypi.inc |
| 32 | # Deploy cmdline.txt | ||
| 33 | install -d ${DEPLOYDIR}/bcm2835-bootfiles | ||
| 34 | echo "${CMDLINE}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt | ||
| 35 | } | ||
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.6.11.bb b/recipes-kernel/linux/linux-raspberrypi_3.6.11.bb index 48c99fd..5314f5d 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.6.11.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.6.11.bb | |||
| @@ -1,35 +1,6 @@ | |||
| 1 | require linux.inc | 1 | SRCREV = "cbd6672e7e1b2dc5026f5dc7929a13a9a68f2a62" |
| 2 | |||
| 3 | DESCRIPTION = "Linux kernel for the RaspberryPi board" | ||
| 4 | COMPATIBLE_MACHINE = "raspberrypi" | ||
| 5 | |||
| 6 | PR = "r7" | ||
| 7 | PV_append = "+git${SRCREV}" | ||
| 8 | |||
| 9 | SRCREV = "63b69a8806ce1890711ff55280c90673ea415933" | ||
| 10 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.6.y \ | 2 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.6.y \ |
| 11 | file://sl030raspberrypii2ckernel.patch \ | 3 | file://sl030raspberrypii2ckernel.patch \ |
| 12 | " | 4 | " |
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | # NOTE: For now we pull in the default config from the RPi kernel GIT tree. | ||
| 16 | KERNEL_DEFCONFIG = "bcmrpi_defconfig" | ||
| 17 | |||
| 18 | # CMDLINE for raspberrypi | ||
| 19 | CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" | ||
| 20 | |||
| 21 | UDEV_GE_141 ?= "1" | ||
| 22 | |||
| 23 | do_configure_prepend() { | ||
| 24 | install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available." | ||
| 25 | } | ||
| 26 | |||
| 27 | do_install_prepend() { | ||
| 28 | install -d ${D}/lib/firmware | ||
| 29 | } | ||
| 30 | 5 | ||
| 31 | do_deploy_append() { | 6 | require linux-raspberrypi.inc |
| 32 | # Deploy cmdline.txt | ||
| 33 | install -d ${DEPLOYDIR}/bcm2835-bootfiles | ||
| 34 | echo "${CMDLINE}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt | ||
| 35 | } | ||
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.8.13.bb b/recipes-kernel/linux/linux-raspberrypi_3.8.13.bb new file mode 100644 index 0000000..dc8cf0a --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi_3.8.13.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | SRCREV = "d996a1b91b2bf3dc06f4f4f822a56f4496457aa1" | ||
| 2 | SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.8.y \ | ||
| 3 | file://sl030raspberrypii2ckernel.patch \ | ||
| 4 | " | ||
| 5 | |||
| 6 | require linux-raspberrypi.inc | ||
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 |
