From 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 10 Oct 2014 03:20:04 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- ...-ath5k-fix-compilation-without-CONFIG_PCI.patch | 33 ++++++ .../compat-wireless/compat-wireless-all_3.6.8.bb | 5 + .../compat-wireless/compat-wireless.inc | 33 ++++++ meta-oe/recipes-kernel/ktap/ktap-module_0.4.bb | 22 ++++ meta-oe/recipes-kernel/ktap/ktap.inc | 13 ++ meta-oe/recipes-kernel/ktap/ktap_0.4.bb | 26 ++++ meta-oe/recipes-kernel/linux/linux.inc | 131 +++++++++++++++++++++ 7 files changed, 263 insertions(+) create mode 100644 meta-oe/recipes-kernel/compat-wireless/compat-wireless-all/0001-ath5k-fix-compilation-without-CONFIG_PCI.patch create mode 100644 meta-oe/recipes-kernel/compat-wireless/compat-wireless-all_3.6.8.bb create mode 100644 meta-oe/recipes-kernel/compat-wireless/compat-wireless.inc create mode 100644 meta-oe/recipes-kernel/ktap/ktap-module_0.4.bb create mode 100644 meta-oe/recipes-kernel/ktap/ktap.inc create mode 100644 meta-oe/recipes-kernel/ktap/ktap_0.4.bb create mode 100644 meta-oe/recipes-kernel/linux/linux.inc (limited to 'meta-oe/recipes-kernel') diff --git a/meta-oe/recipes-kernel/compat-wireless/compat-wireless-all/0001-ath5k-fix-compilation-without-CONFIG_PCI.patch b/meta-oe/recipes-kernel/compat-wireless/compat-wireless-all/0001-ath5k-fix-compilation-without-CONFIG_PCI.patch new file mode 100644 index 0000000000..3a51266d08 --- /dev/null +++ b/meta-oe/recipes-kernel/compat-wireless/compat-wireless-all/0001-ath5k-fix-compilation-without-CONFIG_PCI.patch @@ -0,0 +1,33 @@ +From fb323acc0b01bcf1ecafb9330c4fbb41cf942139 Mon Sep 17 00:00:00 2001 +From: Denis 'GNUtoo' Carikli +Date: Wed, 18 Jul 2012 01:01:52 +0200 +Subject: [PATCH] ath5k: fix compilation without CONFIG_PCI + +Without that fix we have: + [...]/drivers/net/wireless/ath/ath5k/led.c: In function 'ath5k_init_leds': + [...]/drivers/net/wireless/ath/ath5k/led.c:179:2: error: implicit declaration of function 'pci_match_id' [-Werror=implicit-function-declaration] +When CONFIG_PCI is not set. + +Upstream-Status: Pending: Not submitted yet. + +Signed-off-by: Denis 'GNUtoo' Carikli +--- + drivers/net/wireless/ath/ath5k/led.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/drivers/net/wireless/ath/ath5k/led.c b/drivers/net/wireless/ath/ath5k/led.c +index c044476..a4de133 100644 +--- a/drivers/net/wireless/ath/ath5k/led.c ++++ b/drivers/net/wireless/ath/ath5k/led.c +@@ -173,7 +173,7 @@ int __devinit ath5k_init_leds(struct ath5k_hw *ah) + if (!ah->pdev) + return 0; + +-#ifdef CONFIG_ATHEROS_AR231X ++#if defined(CONFIG_ATHEROS_AR231X) || !defined(CONFIG_PCI) + match = NULL; + #else + match = pci_match_id(&ath5k_led_devices[0], pdev); +-- +1.7.4.1 + diff --git a/meta-oe/recipes-kernel/compat-wireless/compat-wireless-all_3.6.8.bb b/meta-oe/recipes-kernel/compat-wireless/compat-wireless-all_3.6.8.bb new file mode 100644 index 0000000000..0c407defcf --- /dev/null +++ b/meta-oe/recipes-kernel/compat-wireless/compat-wireless-all_3.6.8.bb @@ -0,0 +1,5 @@ +include compat-wireless.inc +PR = "${INC_PR}.0" + +SRC_URI[md5sum] = "f02849a795137438238b4d166609eacc" +SRC_URI[sha256sum] = "9bbbc72bf0adf73012f377caa38147e90f6d77ef0369b52f9a687bc66bbfbcfa" diff --git a/meta-oe/recipes-kernel/compat-wireless/compat-wireless.inc b/meta-oe/recipes-kernel/compat-wireless/compat-wireless.inc new file mode 100644 index 0000000000..398142601e --- /dev/null +++ b/meta-oe/recipes-kernel/compat-wireless/compat-wireless.inc @@ -0,0 +1,33 @@ +DESCRIPTION = "Latest wireless drivers" +HOMEPAGE = "http://wireless.kernel.org/en/users/Download" +SECTION = "kernel/modules" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d7810fab7487fb0aad327b76f1be7cd7" +RDEPENDS_${PN} = "wireless-tools" +INC_PR = "r1" + +# depends on config options which are not enabled in qemu* MACHINEs by default +# config.mk:25: *** "ERROR: your kernel has CONFIG_CFG80211=y, you should have it CONFIG_CFG80211=m if you want to use this thing.". Stop. +EXCLUDE_FROM_WORLD = "1" + +COMPAT_WIRELESS_VERSION = "${PV}-1" +SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}" + +SRC_URI = " \ + http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v${SHRT_VER}/compat-wireless-${COMPAT_WIRELESS_VERSION}.tar.bz2 \ + file://0001-ath5k-fix-compilation-without-CONFIG_PCI.patch \ +" + +S = "${WORKDIR}/compat-wireless-${COMPAT_WIRELESS_VERSION}" + +inherit module + +EXTRA_OEMAKE = "KLIB_BUILD=${STAGING_KERNEL_DIR} KLIB=${D}" + +do_configure_append() { + sed -i "s#@./scripts/update-initramfs## " Makefile +} + +do_install() { + oe_runmake DEPMOD=echo DESTDIR="${D}" INSTALL_MOD_PATH="${D}" LDFLAGS="" install-modules +} diff --git a/meta-oe/recipes-kernel/ktap/ktap-module_0.4.bb b/meta-oe/recipes-kernel/ktap/ktap-module_0.4.bb new file mode 100644 index 0000000000..62f2a99a25 --- /dev/null +++ b/meta-oe/recipes-kernel/ktap/ktap-module_0.4.bb @@ -0,0 +1,22 @@ +# Released under the MIT license (see COPYING.MIT for the terms) + +require ktap.inc + +SUMMARY = "KTAP is a scripting dynamic tracing tool for Linux" + +inherit module + +# Available package configs: ffi (only supported on x86_64) +PACKAGECONFIG ?= "" + +# Only build the module +MAKE_TARGETS = "${@base_contains('PACKAGECONFIG', 'ffi', 'FFI=1', '', d)} mod" + +# Kernel module packages MUST begin with 'kernel-module-', otherwise +# multilib image generation can fail. +# +# The following line is only necessary if the recipe name does not begin +# with kernel-module-. +# +PKG_${PN} = "kernel-module-${PN}" + diff --git a/meta-oe/recipes-kernel/ktap/ktap.inc b/meta-oe/recipes-kernel/ktap/ktap.inc new file mode 100644 index 0000000000..93a4e2ca32 --- /dev/null +++ b/meta-oe/recipes-kernel/ktap/ktap.inc @@ -0,0 +1,13 @@ +# Released under the MIT license (see COPYING.MIT for the terms) + +HOMEPAGE = "http://www.ktap.org" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE-GPL;md5=eb723b61539feef013de476e68b5c50a" + +SRCREV = "c8401e07c89cdec9a5f673da4ddb12b7982b522b" +SRC_URI = "git://github.com/ktap/ktap.git" + +S = "${WORKDIR}/git" + +# Package config is abused as a general compile time configuration tool. +PACKAGECONFIG[ffi] = "" diff --git a/meta-oe/recipes-kernel/ktap/ktap_0.4.bb b/meta-oe/recipes-kernel/ktap/ktap_0.4.bb new file mode 100644 index 0000000000..20f94d5980 --- /dev/null +++ b/meta-oe/recipes-kernel/ktap/ktap_0.4.bb @@ -0,0 +1,26 @@ +# Released under the MIT license (see COPYING.MIT for the terms) + +require ktap.inc + +SUMMARY = "KTAP is a scripting dynamic tracing tool for Linux" +DEPENDS = "ktap-module" + +#Available package configs: +# libelf - needed to resolve symbols in DSO and for sdt +# ffi - only supports x86_64 for now!. Needs to be enabled for ktap-module too. +PACKAGECONFIG ?= "libelf" + +PACKAGECONFIG[libelf] = ",,elfutils" + +# Only build the userspace app +EXTRA_OEMAKE = "${@base_contains('PACKAGECONFIG', 'libelf', '', 'NO_LIBELF=1', d)} \ + ${@base_contains('PACKAGECONFIG', 'ffi', 'FFI=1', '', d)} \ + ktap" + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${S}/ktap ${D}${bindir}/ +} + +RDEPENDS_${PN} = "kernel-module-ktapvm" + diff --git a/meta-oe/recipes-kernel/linux/linux.inc b/meta-oe/recipes-kernel/linux/linux.inc new file mode 100644 index 0000000000..7b301ae211 --- /dev/null +++ b/meta-oe/recipes-kernel/linux/linux.inc @@ -0,0 +1,131 @@ +DESCRIPTION = "Linux Kernel" +SECTION = "kernel" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" + +INC_PR = "r0" + +inherit kernel siteinfo + +# Enable OABI compat for people stuck with obsolete userspace +ARM_KEEP_OABI ?= "0" + +# Set the verbosity of kernel messages during runtime +# You can define CMDLINE_DEBUG in your local.conf or distro.conf to override this behaviour +CMDLINE_DEBUG ?= "loglevel=3" + +# Kernel bootlogo is distro-specific (default is OE logo). +# Logo resolution (qvga, vga, ...) is machine-specific. +LOGO_SIZE ?= '${@base_conditional("MACHINE_GUI_CLASS", "bigscreen", "vga", "qvga", d)}' +# To use this, add file://${LOGO_SIZE}/logo_linux_clut224.ppm.bz2 or similar +# to your kernel recipe, and then structure your logos for each resolution +# accordingly. + +LOCALVERSION ?= "" + +#kernel_conf_variable CMDLINE "\"${CMDLINE} ${CMDLINE_DEBUG}\"" +kernel_conf_variable() { + CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;" + if test "$2" = "n" + then + echo "# CONFIG_$1 is not set" >> ${S}/.config + else + echo "CONFIG_$1=$2" >> ${S}/.config + fi +} + +do_configure_prepend() { + echo "" > ${S}/.config + CONF_SED_SCRIPT="" + + # + # logo support, if you supply logo_linux_clut224.ppm in SRC_URI, then it's going to be used + # + if [ -e ${WORKDIR}/logo_linux_clut224.ppm ]; then + install -m 0644 ${WORKDIR}/logo_linux_clut224.ppm drivers/video/logo/logo_linux_clut224.ppm + kernel_conf_variable LOGO y + kernel_conf_variable LOGO_LINUX_CLUT224 y + fi + + # + # oabi / eabi support + # + kernel_conf_variable AEABI y + if [ "${ARM_KEEP_OABI}" = "1" ] ; then + kernel_conf_variable OABI_COMPAT y + else + kernel_conf_variable OABI_COMPAT n + fi + + # When enabling thumb for userspace we also need thumb support in the kernel + if [ "${ARM_INSTRUCTION_SET}" = "thumb" ] ; then + kernel_conf_variable ARM_THUMB y + fi + + kernel_conf_variable CMDLINE "\"${CMDLINE} ${CMDLINE_DEBUG}\"" + + kernel_conf_variable LOCALVERSION "\"${LOCALVERSION}\"" + kernel_conf_variable LOCALVERSION_AUTO n + + kernel_conf_variable SYSFS_DEPRECATED n + kernel_conf_variable SYSFS_DEPRECATED_V2 n + kernel_conf_variable HOTPLUG y + kernel_conf_variable UEVENT_HELPER_PATH \"\" + kernel_conf_variable UNIX y + kernel_conf_variable SYSFS y + kernel_conf_variable PROC_FS y + kernel_conf_variable TMPFS y + kernel_conf_variable INOTIFY_USER y + kernel_conf_variable SIGNALFD y + kernel_conf_variable TMPFS_POSIX_ACL y + kernel_conf_variable BLK_DEV_BSG y + kernel_conf_variable DEVTMPFS y + kernel_conf_variable DEVTMPFS_MOUNT y + + # Newer inits like systemd need cgroup support + if [ "${KERNEL_ENABLE_CGROUPS}" = "1" ] ; then + kernel_conf_variable CGROUP_SCHED y + kernel_conf_variable CGROUPS y + kernel_conf_variable CGROUP_NS y + kernel_conf_variable CGROUP_FREEZER y + kernel_conf_variable CGROUP_DEVICE y + kernel_conf_variable CPUSETS y + kernel_conf_variable PROC_PID_CPUSET y + kernel_conf_variable CGROUP_CPUACCT y + kernel_conf_variable RESOURCE_COUNTERS y + fi + + # + # root-over-nfs-over-usb-eth support. Limited, but should cover some cases. + # Enable this by setting a proper CMDLINE_NFSROOT_USB. + # + if [ ! -z "${CMDLINE_NFSROOT_USB}" ]; then + bbnote "Configuring the kernel for root-over-nfs-over-usb-eth with CMDLINE ${CMDLINE_NFSROOT_USB}" + kernel_conf_variable INET y + kernel_conf_variable IP_PNP y + kernel_conf_variable USB_GADGET y + kernel_conf_variable USB_GADGET_SELECTED y + kernel_conf_variable USB_ETH y + kernel_conf_variable NFS_FS y + kernel_conf_variable ROOT_NFS y + kernel_conf_variable CMDLINE \"${CMDLINE_NFSROOT_USB} ${CMDLINE_DEBUG}\" + fi + + sed -e "${CONF_SED_SCRIPT}" \ + < '${WORKDIR}/defconfig' >>'${S}/.config' + + yes '' | oe_runmake oldconfig +} + +do_configure_append() { + if test -e scripts/Makefile.fwinst ; then + sed -i -e "s:-m0644:-m 0644:g" scripts/Makefile.fwinst + fi +} + +do_install_append() { + oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix}/src/linux-${KERNEL_VERSION} ARCH=$ARCH +} + +PACKAGES =+ "kernel-headers" +FILES_kernel-headers = "${exec_prefix}/src/linux*" -- cgit v1.2.3-54-g00ecf