From 6b4c82f4657bdb56e6b7a56651d6d4bb91a35b8f Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 13:29:32 +0200 Subject: initial commit for Enea Linux 4.0 Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau --- COPYING.MIT | 17 + FAQ | 106 ++ MAINTAINERS | 19 + README.bbb | 86 ++ README.clanton | 15 + README.desktop | 17 + README.fri2 | 65 ++ README.iot | 54 ++ README.md | 93 ++ README.nuc | 65 ++ README.rpi | 64 ++ README.vbox | 72 ++ meta-eca-bsp/conf/layer.conf | 13 + .../recipes-eca/grub-conf/eca-grub-conf_1.0.bb | 16 + meta-eca-bsp/recipes-eca/grub-conf/files/grub.conf | 10 + .../images/core-image-minimal-initramfs.bbappend | 4 + meta-eca-bsp/recipes-eca/images/eca-image.bbappend | 10 + .../packagegroups/packagegroup-eca.bbappend | 23 + .../linux/clanton/linux-yocto-clanton_3.8.bbappend | 28 + .../linux/linux-mainline/netfilter.cfg | 13 + .../linux/linux-mainline_3.8.bbappend | 14 + .../linux/linux-yocto/beagle_qemu.cfg | 5 + .../recipes-kernel/linux/linux-yocto_3.4.bbappend | 7 + meta-eca/conf/distro/eca-bleeding.conf | 11 + meta-eca/conf/distro/eca-graphics.conf | 34 + meta-eca/conf/distro/eca.conf | 21 + .../conf/distro/include/default-providers-eca.inc | 9 + .../conf/distro/include/eca-floating-revisions.inc | 9 + meta-eca/conf/layer.conf | 15 + meta-eca/recipes-connectivity/bluez5/bluez5_git.bb | 21 + .../bluez5/files/bluetooth.conf | 37 + .../bluez5/files/fix-udev-paths.patch | 35 + .../connman/connman-init-systemd.bb | 32 + .../recipes-connectivity/connman/connman_git.bb | 51 + ...1-doc-Debugging-in-host-that-uses-systemd.patch | 44 + ...-environment-file-for-connmand-debug-opti.patch | 31 + ...-environment-file-for-connman-vpnd-debug-.patch | 32 + .../connman/files/add_xuser_dbus_permission.patch | 21 + .../recipes-connectivity/connman/files/connman | 61 ++ .../connman/files/connman-init-settings.sh | 96 ++ .../connman/files/connman-init.service | 13 + .../iproute2/files/0001-No-arpd-please.patch | 28 + .../iproute2/iproute2_%.bbappend | 9 + .../libpcap/libpcap_%.bbappend | 1 + .../neard/files/neard.service.in | 13 + meta-eca/recipes-connectivity/neard/neard_git.bb | 20 + meta-eca/recipes-connectivity/ofono/files/ofono | 42 + meta-eca/recipes-connectivity/ofono/ofono_git.bb | 32 + .../scapy/python-scapy_2.2.0.bb | 24 + .../wpa-supplicant/wpa-supplicant_%.bbappend | 15 + .../base-files/base-files_3.0.14.bbappend | 11 + meta-eca/recipes-core/busybox/busybox_%.bbappend | 2 + meta-eca/recipes-core/busybox/files/defconfig | 1014 ++++++++++++++++++++ .../recipes-devtools/ninja/ninja-native_1.4.0.bb | 21 + meta-eca/recipes-eca/images/eca-image.bb | 4 + meta-eca/recipes-eca/images/eca-image.inc | 31 + .../packagegroups/packagegroup-base.bbappend | 5 + .../packagegroups/packagegroup-eca-desktop.bb | 45 + .../recipes-eca/packagegroups/packagegroup-eca.bb | 127 +++ .../recipes-kernel/linux/linux-mainline_3.8.bb | 3 + .../recipes-kernel/linux/linux-yocto/bluetooth.cfg | 21 + .../recipes-kernel/linux/linux-yocto/bridge.cfg | 2 + .../linux-yocto/high-speed-mobile-devices.cfg | 1 + meta-eca/recipes-kernel/linux/linux-yocto/ipv6.cfg | 3 + meta-eca/recipes-kernel/linux/linux-yocto/l2tp.cfg | 2 + .../recipes-kernel/linux/linux-yocto/mac80211.cfg | 2 + .../linux/linux-yocto/netfilter-3.10.cfg | 175 ++++ .../linux/linux-yocto/netfilter-3.8.cfg | 175 ++++ .../linux/linux-yocto/netfilter-ipv4.cfg | 14 + .../linux/linux-yocto/netfilter-small-3.8.cfg | 23 + .../recipes-kernel/linux/linux-yocto/nfacct.cfg | 2 + .../recipes-kernel/linux/linux-yocto/nfc-3.4.cfg | 5 + meta-eca/recipes-kernel/linux/linux-yocto/nfc.cfg | 7 + .../linux/linux-yocto/nokia-phonet.cfg | 2 + .../recipes-kernel/linux/linux-yocto/rfkill.cfg | 3 + .../linux/linux-yocto/tun-device.cfg | 1 + .../linux/linux-yocto/usb-eth-gadget.cfg | 3 + .../linux/linux-yocto/usb-net-3.10.cfg | 22 + .../recipes-kernel/linux/linux-yocto/usb-net.cfg | 14 + .../linux/linux-yocto/usb-serial.cfg | 8 + .../linux/linux-yocto/wlan-atheros-3.4.cfg | 14 + .../linux/linux-yocto/wlan-atheros.cfg | 21 + .../linux/linux-yocto/wlan-broadcom.cfg | 24 + .../linux/linux-yocto/wlan-intel-3.10.cfg | 4 + .../linux/linux-yocto/wlan-intel.cfg | 3 + .../linux/linux-yocto/wlan-marwel.cfg | 4 + .../linux/linux-yocto/wlan-ralink.cfg | 15 + .../linux/linux-yocto/wlan-realtek-3.4.cfg | 6 + .../linux/linux-yocto/wlan-realtek.cfg | 11 + .../recipes-kernel/linux/linux-yocto/wlan-ti.cfg | 9 + .../linux/linux-yocto/wlan-zydas-3.4.cfg | 4 + .../linux/linux-yocto/wlan-zydas.cfg | 1 + .../recipes-kernel/linux/linux-yocto_3.10.bbappend | 27 + .../recipes-kernel/linux/linux-yocto_3.14.bbappend | 27 + .../recipes-kernel/linux/linux-yocto_3.4.bbappend | 19 + ...c-Check-only-for-libsystemd-not-libsystem.patch | 30 + .../pulseaudio/files/volatiles.04_pulse | 2 + .../pulseaudio/pulseaudio_git.bb | 23 + meta-eca/recipes-support/libusb/libusb1_%.bbappend | 5 + meta-eca/recipes-web/eca-web/eca-web_0.1.bb | 49 + meta-eca/recipes-web/eca-web/files/COPYING | 340 +++++++ meta-eca/recipes-web/eca-web/files/config | 4 + meta-eca/recipes-web/eca-web/files/eca-web.service | 12 + meta-eca/recipes-web/eca-web/files/start-eca-web | 13 + meta-eca/recipes-web/webpy/webpy_0.37.bb | 18 + meta-iot/conf/layer.conf | 12 + .../avahi/avahi-daemon-init.bb | 31 + .../avahi-daemon-init/LICENSE.avahi-daemon-init | 9 + .../avahi-daemon-init-settings.sh | 20 + .../avahi-daemon-init/avahi-daemon-init.service | 12 + .../avahi/avahi_0.6.31.bbappend | 10 + .../recipes-web/the-thing-system/steward-init.bb | 40 + .../steward-init/LICENSE.steward-init | 9 + .../steward-init/steward-init-settings.sh | 62 ++ .../steward-init/steward-init.service.in | 14 + .../steward/npm-setup-proxies.example | 5 + .../the-thing-system/steward/package.json | 90 ++ .../the-thing-system/steward/server.js.in | 3 + .../the-thing-system/steward/start-steward | 22 + .../the-thing-system/steward/start-steward.debug | 22 + .../the-thing-system/steward/steward.service.in | 12 + .../recipes-web/the-thing-system/steward_git.bb | 131 +++ .../recipes-web/the-thing-system/tts-nodejs_git.bb | 49 + 123 files changed, 4559 insertions(+) create mode 100644 COPYING.MIT create mode 100644 FAQ create mode 100644 MAINTAINERS create mode 100644 README.bbb create mode 100644 README.clanton create mode 100644 README.desktop create mode 100644 README.fri2 create mode 100644 README.iot create mode 100644 README.md create mode 100644 README.nuc create mode 100644 README.rpi create mode 100644 README.vbox create mode 100644 meta-eca-bsp/conf/layer.conf create mode 100644 meta-eca-bsp/recipes-eca/grub-conf/eca-grub-conf_1.0.bb create mode 100644 meta-eca-bsp/recipes-eca/grub-conf/files/grub.conf create mode 100644 meta-eca-bsp/recipes-eca/images/core-image-minimal-initramfs.bbappend create mode 100644 meta-eca-bsp/recipes-eca/images/eca-image.bbappend create mode 100644 meta-eca-bsp/recipes-eca/packagegroups/packagegroup-eca.bbappend create mode 100644 meta-eca-bsp/recipes-kernel/linux/clanton/linux-yocto-clanton_3.8.bbappend create mode 100644 meta-eca-bsp/recipes-kernel/linux/linux-mainline/netfilter.cfg create mode 100644 meta-eca-bsp/recipes-kernel/linux/linux-mainline_3.8.bbappend create mode 100644 meta-eca-bsp/recipes-kernel/linux/linux-yocto/beagle_qemu.cfg create mode 100644 meta-eca-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend create mode 100644 meta-eca/conf/distro/eca-bleeding.conf create mode 100644 meta-eca/conf/distro/eca-graphics.conf create mode 100644 meta-eca/conf/distro/eca.conf create mode 100644 meta-eca/conf/distro/include/default-providers-eca.inc create mode 100644 meta-eca/conf/distro/include/eca-floating-revisions.inc create mode 100644 meta-eca/conf/layer.conf create mode 100644 meta-eca/recipes-connectivity/bluez5/bluez5_git.bb create mode 100644 meta-eca/recipes-connectivity/bluez5/files/bluetooth.conf create mode 100644 meta-eca/recipes-connectivity/bluez5/files/fix-udev-paths.patch create mode 100644 meta-eca/recipes-connectivity/connman/connman-init-systemd.bb create mode 100644 meta-eca/recipes-connectivity/connman/connman_git.bb create mode 100644 meta-eca/recipes-connectivity/connman/files/0001-doc-Debugging-in-host-that-uses-systemd.patch create mode 100644 meta-eca/recipes-connectivity/connman/files/0002-systemd-Use-environment-file-for-connmand-debug-opti.patch create mode 100644 meta-eca/recipes-connectivity/connman/files/0003-systemd-Use-environment-file-for-connman-vpnd-debug-.patch create mode 100644 meta-eca/recipes-connectivity/connman/files/add_xuser_dbus_permission.patch create mode 100644 meta-eca/recipes-connectivity/connman/files/connman create mode 100755 meta-eca/recipes-connectivity/connman/files/connman-init-settings.sh create mode 100644 meta-eca/recipes-connectivity/connman/files/connman-init.service create mode 100644 meta-eca/recipes-connectivity/iproute2/files/0001-No-arpd-please.patch create mode 100644 meta-eca/recipes-connectivity/iproute2/iproute2_%.bbappend create mode 100644 meta-eca/recipes-connectivity/libpcap/libpcap_%.bbappend create mode 100644 meta-eca/recipes-connectivity/neard/files/neard.service.in create mode 100644 meta-eca/recipes-connectivity/neard/neard_git.bb create mode 100644 meta-eca/recipes-connectivity/ofono/files/ofono create mode 100644 meta-eca/recipes-connectivity/ofono/ofono_git.bb create mode 100644 meta-eca/recipes-connectivity/scapy/python-scapy_2.2.0.bb create mode 100644 meta-eca/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend create mode 100644 meta-eca/recipes-core/base-files/base-files_3.0.14.bbappend create mode 100644 meta-eca/recipes-core/busybox/busybox_%.bbappend create mode 100644 meta-eca/recipes-core/busybox/files/defconfig create mode 100644 meta-eca/recipes-devtools/ninja/ninja-native_1.4.0.bb create mode 100644 meta-eca/recipes-eca/images/eca-image.bb create mode 100644 meta-eca/recipes-eca/images/eca-image.inc create mode 100644 meta-eca/recipes-eca/packagegroups/packagegroup-base.bbappend create mode 100644 meta-eca/recipes-eca/packagegroups/packagegroup-eca-desktop.bb create mode 100644 meta-eca/recipes-eca/packagegroups/packagegroup-eca.bb create mode 100644 meta-eca/recipes-kernel/linux/linux-mainline_3.8.bb create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/bluetooth.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/bridge.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/high-speed-mobile-devices.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/ipv6.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/l2tp.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/mac80211.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/netfilter-3.10.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/netfilter-3.8.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/netfilter-ipv4.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/netfilter-small-3.8.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/nfacct.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/nfc-3.4.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/nfc.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/nokia-phonet.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/rfkill.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/tun-device.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/usb-eth-gadget.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/usb-net-3.10.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/usb-net.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/usb-serial.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-atheros-3.4.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-atheros.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-broadcom.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-intel-3.10.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-intel.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-marwel.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-ralink.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-realtek-3.4.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-realtek.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-ti.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-zydas-3.4.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto/wlan-zydas.cfg create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto_3.10.bbappend create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto_3.14.bbappend create mode 100644 meta-eca/recipes-kernel/linux/linux-yocto_3.4.bbappend create mode 100644 meta-eca/recipes-multimedia/pulseaudio/files/0001-configure.ac-Check-only-for-libsystemd-not-libsystem.patch create mode 100644 meta-eca/recipes-multimedia/pulseaudio/files/volatiles.04_pulse create mode 100644 meta-eca/recipes-multimedia/pulseaudio/pulseaudio_git.bb create mode 100644 meta-eca/recipes-support/libusb/libusb1_%.bbappend create mode 100644 meta-eca/recipes-web/eca-web/eca-web_0.1.bb create mode 100644 meta-eca/recipes-web/eca-web/files/COPYING create mode 100644 meta-eca/recipes-web/eca-web/files/config create mode 100644 meta-eca/recipes-web/eca-web/files/eca-web.service create mode 100755 meta-eca/recipes-web/eca-web/files/start-eca-web create mode 100644 meta-eca/recipes-web/webpy/webpy_0.37.bb create mode 100644 meta-iot/conf/layer.conf create mode 100644 meta-iot/recipes-connectivity/avahi/avahi-daemon-init.bb create mode 100644 meta-iot/recipes-connectivity/avahi/avahi-daemon-init/LICENSE.avahi-daemon-init create mode 100755 meta-iot/recipes-connectivity/avahi/avahi-daemon-init/avahi-daemon-init-settings.sh create mode 100644 meta-iot/recipes-connectivity/avahi/avahi-daemon-init/avahi-daemon-init.service create mode 100644 meta-iot/recipes-connectivity/avahi/avahi_0.6.31.bbappend create mode 100644 meta-iot/recipes-web/the-thing-system/steward-init.bb create mode 100644 meta-iot/recipes-web/the-thing-system/steward-init/LICENSE.steward-init create mode 100755 meta-iot/recipes-web/the-thing-system/steward-init/steward-init-settings.sh create mode 100644 meta-iot/recipes-web/the-thing-system/steward-init/steward-init.service.in create mode 100644 meta-iot/recipes-web/the-thing-system/steward/npm-setup-proxies.example create mode 100644 meta-iot/recipes-web/the-thing-system/steward/package.json create mode 100644 meta-iot/recipes-web/the-thing-system/steward/server.js.in create mode 100755 meta-iot/recipes-web/the-thing-system/steward/start-steward create mode 100755 meta-iot/recipes-web/the-thing-system/steward/start-steward.debug create mode 100644 meta-iot/recipes-web/the-thing-system/steward/steward.service.in create mode 100644 meta-iot/recipes-web/the-thing-system/steward_git.bb create mode 100644 meta-iot/recipes-web/the-thing-system/tts-nodejs_git.bb diff --git a/COPYING.MIT b/COPYING.MIT new file mode 100644 index 0000000..fb950dc --- /dev/null +++ b/COPYING.MIT @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/FAQ b/FAQ new file mode 100644 index 0000000..b1043f8 --- /dev/null +++ b/FAQ @@ -0,0 +1,106 @@ +* What is ECA (Embedded Connectivity Appliance)? + +ECA is a platform for building network appliances. ECA is not a product itself +but it can be used to create networking devices. ECA is also a platform for +prototyping various networking technologies, like use of Bluetooth low +energy devices in IP networks. + +ECA is Yocto based layer that ties together various open source +connectivity components like ConnMan for connection management, +oFono for cellular access, BlueZ for Bluetooth connectivity and +neard for NFC support. + +As an example, a tethering network appliance (mobile access point) is built +using ECA. This tethering application can provide Wifi AP that various devices +can use to connect to internet via ECA. + + +* What do you mean by tethering in this context? + +Tethering means that ECA provides network access point that clients can use +it to connect to internet. ECA can tether wifi, bluetooth and ethernet networks. +These technologies can be tethered all at the same time. + + +* What is Wifi tethering? + +In Wifi tethering, ECA creates a Wifi access point using a configured +name (SSID) and passphrase. The created AP uses WPA security. The internet +access is typically provided by ethernet interface. + + +* What is Bluetooth tethering? + +In Bluetooth tethering, ECA creates a PAN network and Bluetooth clients can +connect to it. Internet access can be provided by ethernet, cellular or wifi. + + +* What is ethernet tethering? + +Ethernet tethering means that client is connected to ECA via ethernet cable. +ECA runs a DHCP server, and provides an IP address to the client. The internet +access is typically provided either by wifi or cellular network. +Note that ECA device that is configured to use ethernet tethering MUST not be +connected to network that has other dhcp servers running, like corporate network +or your home network. The corporate or home network might get confused if +there are multiple DHCP servers running and providing IP addresses. + + +* What hardware platform does it run? + +ECA is created using Yocto (see https://www.yoctoproject.org/ for details), +so in theory it can run in all the devices that are supported by Yocto. +In practice there are some restrictions, like available RAM, CPU speed etc. +It is also important to have enough connectors for networking devices that +are typically connected via USB, like usb wifi or cellular dongles. + +ECA has been successfully running in the following devices: +- Intel NUC +- Beagleboard +- RaspberryPi +- Intel Atom PC +- Intel FRI2 (Fish River Island 2) +- Beaglebone +- VirtualBox image + + +* What wifi USB dongles are supported? + +The ECA kernel is compiled with all the wifi devices supported by the kernel. +It is still possible that some wifi hardware is not supported by the ECA. +Even if kernel supports the wifi hardware, it is possible that the wifi dongle +firmware is not available for Linux. + + +* What Bluetooth USB dongles are supported? + +Same issue as in Wifi dongles, your dongle might be supported or not. +Usually the issues are firmware related i.e., the firmware file is missing. + + +* What cellular USB dongles are supported? + +Same issue as in Wifi dongles, your dongle might be supported or not. +Usually the issues are firmware related i.e., the firmware file is missing. +Many cellular USB modems are complicated to configure as they provide +also mass storage mode that contains the Windows setup files. When cellular +modem is inserted, the usb-modeswitch program tries to activate the cellular +chip but sometimes it fails to do so. + + +* What USB ethernet dongles are supported? + +All the kernel supported ethernet dongles should work. If the ethernet dongle +is a new one, it might be that the kernel support is not yet activated. + + +* Where do I get it? + +You can get the meta-eca layer for Yocto from +git://git.yoctoproject.org/meta-eca + + +* How do I start using the ECA tethering appliance? + +See the README file in the meta-eca sources or blog at +http://metaeca.wordpress.com \ No newline at end of file diff --git a/MAINTAINERS b/MAINTAINERS new file mode 100644 index 0000000..0865e0d --- /dev/null +++ b/MAINTAINERS @@ -0,0 +1,19 @@ +This file contains a list of maintainers for the meta-eca layer. + +Descriptions of section entries: + + M: Mail patches to: FullName + F: Files and directories with wildcard patterns. + A trailing slash includes all files and subdirectory files. + F: recipes-devtools/ all files in and below meta-ivi + F: recipes-selinux/* all files in meta-ivi, but not below + One pattern per line. Multiple F: lines acceptable. + +Please keep this list in alphabetical order. + +Maintainers List (try to look for most precise areas first) + +COMMON +M: Jukka Rissanen +F: * + diff --git a/README.bbb b/README.bbb new file mode 100644 index 0000000..059ee8c --- /dev/null +++ b/README.bbb @@ -0,0 +1,86 @@ +Instructions for BeagleBoneBlack device +--------------------------------------- + +You might want to check from README.md file what poky and meta-oe +revisions are supported. Usually HEAD version work ok but if it +does not, then you can use the tested version mentioned in that file. + +$ mkdir yocto +$ cd yocto +$ git clone git://git.yoctoproject.org/poky +$ cd poky +$ git clone git://git.openembedded.org/meta-openembedded +$ git clone git://git.yoctoproject.org/meta-eca +$ export YOCTO=`pwd` +$ git clone git://github.com/beagleboard/meta-beagleboard.git +$ . oe-init-build-env build-bbb +$ cd conf + +Edit bblayers.conf file and add these layers to BBLAYERS variable, +if your name is not "user", then fix the path accordingly. + +/home/user/yocto/poky/meta-eca/meta-eca +/home/user/yocto/poky/meta-eca/meta-eca-bsp +/home/user/yocto/poky/meta-beagleboard/common-bsp +/home/user/yocto/poky/meta-openembedded/meta-oe +/home/user/yocto/poky/meta-openembedded/meta-systemd +/home/user/yocto/poky/meta-openembedded/meta-networking +/home/user/yocto/poky/meta-openembedded/meta-ruby + +Edit local.conf file + +* set BB_NUMBER_THREADS and PARALLEL_MAKE accordingly to your machine + capabilities +* set your target to MACHINE ?= "beaglebone" +* set DISTRO ?= "eca" +* add BBMASK = "meta/recipes-connectivity/bluez/bluez4*|meta-openembedded/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4*" + + +If you want to build the Internet-of-Things version of ECA, then add + +/home/user/yocto/poky/meta-eca/meta-iot + +to bblayers.conf and also add + +DISTRO_FEATURES_append = " internet-of-things" + +to local.conf file. + + +Then build the distro + +$ cd $BUILDDIR +$ bitbake eca-image + +If the build succeeds, the result image can be found at +tmp-eglibc/deploy/images/beaglebone + +Partition and format an SD card: + +# fdisk -lu /dev/mmcblk0 + +Disk /dev/mmcblk0: 3951 MB, 3951034368 bytes +255 heads, 63 sectors/track, 480 cylinders, total 7716864 sectors +Units = sectors of 1 * 512 = 512 bytes + + Device Boot Start End Blocks Id System +/dev/mmcblk0p1 * 63 144584 72261 c Win95 FAT32 +/dev/mmcblk0p2 144585 465884 160650 83 Linux + +# mkfs.vfat -F 16 -n "boot" /dev/mmcblk0p1 +# mke2fs -j -L "root" /dev/mmcblk0p2 + +The following assumes the SD card partition 1 and 2 are mounted at +/media/boot and /media/root respectively. Removing the card and reinserting +it will do just that on most modern Linux desktop environments. + +$ sudo -s +# cd tmp-eglibc/deploy/images/beaglebone +# cp MLO /media/boot/ +# cp u-boot.img /media/boot/u-boot.bin +# cp uImage /media/boot/ +# tar x -C /media/root -f eca-image-beaglebone.tar.gz +# tar x -C /media/root -f modules-beaglebone.tgz +# sync + +Then eject the SD card, insert it to your Beaglebone and boot. diff --git a/README.clanton b/README.clanton new file mode 100644 index 0000000..ac39100 --- /dev/null +++ b/README.clanton @@ -0,0 +1,15 @@ +Installation instructions for Galileo (clanton) device +------------------------------------------------------ + +Format a micro SD card with FAT32 (one partition is enough). +Lets assume the micro SD is mounted at /media/BOOT. + +$ cd $BUILDDIR + +you should now be in Yocto build directory. + +$ cd tmp-eglibc/deploy/images/clanton +$ cp -r boot /media/BOOT +$ cp bzImage grub.efi /media/BOOT +$ cp core-image-minimal-initramfs-clanton.cpio.gz rootfs.img /media/BOOT + diff --git a/README.desktop b/README.desktop new file mode 100644 index 0000000..dacfbf9 --- /dev/null +++ b/README.desktop @@ -0,0 +1,17 @@ +ECA with graphics +----------------- + +For demo purposes it might be useful to have a configuration +that is able to use browser in localhost. + +Get the browser layer from git://github.com/OSSystems/meta-browser.git + +Set following things in local.conf file: + +DISTRO = "eca-graphics" + + +and these things in bblayers.conf: + + /home/user/yocto/poky/meta-openembedded/meta-gnome + /home/user/yocto/poky/meta-browser diff --git a/README.fri2 b/README.fri2 new file mode 100644 index 0000000..8f2c653 --- /dev/null +++ b/README.fri2 @@ -0,0 +1,65 @@ +Instructions for Intel FRI2 +--------------------------- + +You might want to check from README.md file what poky and meta-oe +revisions are supported. Usually HEAD version work ok but if it +does not, then you can use the tested version mentioned in that file. + +$ mkdir yocto +$ cd yocto +$ git clone git://git.yoctoproject.org/poky +$ cd poky +$ git clone git://git.openembedded.org/meta-openembedded +$ git clone git://git.yoctoproject.org/meta-eca +$ export YOCTO=`pwd` +$ git clone git://git.yoctoproject.org/meta-intel +$ . oe-init-build-env build-fri2 +$ cd conf + +Edit bblayers.conf file and add these layers to BBLAYERS variable, +if your name is not "user", then fix the path accordingly. + +/home/user/yocto/poky/meta-eca/meta-eca +/home/user/yocto/poky/meta-eca/meta-eca-bsp +/home/user/yocto/poky/meta-intel +/home/user/yocto/poky/meta-intel/meta-fri2 +/home/user/yocto/poky/meta-openembedded/meta-oe +/home/user/yocto/poky/meta-openembedded/meta-systemd +/home/user/yocto/poky/meta-openembedded/meta-networking +/home/user/yocto/poky/meta-openembedded/meta-ruby + +Edit local.conf file + +* set BB_NUMBER_THREADS and PARALLEL_MAKE accordingly to your machine + capabilities +* set your target to MACHINE ?= "fri2-noemgd" +* set DISTRO ?= "eca" +* add BBMASK = "meta/recipes-connectivity/bluez/bluez4*|meta-openembedded/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4*" + + +If you want to build the Internet-of-Things version of ECA, then add + +/home/user/yocto/poky/meta-eca/meta-iot + +to bblayers.conf and also add + +DISTRO_FEATURES_append = " internet-of-things" + +to local.conf file. + + +Then build the distro + +$ cd $BUILDDIR +$ bitbake eca-image + +If the build succeeds, the result image can be found at +tmp-eglibc/deploy/images/fri2-noemgd + +Insert USB mass storage stick and figure out its device name (use dmesg +and see messages at the end). Lets assume the USB stick is at /dev/sdX + +$ cd tmp-eglibc/deploy/images/fri2-noemgd +$ sudo dd if=eca-image-fri2-noemgd.hddimg of=/dev/sdX + +Then eject the USB stick, insert it to FRI2 device and boot. diff --git a/README.iot b/README.iot new file mode 100644 index 0000000..a4d6e14 --- /dev/null +++ b/README.iot @@ -0,0 +1,54 @@ +Internet of Things +================== + +This version of eca contains TheThingSystem Steward support. + +In order to include it in the image, just set this in your local.conf file. + + DISTRO_FEATURES_append = " internet-of-things" + +and add meta-eca/meta-iot to your BBLAYERS in your bblayers.conf file. + + +Note that during the build, the TheThingSystem steward needs Internet +access to load node.js components. + +If you are behind a proxy, then you need a special hack to set the +proxies for npm. + cp meta-eca/meta-iot/recipes-web/the-thing-system/steward/npm-setup-proxies.example ~/npm-setup-proxies + chmod 755 ~/npm-setup-proxies +Edit ~/npm-setup-proxies and set your proxy settings there. + +If you see this python error while building steward + + gyp ERR! stack KeyError: 'getpwuid(): uid not found: 1000' + +then one solution (really ugly and hackish one) is to add your uid to +sysroot $BUILDDIR/tmp-eglibc/sysroots/genericx86/etc/passwd file. + +If you see this error + + log.do_install.16119:npm ERR! Error: shasum check failed for \ + /home/user/tmp/npm-16155/1392027924404-0.427580259507522/tmp.tgz + +then just remove npm temp files like this + + rm -rf ~/tmp/npm-* + + +You can connect to Steward UI at + + https://eca.local:8888/ + +Creating user and credentials can be done at + + https://eca.local:8888/client.html + +Console raw data can be seen at + + https://eca.local:8888/console.html + +Normally ECA management console would be found at port 80 but as the +steward controls that, the ECA web UI can be found at + + https://eca.local:8080 diff --git a/README.md b/README.md new file mode 100644 index 0000000..c31809b --- /dev/null +++ b/README.md @@ -0,0 +1,93 @@ +meta-eca, the Yocto layer for communication appliances +====================================================== + +This layer's purpose is to add Embedded Connectivity Appliance (ECA) support +when used with Poky packagegroup base. + +Please see the MAINTAINERS file for information on contacting the maintainers +of this layer, as well as instructions for submitting patches. + +Layer Dependencies +------------------ + +URI: git://git.yoctoproject.org/poky +branch: master +revision: 57e8d56a6b63942b616a1e6dd894fd4ea7b409cf + +URI: git://git.openembedded.org/meta-openembedded +branch: master +revision: 0f56bc4e2818a051a511ceb48596cbfa2f51ff3d + +Using the above git sha's and master revisions, bitbaking eca-image is +known to work. Using head versions should work also just fine. + + +Build a QEMU image including ECA components +------------------------------------------- + +You can build a QEMU image including ECA components using the +following steps: + +1. Run the following command: + + > $ source poky/oe-init-build-env + +2. Add meta-eca/meta-eca path to COREBASE/build/conf/bblayers.conf file. + +3. Add meta-eca/meta-eca-bsp path to COREBASE/build/conf/bblayers.conf file. + +4. Add meta-openembedded/meta-systemd path to COREBASE/build/conf/bblayers.conf + file. + +5. Add meta-openembedded/meta-oe path to COREBASE/build/conf/bblayers.conf file. + +6. Add meta-openembedded/meta-networking path to + COREBASE/build/conf/bblayers.conf file. + +7. Add meta-openembedded/meta-ruby path to COREBASE/build/conf/bblayers.conf + file. + +8. Set MACHINE ??= "qemux86" in COREBASE/build/conf/local.conf file to build + for an emulated IA-32 instruction-set machine respectively. + +9. Set DISTRO ?= "eca" in COREBASE/build/conf/local.conf file. + If you want a bleeding edge versions of ConnMan, oFono, Bluez5 and Neard, + then you can set the DISTRO to "eca-bleeding" + +10. Mask out bluez4 as we want to use bluez5, set BBMASK in your local.conf file + also ignore ofono recipe as ECA has own one. + BBMASK = "meta/recipes-connectivity/bluez/bluez4*|\ + meta-openembedded/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4*|\ + meta-openembedded/meta-systemd/oe-core/recipes-connectivity/ofono/ofono*" + +11. Optional: In COREBASE/build/conf/local.conf file, you may uncomment + BB_NUMBER_THREADS = "4" and PARALLEL_MAKE = "-j 4" if you build on a + quad-core machine. + +12. Build eca-image + + > $ bitbake eca-image + +13. Run the emulator: + + > for qemux86: + > $ runqemu qemux86 eca-image + +14. Set the password for root user + The default password for root user is "root". You should change + that to something that only you know. If connecting to the host + using browser (use http://eca.local/ address), the web-ui + forces you to change the root password and it also asks you to + set the username/password for the web management UI. + If connecting to host using ssh, you need to set the root password + manually using "passwd" command. + +15. Connecting to the device + After you have booted the appliance, you can connect to it using + ethernet or wifi. If you have wifi card or usb dongle installed + in appliance, you should see access point called "eca-aabbccddeeff" + (this is just an example) in your wifi scans. + You can connect to that AP, the default passphrase in this case + would be "aabbccddeeff". + Connection can be done either via "ssh root@eca.local" or via + browser http://eca.local diff --git a/README.nuc b/README.nuc new file mode 100644 index 0000000..6f0795a --- /dev/null +++ b/README.nuc @@ -0,0 +1,65 @@ +Instructions for Intel NUC +-------------------------- + +You might want to check from README.md file what poky and meta-oe +revisions are supported. Usually HEAD version work ok but if it +does not, then you can use the tested version mentioned in that file. + +$ mkdir yocto +$ cd yocto +$ git clone git://git.yoctoproject.org/poky +$ cd poky +$ git clone git://git.openembedded.org/meta-openembedded +$ git clone git://git.yoctoproject.org/meta-eca +$ export YOCTO=`pwd` +$ git clone git://git.yoctoproject.org/meta-intel +$ . oe-init-build-env build-nuc +$ cd conf + +Edit bblayers.conf file and add these layers to BBLAYERS variable, +if your name is not "user", then fix the path accordingly. + +/home/user/yocto/poky/meta-eca/meta-eca +/home/user/yocto/poky/meta-eca/meta-eca-bsp +/home/user/yocto/poky/meta-intel +/home/user/yocto/poky/meta-intel/meta-nuc +/home/user/yocto/poky/meta-openembedded/meta-oe +/home/user/yocto/poky/meta-openembedded/meta-systemd +/home/user/yocto/poky/meta-openembedded/meta-networking +/home/user/yocto/poky/meta-openembedded/meta-ruby + +Edit local.conf file + +* set BB_NUMBER_THREADS and PARALLEL_MAKE accordingly to your machine + capabilities +* set your target to MACHINE ?= "nuc" +* set DISTRO ?= "eca" +* add BBMASK = "meta/recipes-connectivity/bluez/bluez4*|meta-openembedded/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4*" + + +If you want to build the Internet-of-Things version of ECA, then add + +/home/user/yocto/poky/meta-eca/meta-iot + +to bblayers.conf and also add + +DISTRO_FEATURES_append = " internet-of-things" + +to local.conf file. + + +Then build the distro + +$ cd $BUILDDIR +$ bitbake eca-image + +If the build succeeds, the result image can be found at +tmp-eglibc/deploy/images/nuc + +Insert USB mass storage stick and figure out its device name (use dmesg +and see messages at the end). Lets assume the USB stick is at /dev/sdX + +$ cd tmp-eglibc/deploy/images/nuc +$ sudo dd if=eca-image-nuc.hddimg of=/dev/sdX + +Then eject the USB stick, insert it to NUC and boot. diff --git a/README.rpi b/README.rpi new file mode 100644 index 0000000..34dfb3c --- /dev/null +++ b/README.rpi @@ -0,0 +1,64 @@ +Instructions for RaspberryPi device +----------------------------------- + +You might want to check from README.md file what poky and meta-oe +revisions are supported. Usually HEAD version work ok but if it +does not, then you can use the tested version mentioned in that file. + +$ mkdir yocto +$ cd yocto +$ git clone git://git.yoctoproject.org/poky +$ cd poky +$ git clone git://git.openembedded.org/meta-openembedded +$ git clone git://git.yoctoproject.org/meta-eca +$ export YOCTO=`pwd` +$ git clone git://git.yoctoproject.org/meta-raspberrypi +$ . oe-init-build-env build-rpi +$ cd conf + +Edit bblayers.conf file and add these layers to BBLAYERS variable, +if your name is not "user", then fix the path accordingly. + +/home/user/yocto/poky/meta-eca/meta-eca +/home/user/yocto/poky/meta-eca/meta-eca-bsp +/home/user/yocto/poky/meta-raspberrypi +/home/user/yocto/poky/meta-openembedded/meta-oe +/home/user/yocto/poky/meta-openembedded/meta-systemd +/home/user/yocto/poky/meta-openembedded/meta-networking +/home/user/yocto/poky/meta-openembedded/meta-ruby + +Edit local.conf file + +* set BB_NUMBER_THREADS and PARALLEL_MAKE accordingly to your machine + capabilities +* set your target to MACHINE ?= "raspberrypi" +* set DISTRO ?= "eca" +* add BBMASK = "meta/recipes-connectivity/bluez/bluez4*|meta-openembedded/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4*" + + +If you want to build the Internet-of-Things version of ECA, then add + +/home/user/yocto/poky/meta-eca/meta-iot + +to bblayers.conf and also add + +DISTRO_FEATURES_append = " internet-of-things" + +to local.conf file. + + +Then build the distro + +$ cd $BUILDDIR +$ bitbake eca-image + +If the build succeeds, the result image can be found at +tmp-eglibc/deploy/images/raspberrypi + +Insert SD card and figure out its device name (use dmesg +and see messages at the end). Lets assume the SD card is at /dev/mmcblk0 + +$ cd tmp-eglibc/deploy/images/raspberrypi +$ sudo dd if=eca-image-raspberrypi.rpi-sdimg of=/dev/mmcblk0 + +Then sync and eject the card, insert it to the device and boot. diff --git a/README.vbox b/README.vbox new file mode 100644 index 0000000..74453d3 --- /dev/null +++ b/README.vbox @@ -0,0 +1,72 @@ +Instructions for VirtualBox +--------------------------- + +You might want to check from README.md file what poky and meta-oe +revisions are supported. Usually HEAD version work ok but if it +does not, then you can use the tested version mentioned in that file. + +$ mkdir yocto +$ cd yocto +$ git clone git://git.yoctoproject.org/poky +$ cd poky +$ git clone git://git.openembedded.org/meta-openembedded +$ git clone git://git.yoctoproject.org/meta-eca +$ export YOCTO=`pwd` +$ git clone git://git.yoctoproject.org/meta-intel +$ . oe-init-build-env build-pc +$ cd conf + +Edit bblayers.conf file and add these layers to BBLAYERS variable, +if your name is not "user", then fix the path accordingly. + +/home/user/yocto/poky/meta-eca/meta-eca +/home/user/yocto/poky/meta-eca/meta-eca-bsp +/home/user/yocto/poky/meta-intel +/home/user/yocto/poky/meta-openembedded/meta-oe +/home/user/yocto/poky/meta-openembedded/meta-systemd +/home/user/yocto/poky/meta-openembedded/meta-networking +/home/user/yocto/poky/meta-openembedded/meta-ruby + +Edit local.conf file + +* set BB_NUMBER_THREADS and PARALLEL_MAKE accordingly to your machine + capabilities +* set your target to MACHINE ?= "genericx86" +* set DISTRO ?= "eca" +* add BBMASK = "meta/recipes-connectivity/bluez/bluez4*|meta-openembedded/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4*" + + +If you want to build the Internet-of-Things version of ECA, then add + +/home/user/yocto/poky/meta-eca/meta-iot + +to bblayers.conf and also add + +DISTRO_FEATURES_append = " internet-of-things" + +to local.conf file. + + +Then build the distro + +$ cd $BUILDDIR +$ bitbake eca-image + +If the build succeeds, the result image can be found at +tmp-eglibc/deploy/images/genericx86 + +Then we need to convert the image to VDI format that VirtualBox can use. + +$ cd tmp-eglibc/deploy/images/genericx86 +$ vboxmanage convertfromraw --format=VDI eca-image-genericx86.hddimg eca-image-genericx86.vdi + +If you have eca machine already configured in VirtualBox, then the following +instructions below might not be needed. + +$ vboxmanage createvm --register --name eca +$ vboxmanage hostonlyif create ipconfig vboxnet1 --ip 192.168.42.1 --netmask 255.255.255.0 +$ vboxmanage modifyvm eca --ostype Linux --nic1 hostonly --hostonlyadapter1 vboxnet1 +$ vboxmanage storagectl eca --name IDE --add ide --bootable on --controller PIIX4 +$ vboxmanage storageattach eca --storagectl IDE --port 0 --device 0 --type hdd --medium eca-image-genericx86.vdi +$ vboxmanage startvm eca + diff --git a/meta-eca-bsp/conf/layer.conf b/meta-eca-bsp/conf/layer.conf new file mode 100644 index 0000000..6328a44 --- /dev/null +++ b/meta-eca-bsp/conf/layer.conf @@ -0,0 +1,13 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +# Clanton has own kernel recipe +BBFILES_clanton += "${LAYERDIR}/recipes-*/*/clanton/*.bbappend" + +BBFILE_COLLECTIONS += "ecabsp" +BBFILE_PATTERN_ecabsp = "^${LAYERDIR}/" +BBFILE_PRIORITY_ecabsp = "5" diff --git a/meta-eca-bsp/recipes-eca/grub-conf/eca-grub-conf_1.0.bb b/meta-eca-bsp/recipes-eca/grub-conf/eca-grub-conf_1.0.bb new file mode 100644 index 0000000..47df56e --- /dev/null +++ b/meta-eca-bsp/recipes-eca/grub-conf/eca-grub-conf_1.0.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "grub.conf" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +GRUB_CONF = "grub.conf" +GRUB_PATH = "boot/grub/" +SRC_URI = "file://${GRUB_CONF}" + +do_grub() { + install -d ${DEPLOY_DIR_IMAGE}/${GRUB_PATH} + install -m 0755 ${WORKDIR}/${GRUB_CONF} ${DEPLOY_DIR_IMAGE}/${GRUB_PATH}/${GRUB_CONF} +} + +do_grub[nostamp] = "1" + +addtask grub before do_build after do_compile diff --git a/meta-eca-bsp/recipes-eca/grub-conf/files/grub.conf b/meta-eca-bsp/recipes-eca/grub-conf/files/grub.conf new file mode 100644 index 0000000..cfb1f54 --- /dev/null +++ b/meta-eca-bsp/recipes-eca/grub-conf/files/grub.conf @@ -0,0 +1,10 @@ +default 0 +timeout 3 + +color white/blue white/cyan + +title ECA for Clanton + root (hd0,0) + kernel /bzImage root=/dev/ram0 console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x8010f000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5 + initrd /core-image-minimal-initramfs-clanton.cpio.gz + diff --git a/meta-eca-bsp/recipes-eca/images/core-image-minimal-initramfs.bbappend b/meta-eca-bsp/recipes-eca/images/core-image-minimal-initramfs.bbappend new file mode 100644 index 0000000..48a2f5b --- /dev/null +++ b/meta-eca-bsp/recipes-eca/images/core-image-minimal-initramfs.bbappend @@ -0,0 +1,4 @@ +IMAGE_INSTALL_clanton = "initramfs-live-boot busybox base-passwd udev" +IMAGE_INSTALL_clanton += "kernel-module-usb-storage" +IMAGE_INSTALL_clanton += "kernel-module-ehci-hcd kernel-module-ehci-pci kernel-module-ohci-hcd" +IMAGE_INSTALL_clanton += "kernel-module-stmmac" diff --git a/meta-eca-bsp/recipes-eca/images/eca-image.bbappend b/meta-eca-bsp/recipes-eca/images/eca-image.bbappend new file mode 100644 index 0000000..65c5838 --- /dev/null +++ b/meta-eca-bsp/recipes-eca/images/eca-image.bbappend @@ -0,0 +1,10 @@ + +IMAGE_FSTYPES_clanton = "ext3 live" + +NOISO_clanton = "1" +NOHDD_clanton = "1" + +EXTRA_IMAGEDEPENDS_clanton = "eca-grub-conf" + +# root fs name should be rootfs.img as initrd expects to find that +IMAGE_POSTPROCESS_COMMAND_clanton += "rm -f rootfs.img; ln -s ${IMAGE_LINK_NAME}.ext3 rootfs.img; " diff --git a/meta-eca-bsp/recipes-eca/packagegroups/packagegroup-eca.bbappend b/meta-eca-bsp/recipes-eca/packagegroups/packagegroup-eca.bbappend new file mode 100644 index 0000000..7fae0cc --- /dev/null +++ b/meta-eca-bsp/recipes-eca/packagegroups/packagegroup-eca.bbappend @@ -0,0 +1,23 @@ +def get_depends_qemu(bb, d, dep): + val = (bb.data.getVar("MACHINEOVERRIDES", d) or "") + if val.find("qemuall"): + return "" + else: + return dep + +IWLWIFI := "\ + ${@get_depends_qemu(bb, d, 'linux-firmware-iwlwifi-licence')} \ + ${@get_depends_qemu(bb, d, 'linux-firmware-iwlwifi-6000g2a-5')} \ + ${@get_depends_qemu(bb, d, 'linux-firmware-iwlwifi-6000g2b-6')} \ +" + +# Add iwlwifi firmware for Intel devices but not for qemu images because +# user probably does not have Intel layer defined there +RDEPENDS_packagegroup-eca_append_x86 += "\ + ${IWLWIFI} \ +" + +# network configuration for connman if running qemu +RDEPENDS_packagegroup-eca_append_qemuall += "\ + connman-conf \ +" diff --git a/meta-eca-bsp/recipes-kernel/linux/clanton/linux-yocto-clanton_3.8.bbappend b/meta-eca-bsp/recipes-kernel/linux/clanton/linux-yocto-clanton_3.8.bbappend new file mode 100644 index 0000000..8cff3f2 --- /dev/null +++ b/meta-eca-bsp/recipes-kernel/linux/clanton/linux-yocto-clanton_3.8.bbappend @@ -0,0 +1,28 @@ +# find defconfig path +FILESEXTRAPATHS := "${THISDIR}/../../../meta-eca/recipes-kernel/linux/linux-yocto" + +SRC_URI += " \ + file://wlan-atheros.cfg \ + file://wlan-ralink.cfg \ + file://wlan-realtek.cfg \ + file://wlan-broadcom.cfg \ + file://wlan-zydas.cfg \ + file://wlan-marwel.cfg \ + file://wlan-ti.cfg \ + file://wlan-intel.cfg \ + file://bluetooth.cfg \ + file://nokia-phonet.cfg \ + file://usb-serial.cfg \ + file://tun-device.cfg \ + file://l2tp.cfg \ + file://rfkill.cfg \ + file://mac80211.cfg \ + file://nfc.cfg \ + file://high-speed-mobile-devices.cfg \ + file://usb-eth-gadget.cfg \ + file://usb-net.cfg \ + file://ipv6.cfg \ + file://nfacct.cfg \ + file://bridge.cfg \ + file://netfilter-small-3.8.cfg \ +" diff --git a/meta-eca-bsp/recipes-kernel/linux/linux-mainline/netfilter.cfg b/meta-eca-bsp/recipes-kernel/linux/linux-mainline/netfilter.cfg new file mode 100644 index 0000000..552c937 --- /dev/null +++ b/meta-eca-bsp/recipes-kernel/linux/linux-mainline/netfilter.cfg @@ -0,0 +1,13 @@ +CONFIG_NF_CONNTRACK=m +CONFIG_NF_CONNTRACK_PROCFS=y +CONFIG_NF_NAT=m +CONFIG_NF_NAT_NEEDED=y +CONFIG_NF_DEFRAG_IPV4=m +CONFIG_NF_CONNTRACK_IPV4=m +CONFIG_NF_CONNTRACK_PROC_COMPAT=y +CONFIG_NF_NAT_IPV4=m +CONFIG_IP_NF_TARGET_MASQUERADE=m +CONFIG_NF_CONNTRACK_MARK=y +CONFIG_NETFILTER_XT_CONNMARK=m +CONFIG_NETFILTER_XT_TARGET_CONNMARK=m +CONFIG_NETFILTER_XT_MATCH_CONNMARK=m diff --git a/meta-eca-bsp/recipes-kernel/linux/linux-mainline_3.8.bbappend b/meta-eca-bsp/recipes-kernel/linux/linux-mainline_3.8.bbappend new file mode 100644 index 0000000..429ed34 --- /dev/null +++ b/meta-eca-bsp/recipes-kernel/linux/linux-mainline_3.8.bbappend @@ -0,0 +1,14 @@ +# find defconfig path +FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" + +# netfilter stuff is missing from beaglebone kernel +SRC_URI_append_beaglebone += "file://netfilter.cfg" + +do_configure_append_beaglebone () { + for i in ${S}/../*.cfg; do + echo "Adding ${i} to ${S}/.config" + cat ${i} >> ${S}/.config + done + + yes '' | oe_runmake oldconfig +} diff --git a/meta-eca-bsp/recipes-kernel/linux/linux-yocto/beagle_qemu.cfg b/meta-eca-bsp/recipes-kernel/linux/linux-yocto/beagle_qemu.cfg new file mode 100644 index 0000000..0ace211 --- /dev/null +++ b/meta-eca-bsp/recipes-kernel/linux/linux-yocto/beagle_qemu.cfg @@ -0,0 +1,5 @@ +CONFIG_PANEL_GENERIC_DPI=y + +CONFIG_USB_OHCI_HCD=y +CONFIG_USB_OHCI_HCD_OMAP3=y +CONFIG_USB_OHCI_LITTLE_ENDIAN=y diff --git a/meta-eca-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend b/meta-eca-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend new file mode 100644 index 0000000..5bde90b --- /dev/null +++ b/meta-eca-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend @@ -0,0 +1,7 @@ +# find defconfig path +FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" + +# Kernel configs +SRC_URI_append_beagleboard = " \ + file://beagle_qemu.cfg \ + " diff --git a/meta-eca/conf/distro/eca-bleeding.conf b/meta-eca/conf/distro/eca-bleeding.conf new file mode 100644 index 0000000..56556a9 --- /dev/null +++ b/meta-eca/conf/distro/eca-bleeding.conf @@ -0,0 +1,11 @@ +PREFERRED_VERSION_connman ?= "1.x+git%" +PREFERRED_VERSION_ofono ?= "1.x+git%" +PREFERRED_VERSION_neard ?= "0.x+git%" +PREFERRED_VERSION_bluez5 ?= "5.x+git%" +PREFERRED_VERSION_libasound-module-bluez ?= "5.x+git%" + +require conf/distro/include/eca-floating-revisions.inc +require conf/distro/eca.conf + +DISTRO = "eca-bleeding" +DISTROOVERRIDES = "eca" diff --git a/meta-eca/conf/distro/eca-graphics.conf b/meta-eca/conf/distro/eca-graphics.conf new file mode 100644 index 0000000..b0f6bd6 --- /dev/null +++ b/meta-eca/conf/distro/eca-graphics.conf @@ -0,0 +1,34 @@ +DISTRO_NAME = "Embedded Connectivity Appliance" +DISTRO_VERSION = "0.9+snapshot-${DATE}" + +VIRTUAL-RUNTIME_init_manager = "systemd" +VIRTUAL-RUNTIME_initscripts = "" + +include conf/distro/include/default-providers-eca.inc + +DISTRO_FEATURES_append = " bluetooth systemd 3g wifi ipv6 nfc zeroconf \ + largefile multiarch x11 opengl wayland desktop" + +LAYER_CONF_VERSION = "6" + +MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "" + +DISTRO_FEATURES_BACKFILL_CONSIDERED="sysvinit" + +# Enable some of the supported VPN technogies in ConnMan +PACKAGECONFIG_append_pn-connman = " openvpn l2tp pptp" + +# Use bluez5 in pulseaudio +PACKAGECONFIG_append_pn-pulseaudio = " bluez5" + +INHERIT += "extrausers" +EXTRA_USERS_PARAMS = "usermod -p '\$1\$1DO/lR8M\$f8JOOu4W8GBZzdNzCgSW40' root;" + +LICENSE_FLAGS_WHITELIST = "commercial" + +FEATURE_PACKAGES_eca-desktop = "packagegroup-eca-desktop" + +IMAGE_FEATURES += "splash x11-base eca-desktop hwcodecs" + +#CORE_IMAGE_EXTRA_INSTALL += "wayland weston" + diff --git a/meta-eca/conf/distro/eca.conf b/meta-eca/conf/distro/eca.conf new file mode 100644 index 0000000..4d84ea2 --- /dev/null +++ b/meta-eca/conf/distro/eca.conf @@ -0,0 +1,21 @@ +DISTRO_NAME = "Embedded Connectivity Appliance" +DISTRO_VERSION = "0.9+snapshot-${DATE}" + +VIRTUAL-RUNTIME_init_manager = "systemd" +VIRTUAL-RUNTIME_initscripts = "" + +include conf/distro/include/default-providers-eca.inc + +DISTRO_FEATURES_append = " bluetooth systemd 3g wifi ipv6 nfc zeroconf" + +LAYER_CONF_VERSION = "6" + +MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "" + +DISTRO_FEATURES_BACKFILL_CONSIDERED="sysvinit" + +# Enable some of the supported VPN technogies in ConnMan +PACKAGECONFIG_append_pn-connman = " openvpn l2tp pptp" + +INHERIT += "extrausers" +EXTRA_USERS_PARAMS = "usermod -p '\$1\$1DO/lR8M\$f8JOOu4W8GBZzdNzCgSW40' root;" diff --git a/meta-eca/conf/distro/include/default-providers-eca.inc b/meta-eca/conf/distro/include/default-providers-eca.inc new file mode 100644 index 0000000..eb7df14 --- /dev/null +++ b/meta-eca/conf/distro/include/default-providers-eca.inc @@ -0,0 +1,9 @@ +# +# Default virtual providers +# +PREFERRED_PROVIDER_virtual/arm-oe-linux-gnueabi-depmod ?= "kmod-cross" +PREFERRED_PROVIDER_udev ?= "systemd" +PREFERRED_PROVIDER_udev-utils ?= "systemd" + +PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" +PREFERRED_VERSION_linux-yocto ?= "3.14%" diff --git a/meta-eca/conf/distro/include/eca-floating-revisions.inc b/meta-eca/conf/distro/include/eca-floating-revisions.inc new file mode 100644 index 0000000..fb86e36 --- /dev/null +++ b/meta-eca/conf/distro/include/eca-floating-revisions.inc @@ -0,0 +1,9 @@ +# +# Package Versions for cutting edge testing: +# + +SRCREV_pn-connman ?= "${AUTOREV}" +SRCREV_pn-bluez5 ?= "${AUTOREV}" +SRCREV_pn-ofono ?= "${AUTOREV}" +SRCREV_pn-neard ?= "${AUTOREV}" + diff --git a/meta-eca/conf/layer.conf b/meta-eca/conf/layer.conf new file mode 100644 index 0000000..c746254 --- /dev/null +++ b/meta-eca/conf/layer.conf @@ -0,0 +1,15 @@ +BBPATH ?= "" +# We add conf directory to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have a recipes directory containing .bb and .bbappend files, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "eca" +BBFILE_PATTERN_eca := "^${LAYERDIR}/" +BBFILE_PRIORITY_eca = "7" + +# Define a similar VARIABLE to COREBASE in order to get a reference to +# top directory easily +ECA_COREBASE := '${@os.path.normpath("${LAYERDIR}/../")}' diff --git a/meta-eca/recipes-connectivity/bluez5/bluez5_git.bb b/meta-eca/recipes-connectivity/bluez5/bluez5_git.bb new file mode 100644 index 0000000..f327e9c --- /dev/null +++ b/meta-eca/recipes-connectivity/bluez5/bluez5_git.bb @@ -0,0 +1,21 @@ +require recipes-connectivity/bluez5/bluez5.inc + +SRCREV = "cdfdc6b2b6182ef09c28d49873f79c581ab04de5" +SRC_URI = "\ + git://git.kernel.org/pub/scm/bluetooth/bluez.git \ + file://bluetooth.conf \ + file://fix-udev-paths.patch \ +" + +S = "${WORKDIR}/git" +PV = "5.18+git${SRCPV}" + +EXTRA_OECONF += "\ + --disable-obex \ + --enable-client \ +" + +do_install_append() { + # gatttool is useful to have so add it to the bluez5 package + install -m 0755 ${S}/attrib/gatttool ${D}/${bindir} +} diff --git a/meta-eca/recipes-connectivity/bluez5/files/bluetooth.conf b/meta-eca/recipes-connectivity/bluez5/files/bluetooth.conf new file mode 100644 index 0000000..0495200 --- /dev/null +++ b/meta-eca/recipes-connectivity/bluez5/files/bluetooth.conf @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/meta-eca/recipes-connectivity/bluez5/files/fix-udev-paths.patch b/meta-eca/recipes-connectivity/bluez5/files/fix-udev-paths.patch new file mode 100644 index 0000000..37362f5 --- /dev/null +++ b/meta-eca/recipes-connectivity/bluez5/files/fix-udev-paths.patch @@ -0,0 +1,35 @@ +Add udevdir/udevrulesdir options + +Upstream-Status: Inappropriate [configuration] +Signed-off-by: Constantin Musca +Signed-off-by: Cristian Iorga + +Index: bluez-5.0/Makefile.am +=================================================================== +--- bluez-5.0.orig/Makefile.am 2012-12-24 19:46:54.000000000 +0200 ++++ bluez-5.0/Makefile.am 2013-01-30 14:33:15.760615474 +0200 +@@ -175,7 +175,7 @@ + include Makefile.obexd + + if HID2HCI +-rulesdir = @UDEV_DIR@/rules.d ++rulesdir = @UDEV_RULES_DIR@ + + rules_DATA = tools/97-hid2hci.rules + +Index: bluez-5.0/configure.ac +=================================================================== +--- bluez-5.0.orig/configure.ac 2012-12-24 19:46:54.000000000 +0200 ++++ bluez-5.0/configure.ac 2013-01-30 14:34:59.068613895 +0200 +@@ -160,6 +160,11 @@ + AC_SUBST(UDEV_DIR, [${path_udevdir}]) + fi + ++AC_ARG_WITH([udevrulesdir], ++ AS_HELP_STRING([--with-udevrulesdir=DIR], [udev rules directory]), ++ [], [with_udevrulesdir=/lib/udev/rules.d]) ++AC_SUBST([UDEV_RULES_DIR], [$with_udevrulesdir]) ++ + AM_CONDITIONAL(HID2HCI, test "${enable_tools}" != "no" && + test "${enable_udev}" != "no" && test "${enable_usb}" != "no") + diff --git a/meta-eca/recipes-connectivity/connman/connman-init-systemd.bb b/meta-eca/recipes-connectivity/connman/connman-init-systemd.bb new file mode 100644 index 0000000..822a4a4 --- /dev/null +++ b/meta-eca/recipes-connectivity/connman/connman-init-systemd.bb @@ -0,0 +1,32 @@ +SUMMARY = "Initialization service for ConnMan" +DESCRIPTION = "Initializes necessary ConnMan services. This is \ +needed in headless system, otherwise we might not be able to \ +connect to device after installation. This service is only run \ +once in the first boot.\ +" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://connman-init-settings.sh;beginline=7;endline=18;md5=95c5d66479370ef3964c4aef9255476f" + +SRC_URI = "\ + file://connman-init-settings.sh \ + file://connman-init.service \ +" + +S = "${WORKDIR}" +PR = "r0" + +inherit systemd + +SYSTEMD_PACKAGES = "connman-init-systemd" + +SYSTEMD_SERVICE_${PN} = " connman-init.service" + +FILES_${PN} = " connman-init.service \ + ${libdir}/connman/connman-init-settings.sh" + +do_install() { + install -d ${D}${libdir}/connman + install -d ${D}${nonarch_base_libdir}/systemd/system + install -m 0755 ${WORKDIR}/connman-init-settings.sh ${D}${libdir}/connman + install -m 0755 ${WORKDIR}/connman-init.service ${D}${nonarch_base_libdir}/systemd/system +} diff --git a/meta-eca/recipes-connectivity/connman/connman_git.bb b/meta-eca/recipes-connectivity/connman/connman_git.bb new file mode 100644 index 0000000..0f4274c --- /dev/null +++ b/meta-eca/recipes-connectivity/connman/connman_git.bb @@ -0,0 +1,51 @@ +require recipes-connectivity/connman/connman.inc + +# We use a known good version instead of some buggy point version. +SRCREV = "f5a441e9d636eefd98335322e79e71ca7e4f55cc" +SRC_URI = "\ + git://git.kernel.org/pub/scm/network/connman/connman.git \ + file://add_xuser_dbus_permission.patch \ +" +LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ + file://src/main.c;beginline=1;endline=20;md5=486a279a6ab0c8d152bcda3a5b5edc36 \ +" + +# Enable debugging the easy way in systemd based distro. +# See 0001-doc-Debugging-in-host-that-uses-systemd.patch for usage. +SRC_URI += "\ + file://0002-systemd-Use-environment-file-for-connmand-debug-opti.patch \ + file://0003-systemd-Use-environment-file-for-connman-vpnd-debug-.patch \ +" + +S = "${WORKDIR}/git" +PR = "${INC_PR}.0" +PV = "1.23+git${SRCPV}" + + +# Override some options from poky connman recipe +EXTRA_OECONF += "\ + --enable-loopback=builtin \ + --enable-ethernet=builtin \ + --enable-test \ + --enable-client \ + --enable-tools \ + --disable-polkit \ + --enable-pacrunner \ + --enable-wispr \ +" + + +# Make sure we will use bluez5 instead of older bluez4 +PACKAGECONFIG[bluetooth] = "--enable-bluetooth, --disable-bluetooth, bluez5" +RDEPENDS_${PN} = "\ + dbus \ + ${@base_contains('PACKAGECONFIG', 'bluetooth', 'bluez5', '', d)} \ + ${@base_contains('PACKAGECONFIG', 'wifi','wpa-supplicant', '', d)} \ + ${@base_contains('PACKAGECONFIG', '3g','ofono', '', d)} \ + " + + +do_install_append() { + install -d ${D}${sysconfdir}/connman + install -m 0644 ${S}/src/main.conf ${D}${sysconfdir}/connman/main.conf.example +} diff --git a/meta-eca/recipes-connectivity/connman/files/0001-doc-Debugging-in-host-that-uses-systemd.patch b/meta-eca/recipes-connectivity/connman/files/0001-doc-Debugging-in-host-that-uses-systemd.patch new file mode 100644 index 0000000..421beba --- /dev/null +++ b/meta-eca/recipes-connectivity/connman/files/0001-doc-Debugging-in-host-that-uses-systemd.patch @@ -0,0 +1,44 @@ +From 5365d78227f3c44338079e8c9c69494d038bfa6c Mon Sep 17 00:00:00 2001 +From: Jukka Rissanen +Date: Wed, 13 Mar 2013 11:15:21 +0200 +Subject: [PATCH 1/3] doc: Debugging in host that uses systemd + +Upstream-Status: Denied + +Not accepted as distros can override the default ConnMan service file. + +Signed-off-by: Jukka Rissanen +--- + README | 16 ++++++++++++++++ + 1 file changed, 16 insertions(+) + +diff --git a/README b/README +index bfb246a..e97b536 100644 +--- a/README ++++ b/README +@@ -246,6 +246,22 @@ Following environment variables can be used: + Example: + CONNMAN_WEB_DEBUG=1 src/connmand -n + ++If the host is using systemd when starting ConnMan, then one can activate ++debugging easily by creating /etc/connman/connmand.env file and setting ++debug options there. By default the env file does not exist. ++ ++The following example would activate debugging in src/s*.c files and ++also turn on Internet connectivity check debugging if placed into ++connmand.env file: ++ DEBUG=-d src/s*.c ++ CONNMAN_WEB_DEBUG=1 ++ ++Note that one should not use quotation marks in env file as the systemd ++will not use shell to expand them. ++ ++For connman-vpnd daemon debugging, a similiar /etc/connman/connman-vpnd.env ++file can be created. ++ + + Kernel configuration + ==================== +-- +1.7.11.4 + diff --git a/meta-eca/recipes-connectivity/connman/files/0002-systemd-Use-environment-file-for-connmand-debug-opti.patch b/meta-eca/recipes-connectivity/connman/files/0002-systemd-Use-environment-file-for-connmand-debug-opti.patch new file mode 100644 index 0000000..8a683d6 --- /dev/null +++ b/meta-eca/recipes-connectivity/connman/files/0002-systemd-Use-environment-file-for-connmand-debug-opti.patch @@ -0,0 +1,31 @@ +From 656ff42ff42da965865cc6e012404d820692cf71 Mon Sep 17 00:00:00 2001 +From: Jukka Rissanen +Date: Wed, 13 Mar 2013 11:16:33 +0200 +Subject: [PATCH 2/3] systemd: Use environment file for connmand debug options + +Upstream-Status: Denied + +Not accepted as distros can override the default ConnMan service file. + +Signed-off-by: Jukka Rissanen +--- + src/connman.service.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/connman.service.in b/src/connman.service.in +index 2e9e4d5..fa57d4e 100644 +--- a/src/connman.service.in ++++ b/src/connman.service.in +@@ -6,7 +6,8 @@ After=syslog.target + Type=dbus + BusName=net.connman + Restart=on-failure +-ExecStart=@prefix@/sbin/connmand -n ++EnvironmentFile=-@sysconfdir@/connman/connmand.env ++ExecStart=@prefix@/sbin/connmand -n $DEBUG + StandardOutput=null + + [Install] +-- +1.7.11.4 + diff --git a/meta-eca/recipes-connectivity/connman/files/0003-systemd-Use-environment-file-for-connman-vpnd-debug-.patch b/meta-eca/recipes-connectivity/connman/files/0003-systemd-Use-environment-file-for-connman-vpnd-debug-.patch new file mode 100644 index 0000000..31d5bc8 --- /dev/null +++ b/meta-eca/recipes-connectivity/connman/files/0003-systemd-Use-environment-file-for-connman-vpnd-debug-.patch @@ -0,0 +1,32 @@ +From 5fb01b667a56d65ccb2b1174df9fe7190a5349f2 Mon Sep 17 00:00:00 2001 +From: Jukka Rissanen +Date: Wed, 13 Mar 2013 11:17:24 +0200 +Subject: [PATCH 3/3] systemd: Use environment file for connman-vpnd debug + options + +Upstream-Status: Denied + +Not accepted as distros can override the default ConnMan service file. + +Signed-off-by: Jukka Rissanen +--- + vpn/connman-vpn.service.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/vpn/connman-vpn.service.in b/vpn/connman-vpn.service.in +index ec02a86..2472f00 100644 +--- a/vpn/connman-vpn.service.in ++++ b/vpn/connman-vpn.service.in +@@ -5,7 +5,8 @@ After=syslog.target + [Service] + Type=dbus + BusName=net.connman.vpn +-ExecStart=@prefix@/sbin/connman-vpnd -n ++EnvironmentFile=-@sysconfdir@/connman/connman-vpnd.env ++ExecStart=@prefix@/sbin/connman-vpnd -n $DEBUG + StandardOutput=null + + [Install] +-- +1.7.11.4 + diff --git a/meta-eca/recipes-connectivity/connman/files/add_xuser_dbus_permission.patch b/meta-eca/recipes-connectivity/connman/files/add_xuser_dbus_permission.patch new file mode 100644 index 0000000..707b3ca --- /dev/null +++ b/meta-eca/recipes-connectivity/connman/files/add_xuser_dbus_permission.patch @@ -0,0 +1,21 @@ +Because Poky doesn't support at_console we need to special-case the session +user. + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Ross Burton + +diff --git a/src/connman-dbus.conf b/src/connman-dbus.conf +index 98a773e..466809c 100644 +--- a/src/connman-dbus.conf ++++ b/src/connman-dbus.conf +@@ -8,6 +8,9 @@ + + + ++ ++ ++ + + + diff --git a/meta-eca/recipes-connectivity/connman/files/connman b/meta-eca/recipes-connectivity/connman/files/connman new file mode 100644 index 0000000..4a0017f --- /dev/null +++ b/meta-eca/recipes-connectivity/connman/files/connman @@ -0,0 +1,61 @@ +#!/bin/sh + +DAEMON=/usr/sbin/connmand +PIDFILE=/var/run/connmand.pid +DESC="Connection Manager" + +if [ -f /etc/default/connman ] ; then + . /etc/default/connman +fi + +set -e + +nfsroot=0 + +exec 9<&0 < /proc/mounts +while read dev mtpt fstype rest; do + if test $mtpt = "/" ; then + case $fstype in + nfs | nfs4) + nfsroot=1 + break + ;; + *) + ;; + esac + fi +done + +do_start() { + EXTRA_PARAM="" + if test $nfsroot -eq 0 ; then + $DAEMON $EXTRA_PARAM + fi +} + +do_stop() { + start-stop-daemon --stop --name connmand --quiet +} + +case "$1" in + start) + echo "Starting $DESC" + do_start + ;; + stop) + echo "Stopping $DESC" + do_stop + ;; + restart|force-reload) + echo "Restarting $DESC" + do_stop + sleep 1 + do_start + ;; + *) + echo "Usage: $0 {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/meta-eca/recipes-connectivity/connman/files/connman-init-settings.sh b/meta-eca/recipes-connectivity/connman/files/connman-init-settings.sh new file mode 100755 index 0000000..9b4f040 --- /dev/null +++ b/meta-eca/recipes-connectivity/connman/files/connman-init-settings.sh @@ -0,0 +1,96 @@ +#!/bin/sh +# +# Connection Manager Init Service +# +# Copyright (C) 2012 Intel Corporation. All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +CONNMAN_DIR=/var/lib/connman +CONNMAN_SETTINGS=$CONNMAN_DIR/settings + +if [ -s $CONNMAN_SETTINGS ]; then + exit 0 +fi + +if [ ! -d $CONNMAN_DIR ]; then + mkdir -p $CONNMAN_DIR +fi + +TETHERING="$1" +TETHERING_AP_PASSPHRASE="$2" +TETHERING_AP_SSID="$3" + +if [ -z "$TETHERING" ]; then + TETHERING="true" +fi + +# Create main.conf with those values that we need +MAINCONF=/etc/connman/main.conf +cat > $MAINCONF < $CONNMAN_SETTINGS < +Date: Tue, 6 May 2014 12:51:09 +0300 +Subject: [PATCH] No arpd please + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Jukka Rissanen +--- + misc/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/misc/Makefile b/misc/Makefile +index a59ff87..d0a33e8 100644 +--- a/misc/Makefile ++++ b/misc/Makefile +@@ -1,7 +1,7 @@ + SSOBJ=ss.o ssfilter.o + LNSTATOBJ=lnstat.o lnstat_util.o + +-TARGETS=ss nstat ifstat rtacct arpd lnstat ++TARGETS=ss nstat ifstat rtacct lnstat + + include ../Config + +-- +1.8.3.1 + diff --git a/meta-eca/recipes-connectivity/iproute2/iproute2_%.bbappend b/meta-eca/recipes-connectivity/iproute2/iproute2_%.bbappend new file mode 100644 index 0000000..f4c53fe --- /dev/null +++ b/meta-eca/recipes-connectivity/iproute2/iproute2_%.bbappend @@ -0,0 +1,9 @@ +FILESEXTRAPATHS_append := ":${THISDIR}/files" + +SRC_URI_append = " \ + file://0001-No-arpd-please.patch \ +" + +# Compile also misc directory (to get ss prog) +# +EXTRA_OEMAKE_append = " SUBDIRS='lib tc ip misc'" diff --git a/meta-eca/recipes-connectivity/libpcap/libpcap_%.bbappend b/meta-eca/recipes-connectivity/libpcap/libpcap_%.bbappend new file mode 100644 index 0000000..30ffe44 --- /dev/null +++ b/meta-eca/recipes-connectivity/libpcap/libpcap_%.bbappend @@ -0,0 +1 @@ +PACKAGECONFIG[bluetooth] = "--enable-bluetooth,--disable-bluetooth,bluez5" diff --git a/meta-eca/recipes-connectivity/neard/files/neard.service.in b/meta-eca/recipes-connectivity/neard/files/neard.service.in new file mode 100644 index 0000000..3f9cb02 --- /dev/null +++ b/meta-eca/recipes-connectivity/neard/files/neard.service.in @@ -0,0 +1,13 @@ +[Unit] +Description=NFC service +After=syslog.target + +[Service] +Type=dbus +BusName=org.neard +Restart=on-failure +ExecStart=@installpath@/nfc/neard -n +StandardOutput=null + +[Install] +WantedBy=multi-user.target diff --git a/meta-eca/recipes-connectivity/neard/neard_git.bb b/meta-eca/recipes-connectivity/neard/neard_git.bb new file mode 100644 index 0000000..ad3168b --- /dev/null +++ b/meta-eca/recipes-connectivity/neard/neard_git.bb @@ -0,0 +1,20 @@ +require recipes-connectivity/neard/neard.inc + +SRC_URI = "git://git.kernel.org/pub/scm/network/nfc/neard.git;protocol=git \ + file://neard.service.in \ + " + +S = "${WORKDIR}/git" +SRCREV = "647f2705bebf051ea85ab74399461203c8ba900e" +PV = "0.14+git${SRCPV}" +PR = "r2" + + +EXTRA_OECONF += "--enable-tools \ + " + +# We want to use bluez5 when doing handover +RRECOMMENDS_${PN} = "\ + ${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \ + ${@base_contains('DISTRO_FEATURES', 'wifi','wpa-supplicant', '', d)} \ + " diff --git a/meta-eca/recipes-connectivity/ofono/files/ofono b/meta-eca/recipes-connectivity/ofono/files/ofono new file mode 100644 index 0000000..cc99709 --- /dev/null +++ b/meta-eca/recipes-connectivity/ofono/files/ofono @@ -0,0 +1,42 @@ +#!/bin/sh + +DAEMON=/usr/sbin/ofonod +PIDFILE=/var/run/ofonod.pid +DESC="Telephony daemon" + +if [ -f /etc/default/ofono ] ; then + . /etc/default/ofono +fi + +set -e + +do_start() { + $DAEMON +} + +do_stop() { + start-stop-daemon --stop --name ofonod --quiet +} + +case "$1" in + start) + echo "Starting $DESC" + do_start + ;; + stop) + echo "Stopping $DESC" + do_stop + ;; + restart|force-reload) + echo "Restarting $DESC" + do_stop + sleep 1 + do_start + ;; + *) + echo "Usage: $0 {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/meta-eca/recipes-connectivity/ofono/ofono_git.bb b/meta-eca/recipes-connectivity/ofono/ofono_git.bb new file mode 100644 index 0000000..110358f --- /dev/null +++ b/meta-eca/recipes-connectivity/ofono/ofono_git.bb @@ -0,0 +1,32 @@ +require recipes-connectivity/ofono/ofono.inc + +S = "${WORKDIR}/git" +SRCREV = "516165c3114471400b4551ff9b04ff9ca7c1fc25" +PV = "1.14+git${SRCPV}" + +SRC_URI = "\ + git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \ + file://ofono \ +" + +# We want to use bluez5 +DEPENDS := "${@oe_filter_out('bluez4', '${DEPENDS}', d)}" +DEPENDS += "${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez5', '', d)}" + +# Test scripts use python3, the dbus module is still missing so the scripts +# do not work as expected. +RDEPENDS_${PN} = "\ + python3 \ + python3-codecs \ + python3-math \ + python3-io \ + python3-misc \ +" + +do_install_append() { + # Because python3-dbus module is currently not there, just use + # python 2.x in the ofono test scripts + for PYTHSCRIPT in `grep -rIl ${bindir}/python3 ${D}${libdir}/${PN}`; do + sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT + done +} diff --git a/meta-eca/recipes-connectivity/scapy/python-scapy_2.2.0.bb b/meta-eca/recipes-connectivity/scapy/python-scapy_2.2.0.bb new file mode 100644 index 0000000..51bad53 --- /dev/null +++ b/meta-eca/recipes-connectivity/scapy/python-scapy_2.2.0.bb @@ -0,0 +1,24 @@ +DESCRIPTION = "Scapy is a powerful interactive packet manipulation tool, \ +packet generator, network scanner, network discovery, packet sniffer, etc. \ +It can for the moment replace hping, 85% of nmap, arpspoof, arp-sk, arping, \ +tcpdump, tethereal, p0f, ...." +SECTION = "devel/python" +HOMEPAGE = "http://www.secdev.org/projects/scapy/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://bin/scapy;beginline=3;endline=18;md5=a5be896f88f8396346f67f7a8878ee09" +PRIORITY = "optional" +SRCNAME = "scapy" +PR = "ml2" + +SRC_URI = "http://www.secdev.org/projects/scapy/files/scapy-${PV}.tar.gz" +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit distutils + +RDEPENDS_${PN} = "\ + python-netclient \ + python-netserver \ +" + +SRC_URI[md5sum] = "406990bd8da1f4958b354b4b6fc4b3eb" +SRC_URI[sha256sum] = "c5363b224df0efbd78d7dc4d8a518e5518b2e7affc2e5f1fcecd4efa3ab815af" diff --git a/meta-eca/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend b/meta-eca/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend new file mode 100644 index 0000000..22e8311 --- /dev/null +++ b/meta-eca/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend @@ -0,0 +1,15 @@ +FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" + +# Remove unnecessary stuff from depends +DEPENDS := "${@oe_filter_out('wpa-supplicant-cli', '${DEPENDS}', d)}" +DEPENDS := "${@oe_filter_out('wpa-supplicant-passphrase', '${DEPENDS}', d)}" +DEPENDS := "${@oe_filter_out('wpa-supplicant-doc', '${DEPENDS}', d)}" + +do_configure_append () { + # Activate config options needed by connman and tethering + echo "CONFIG_WPS=y" >> wpa_supplicant/.config + echo "CONFIG_AP=y" >> wpa_supplicant/.config + echo "CONFIG_CTRL_IFACE_DBUS_NEW=y" >> wpa_supplicant/.config + echo "CONFIG_BGSCAN_SIMPLE=y" >> wpa_supplicant/.config + echo "CONFIG_AUTOSCAN_EXPONENTIAL=y" >> wpa_supplicant/.config +} diff --git a/meta-eca/recipes-core/base-files/base-files_3.0.14.bbappend b/meta-eca/recipes-core/base-files/base-files_3.0.14.bbappend new file mode 100644 index 0000000..8cd5658 --- /dev/null +++ b/meta-eca/recipes-core/base-files/base-files_3.0.14.bbappend @@ -0,0 +1,11 @@ +BASEFILESISSUEINSTALL = "do_install_hostname_issue" + +do_install_hostname_issue() { + # change the default hostname + echo eca > ${D}${sysconfdir}/hostname + + # create /etc/issue that shows whether we are building + # standard eca or bleeding version + echo "${DISTRO_NAME} (${DISTRO})" > ${D}${sysconfdir}/issue + echo "${DISTRO_NAME} ${DISTRO_VERSION}" > ${D}${sysconfdir}/issue.net +} diff --git a/meta-eca/recipes-core/busybox/busybox_%.bbappend b/meta-eca/recipes-core/busybox/busybox_%.bbappend new file mode 100644 index 0000000..dafc6a3 --- /dev/null +++ b/meta-eca/recipes-core/busybox/busybox_%.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS := "${THISDIR}/${PN}-${PV}" +SRC_URI += "file://defconfig" diff --git a/meta-eca/recipes-core/busybox/files/defconfig b/meta-eca/recipes-core/busybox/files/defconfig new file mode 100644 index 0000000..52c170f --- /dev/null +++ b/meta-eca/recipes-core/busybox/files/defconfig @@ -0,0 +1,1014 @@ +# +# Automatically generated make config: don't edit +# Busybox version: 1.20.2 +# Thu Nov 15 18:16:17 2012 +# +CONFIG_HAVE_DOT_CONFIG=y + +# +# Busybox Settings +# + +# +# General Configuration +# +# CONFIG_DESKTOP is not set +# CONFIG_EXTRA_COMPAT is not set +# CONFIG_INCLUDE_SUSv2 is not set +# CONFIG_USE_PORTABLE_CODE is not set +CONFIG_PLATFORM_LINUX=y +CONFIG_FEATURE_BUFFERS_USE_MALLOC=y +# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set +# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set +CONFIG_SHOW_USAGE=y +# CONFIG_FEATURE_VERBOSE_USAGE is not set +CONFIG_FEATURE_COMPRESS_USAGE=y +# CONFIG_FEATURE_INSTALLER is not set +# CONFIG_INSTALL_NO_USR is not set +# CONFIG_LOCALE_SUPPORT is not set +# CONFIG_UNICODE_SUPPORT is not set +# CONFIG_UNICODE_USING_LOCALE is not set +# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set +CONFIG_SUBST_WCHAR=0 +CONFIG_LAST_SUPPORTED_WCHAR=0 +# CONFIG_UNICODE_COMBINING_WCHARS is not set +# CONFIG_UNICODE_WIDE_WCHARS is not set +# CONFIG_UNICODE_BIDI_SUPPORT is not set +# CONFIG_UNICODE_NEUTRAL_TABLE is not set +# CONFIG_UNICODE_PRESERVE_BROKEN is not set +CONFIG_LONG_OPTS=y +CONFIG_FEATURE_DEVPTS=y +# CONFIG_FEATURE_CLEAN_UP is not set +CONFIG_FEATURE_UTMP=y +# CONFIG_FEATURE_WTMP is not set +CONFIG_FEATURE_PIDFILE=y +CONFIG_FEATURE_SUID=y +CONFIG_FEATURE_SUID_CONFIG=y +CONFIG_FEATURE_SUID_CONFIG_QUIET=y +# CONFIG_SELINUX is not set +# CONFIG_FEATURE_PREFER_APPLETS is not set +CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" +CONFIG_FEATURE_SYSLOG=y +CONFIG_FEATURE_HAVE_RPC=y + +# +# Build Options +# +# CONFIG_STATIC is not set +# CONFIG_PIE is not set +# CONFIG_NOMMU is not set +# CONFIG_BUILD_LIBBUSYBOX is not set +# CONFIG_FEATURE_INDIVIDUAL is not set +# CONFIG_FEATURE_SHARED_BUSYBOX is not set +CONFIG_LFS=y +CONFIG_CROSS_COMPILER_PREFIX="arm-oe-linux-gnueabi-" +CONFIG_SYSROOT="" +CONFIG_EXTRA_CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types" +CONFIG_EXTRA_LDFLAGS="" +CONFIG_EXTRA_LDLIBS="" + +# +# Debugging Options +# +# CONFIG_DEBUG is not set +# CONFIG_DEBUG_PESSIMIZE is not set +# CONFIG_WERROR is not set +CONFIG_NO_DEBUG_LIB=y +# CONFIG_DMALLOC is not set +# CONFIG_EFENCE is not set + +# +# Installation Options ("make install" behavior) +# +CONFIG_INSTALL_APPLET_SYMLINKS=y +# CONFIG_INSTALL_APPLET_HARDLINKS is not set +# CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set +# CONFIG_INSTALL_APPLET_DONT is not set +# CONFIG_INSTALL_SH_APPLET_SYMLINK is not set +# CONFIG_INSTALL_SH_APPLET_HARDLINK is not set +# CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set +CONFIG_PREFIX="./_install" + +# +# Busybox Library Tuning +# +CONFIG_FEATURE_SYSTEMD=y +CONFIG_FEATURE_RTMINMAX=y +CONFIG_PASSWORD_MINLEN=6 +CONFIG_MD5_SMALL=1 +CONFIG_FEATURE_FAST_TOP=y +# CONFIG_FEATURE_ETC_NETWORKS is not set +CONFIG_FEATURE_USE_TERMIOS=y +CONFIG_FEATURE_EDITING=y +CONFIG_FEATURE_EDITING_MAX_LEN=1024 +# CONFIG_FEATURE_EDITING_VI is not set +CONFIG_FEATURE_EDITING_HISTORY=15 +CONFIG_FEATURE_EDITING_SAVEHISTORY=y +# CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set +# CONFIG_FEATURE_REVERSE_SEARCH is not set +CONFIG_FEATURE_TAB_COMPLETION=y +CONFIG_FEATURE_USERNAME_COMPLETION=y +CONFIG_FEATURE_EDITING_FANCY_PROMPT=y +# CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set +CONFIG_FEATURE_NON_POSIX_CP=y +# CONFIG_FEATURE_VERBOSE_CP_MESSAGE is not set +CONFIG_FEATURE_COPYBUF_KB=4 +CONFIG_FEATURE_SKIP_ROOTFS=y +CONFIG_MONOTONIC_SYSCALL=y +CONFIG_IOCTL_HEX2STR_ERROR=y +CONFIG_FEATURE_HWIB=y + +# +# Applets +# + +# +# Archival Utilities +# +# CONFIG_FEATURE_SEAMLESS_XZ is not set +CONFIG_FEATURE_SEAMLESS_LZMA=y +CONFIG_FEATURE_SEAMLESS_BZ2=y +CONFIG_FEATURE_SEAMLESS_GZ=y +CONFIG_FEATURE_SEAMLESS_Z=y +CONFIG_AR=y +# CONFIG_FEATURE_AR_LONG_FILENAMES is not set +# CONFIG_FEATURE_AR_CREATE is not set +CONFIG_BUNZIP2=y +# CONFIG_BZIP2 is not set +CONFIG_CPIO=y +# CONFIG_FEATURE_CPIO_O is not set +# CONFIG_FEATURE_CPIO_P is not set +# CONFIG_DPKG is not set +# CONFIG_DPKG_DEB is not set +# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set +CONFIG_GUNZIP=y +CONFIG_GZIP=y +# CONFIG_FEATURE_GZIP_LONG_OPTIONS is not set +CONFIG_GZIP_FAST=0 +# CONFIG_LZOP is not set +# CONFIG_LZOP_COMPR_HIGH is not set +# CONFIG_RPM2CPIO is not set +# CONFIG_RPM is not set +CONFIG_TAR=y +CONFIG_FEATURE_TAR_CREATE=y +CONFIG_FEATURE_TAR_AUTODETECT=y +CONFIG_FEATURE_TAR_FROM=y +CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y +# CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY is not set +CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y +# CONFIG_FEATURE_TAR_LONG_OPTIONS is not set +# CONFIG_FEATURE_TAR_TO_COMMAND is not set +# CONFIG_FEATURE_TAR_UNAME_GNAME is not set +# CONFIG_FEATURE_TAR_NOPRESERVE_TIME is not set +# CONFIG_FEATURE_TAR_SELINUX is not set +# CONFIG_UNCOMPRESS is not set +# CONFIG_UNLZMA is not set +# CONFIG_FEATURE_LZMA_FAST is not set +# CONFIG_LZMA is not set +# CONFIG_UNXZ is not set +# CONFIG_XZ is not set +CONFIG_UNZIP=y + +# +# Coreutils +# +CONFIG_BASENAME=y +CONFIG_CAT=y +CONFIG_DATE=y +# CONFIG_FEATURE_DATE_ISOFMT is not set +# CONFIG_FEATURE_DATE_NANO is not set +CONFIG_FEATURE_DATE_COMPAT=y +# CONFIG_HOSTID is not set +CONFIG_ID=y +CONFIG_GROUPS=y +CONFIG_TEST=y +CONFIG_FEATURE_TEST_64=y +CONFIG_TOUCH=y +CONFIG_FEATURE_TOUCH_SUSV3=y +CONFIG_TR=y +CONFIG_FEATURE_TR_CLASSES=y +# CONFIG_FEATURE_TR_EQUIV is not set +# CONFIG_BASE64 is not set +CONFIG_WHO=y +CONFIG_USERS=y +# CONFIG_CAL is not set +# CONFIG_CATV is not set +CONFIG_CHGRP=y +CONFIG_CHMOD=y +CONFIG_CHOWN=y +# CONFIG_FEATURE_CHOWN_LONG_OPTIONS is not set +CONFIG_CHROOT=y +# CONFIG_CKSUM is not set +# CONFIG_COMM is not set +CONFIG_CP=y +# CONFIG_FEATURE_CP_LONG_OPTIONS is not set +CONFIG_CUT=y +CONFIG_DD=y +CONFIG_FEATURE_DD_SIGNAL_HANDLING=y +# CONFIG_FEATURE_DD_THIRD_STATUS_LINE is not set +# CONFIG_FEATURE_DD_IBS_OBS is not set +CONFIG_DF=y +# CONFIG_FEATURE_DF_FANCY is not set +CONFIG_DIRNAME=y +# CONFIG_DOS2UNIX is not set +# CONFIG_UNIX2DOS is not set +CONFIG_DU=y +CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y +CONFIG_ECHO=y +CONFIG_FEATURE_FANCY_ECHO=y +CONFIG_ENV=y +CONFIG_FEATURE_ENV_LONG_OPTIONS=y +# CONFIG_EXPAND is not set +# CONFIG_FEATURE_EXPAND_LONG_OPTIONS is not set +CONFIG_EXPR=y +CONFIG_EXPR_MATH_SUPPORT_64=y +CONFIG_FALSE=y +# CONFIG_FOLD is not set +# CONFIG_FSYNC is not set +CONFIG_HEAD=y +# CONFIG_FEATURE_FANCY_HEAD is not set +# CONFIG_INSTALL is not set +# CONFIG_FEATURE_INSTALL_LONG_OPTIONS is not set +CONFIG_LN=y +CONFIG_LOGNAME=y +CONFIG_LS=y +CONFIG_FEATURE_LS_FILETYPES=y +CONFIG_FEATURE_LS_FOLLOWLINKS=y +CONFIG_FEATURE_LS_RECURSIVE=y +CONFIG_FEATURE_LS_SORTFILES=y +CONFIG_FEATURE_LS_TIMESTAMPS=y +CONFIG_FEATURE_LS_USERNAME=y +CONFIG_FEATURE_LS_COLOR=y +# CONFIG_FEATURE_LS_COLOR_IS_DEFAULT is not set +CONFIG_MD5SUM=y +CONFIG_MKDIR=y +CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y +CONFIG_MKFIFO=y +CONFIG_MKNOD=y +CONFIG_MV=y +# CONFIG_FEATURE_MV_LONG_OPTIONS is not set +# CONFIG_NICE is not set +CONFIG_NOHUP=y +CONFIG_OD=y +# CONFIG_PRINTENV is not set +CONFIG_PRINTF=y +CONFIG_PWD=y +CONFIG_READLINK=y +CONFIG_FEATURE_READLINK_FOLLOW=y +CONFIG_REALPATH=y +CONFIG_RM=y +CONFIG_RMDIR=y +# CONFIG_FEATURE_RMDIR_LONG_OPTIONS is not set +CONFIG_SEQ=y +# CONFIG_SHA1SUM is not set +# CONFIG_SHA256SUM is not set +# CONFIG_SHA512SUM is not set +CONFIG_SLEEP=y +CONFIG_FEATURE_FANCY_SLEEP=y +# CONFIG_FEATURE_FLOAT_SLEEP is not set +CONFIG_SORT=y +CONFIG_FEATURE_SORT_BIG=y +# CONFIG_SPLIT is not set +# CONFIG_FEATURE_SPLIT_FANCY is not set +CONFIG_STAT=y +CONFIG_FEATURE_STAT_FORMAT=y +CONFIG_STTY=y +# CONFIG_SUM is not set +CONFIG_SYNC=y +# CONFIG_TAC is not set +CONFIG_TAIL=y +CONFIG_FEATURE_FANCY_TAIL=y +CONFIG_TEE=y +# CONFIG_FEATURE_TEE_USE_BLOCK_IO is not set +CONFIG_TRUE=y +CONFIG_TTY=y +CONFIG_UNAME=y +# CONFIG_UNEXPAND is not set +# CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS is not set +CONFIG_UNIQ=y +CONFIG_USLEEP=y +# CONFIG_UUDECODE is not set +# CONFIG_UUENCODE is not set +CONFIG_WC=y +# CONFIG_FEATURE_WC_LARGE is not set +CONFIG_WHOAMI=y +CONFIG_YES=y + +# +# Common options for cp and mv +# +# CONFIG_FEATURE_PRESERVE_HARDLINKS is not set + +# +# Common options for ls, more and telnet +# +CONFIG_FEATURE_AUTOWIDTH=y + +# +# Common options for df, du, ls +# +CONFIG_FEATURE_HUMAN_READABLE=y + +# +# Common options for md5sum, sha1sum, sha256sum, sha512sum +# +CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y + +# +# Console Utilities +# +CONFIG_CHVT=y +# CONFIG_FGCONSOLE is not set +CONFIG_CLEAR=y +CONFIG_DEALLOCVT=y +CONFIG_DUMPKMAP=y +# CONFIG_KBD_MODE is not set +CONFIG_LOADFONT=y +CONFIG_LOADKMAP=y +CONFIG_OPENVT=y +CONFIG_RESET=y +# CONFIG_RESIZE is not set +# CONFIG_FEATURE_RESIZE_PRINT is not set +CONFIG_SETCONSOLE=y +# CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS is not set +# CONFIG_SETFONT is not set +# CONFIG_FEATURE_SETFONT_TEXTUAL_MAP is not set +CONFIG_DEFAULT_SETFONT_DIR="" +# CONFIG_SETKEYCODES is not set +# CONFIG_SETLOGCONS is not set +# CONFIG_SHOWKEY is not set + +# +# Common options for loadfont and setfont +# +# CONFIG_FEATURE_LOADFONT_PSF2 is not set +# CONFIG_FEATURE_LOADFONT_RAW is not set + +# +# Debian Utilities +# +CONFIG_MKTEMP=y +# CONFIG_PIPE_PROGRESS is not set +CONFIG_RUN_PARTS=y +CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y +# CONFIG_FEATURE_RUN_PARTS_FANCY is not set +CONFIG_START_STOP_DAEMON=y +CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y +CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y +CONFIG_WHICH=y + +# +# Editors +# +CONFIG_PATCH=y +CONFIG_VI=y +CONFIG_FEATURE_VI_MAX_LEN=1024 +CONFIG_FEATURE_VI_8BIT=y +CONFIG_FEATURE_VI_COLON=y +CONFIG_FEATURE_VI_YANKMARK=y +CONFIG_FEATURE_VI_SEARCH=y +# CONFIG_FEATURE_VI_REGEX_SEARCH is not set +CONFIG_FEATURE_VI_USE_SIGNALS=y +# CONFIG_FEATURE_VI_DOT_CMD is not set +# CONFIG_FEATURE_VI_READONLY is not set +# CONFIG_FEATURE_VI_SETOPTS is not set +# CONFIG_FEATURE_VI_SET is not set +CONFIG_FEATURE_VI_WIN_RESIZE=y +# CONFIG_FEATURE_VI_ASK_TERMINAL is not set +CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y +CONFIG_AWK=y +# CONFIG_FEATURE_AWK_LIBM is not set +CONFIG_CMP=y +CONFIG_DIFF=y +# CONFIG_FEATURE_DIFF_LONG_OPTIONS is not set +CONFIG_FEATURE_DIFF_DIR=y +# CONFIG_ED is not set +CONFIG_SED=y +CONFIG_FEATURE_ALLOW_EXEC=y + +# +# Finding Utilities +# +CONFIG_FIND=y +CONFIG_FEATURE_FIND_PRINT0=y +CONFIG_FEATURE_FIND_MTIME=y +CONFIG_FEATURE_FIND_MMIN=y +CONFIG_FEATURE_FIND_PERM=y +CONFIG_FEATURE_FIND_TYPE=y +CONFIG_FEATURE_FIND_XDEV=y +CONFIG_FEATURE_FIND_MAXDEPTH=y +CONFIG_FEATURE_FIND_NEWER=y +# CONFIG_FEATURE_FIND_INUM is not set +CONFIG_FEATURE_FIND_EXEC=y +CONFIG_FEATURE_FIND_USER=y +CONFIG_FEATURE_FIND_GROUP=y +CONFIG_FEATURE_FIND_NOT=y +CONFIG_FEATURE_FIND_DEPTH=y +CONFIG_FEATURE_FIND_PAREN=y +CONFIG_FEATURE_FIND_SIZE=y +CONFIG_FEATURE_FIND_PRUNE=y +# CONFIG_FEATURE_FIND_DELETE is not set +CONFIG_FEATURE_FIND_PATH=y +CONFIG_FEATURE_FIND_REGEX=y +# CONFIG_FEATURE_FIND_CONTEXT is not set +# CONFIG_FEATURE_FIND_LINKS is not set +CONFIG_GREP=y +CONFIG_FEATURE_GREP_EGREP_ALIAS=y +CONFIG_FEATURE_GREP_FGREP_ALIAS=y +CONFIG_FEATURE_GREP_CONTEXT=y +CONFIG_XARGS=y +# CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION is not set +# CONFIG_FEATURE_XARGS_SUPPORT_QUOTES is not set +# CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT is not set +# CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM is not set + +# +# Init Utilities +# +# CONFIG_BOOTCHARTD is not set +# CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER is not set +# CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE is not set +CONFIG_HALT=y +# CONFIG_FEATURE_CALL_TELINIT is not set +CONFIG_TELINIT_PATH="" +# CONFIG_INIT is not set +# CONFIG_FEATURE_USE_INITTAB is not set +# CONFIG_FEATURE_KILL_REMOVED is not set +CONFIG_FEATURE_KILL_DELAY=0 +# CONFIG_FEATURE_INIT_SCTTY is not set +# CONFIG_FEATURE_INIT_SYSLOG is not set +# CONFIG_FEATURE_EXTRA_QUIET is not set +# CONFIG_FEATURE_INIT_COREDUMPS is not set +# CONFIG_FEATURE_INITRD is not set +CONFIG_INIT_TERMINAL_TYPE="" +# CONFIG_MESG is not set +# CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP is not set + +# +# Login/Password Management Utilities +# +# CONFIG_ADD_SHELL is not set +# CONFIG_REMOVE_SHELL is not set +# CONFIG_FEATURE_SHADOWPASSWDS is not set +# CONFIG_USE_BB_PWD_GRP is not set +# CONFIG_USE_BB_SHADOW is not set +CONFIG_USE_BB_CRYPT=y +# CONFIG_USE_BB_CRYPT_SHA is not set +# CONFIG_ADDUSER is not set +# CONFIG_FEATURE_ADDUSER_LONG_OPTIONS is not set +# CONFIG_FEATURE_CHECK_NAMES is not set +CONFIG_FIRST_SYSTEM_ID=0 +CONFIG_LAST_SYSTEM_ID=0 +# CONFIG_ADDGROUP is not set +# CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS is not set +# CONFIG_FEATURE_ADDUSER_TO_GROUP is not set +# CONFIG_DELUSER is not set +# CONFIG_DELGROUP is not set +# CONFIG_FEATURE_DEL_USER_FROM_GROUP is not set +# CONFIG_GETTY is not set +# CONFIG_LOGIN is not set +# CONFIG_LOGIN_SESSION_AS_CHILD is not set +# CONFIG_PAM is not set +# CONFIG_LOGIN_SCRIPTS is not set +# CONFIG_FEATURE_NOLOGIN is not set +# CONFIG_FEATURE_SECURETTY is not set +# CONFIG_PASSWD is not set +# CONFIG_FEATURE_PASSWD_WEAK_CHECK is not set +# CONFIG_CRYPTPW is not set +# CONFIG_CHPASSWD is not set +CONFIG_FEATURE_DEFAULT_PASSWD_ALGO="" +# CONFIG_SU is not set +# CONFIG_FEATURE_SU_SYSLOG is not set +# CONFIG_FEATURE_SU_CHECKS_SHELLS is not set +# CONFIG_SULOGIN is not set +# CONFIG_VLOCK is not set + +# +# Linux Ext2 FS Progs +# +CONFIG_CHATTR=y +CONFIG_FSCK=y +# CONFIG_LSATTR is not set +# CONFIG_TUNE2FS is not set + +# +# Linux Module Utilities +# +# CONFIG_MODINFO is not set +# CONFIG_MODPROBE_SMALL is not set +# CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE is not set +# CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED is not set +CONFIG_INSMOD=y +CONFIG_RMMOD=y +CONFIG_LSMOD=y +# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set +CONFIG_MODPROBE=y +# CONFIG_FEATURE_MODPROBE_BLACKLIST is not set +# CONFIG_DEPMOD is not set + +# +# Options common to multiple modutils +# +# CONFIG_FEATURE_2_4_MODULES is not set +# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set +# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set +# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set +# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set +# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set +CONFIG_FEATURE_CHECK_TAINTED_MODULE=y +CONFIG_FEATURE_MODUTILS_ALIAS=y +CONFIG_FEATURE_MODUTILS_SYMBOLS=y +CONFIG_DEFAULT_MODULES_DIR="/lib/modules" +CONFIG_DEFAULT_DEPMOD_FILE="modules.dep" + +# +# Linux System Utilities +# +CONFIG_BLOCKDEV=y +CONFIG_MDEV=y +CONFIG_FEATURE_MDEV_CONF=y +CONFIG_FEATURE_MDEV_RENAME=y +CONFIG_FEATURE_MDEV_RENAME_REGEXP=y +CONFIG_FEATURE_MDEV_EXEC=y +CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y +# CONFIG_REV is not set +# CONFIG_ACPID is not set +# CONFIG_FEATURE_ACPID_COMPAT is not set +CONFIG_BLKID=y +CONFIG_FEATURE_BLKID_TYPE=y +CONFIG_DMESG=y +CONFIG_FEATURE_DMESG_PRETTY=y +CONFIG_FBSET=y +CONFIG_FEATURE_FBSET_FANCY=y +CONFIG_FEATURE_FBSET_READMODE=y +# CONFIG_FDFLUSH is not set +# CONFIG_FDFORMAT is not set +CONFIG_FDISK=y +# CONFIG_FDISK_SUPPORT_LARGE_DISKS is not set +CONFIG_FEATURE_FDISK_WRITABLE=y +# CONFIG_FEATURE_AIX_LABEL is not set +# CONFIG_FEATURE_SGI_LABEL is not set +# CONFIG_FEATURE_SUN_LABEL is not set +# CONFIG_FEATURE_OSF_LABEL is not set +# CONFIG_FEATURE_GPT_LABEL is not set +# CONFIG_FEATURE_FDISK_ADVANCED is not set +# CONFIG_FINDFS is not set +CONFIG_FLOCK=y +# CONFIG_FREERAMDISK is not set +CONFIG_FSCK_MINIX=y +# CONFIG_MKFS_EXT2 is not set +CONFIG_MKFS_MINIX=y +CONFIG_FEATURE_MINIX2=y +# CONFIG_MKFS_REISER is not set +# CONFIG_MKFS_VFAT is not set +# CONFIG_GETOPT is not set +# CONFIG_FEATURE_GETOPT_LONG is not set +CONFIG_HEXDUMP=y +# CONFIG_FEATURE_HEXDUMP_REVERSE is not set +# CONFIG_HD is not set +CONFIG_HWCLOCK=y +CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y +CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS=y +# CONFIG_IPCRM is not set +# CONFIG_IPCS is not set +CONFIG_LOSETUP=y +# CONFIG_LSPCI is not set +# CONFIG_LSUSB is not set +CONFIG_MKSWAP=y +# CONFIG_FEATURE_MKSWAP_UUID is not set +CONFIG_MORE=y +CONFIG_MOUNT=y +# CONFIG_FEATURE_MOUNT_FAKE is not set +CONFIG_FEATURE_MOUNT_VERBOSE=y +# CONFIG_FEATURE_MOUNT_HELPERS is not set +CONFIG_FEATURE_MOUNT_LABEL=y +CONFIG_FEATURE_MOUNT_NFS=y +# CONFIG_FEATURE_MOUNT_CIFS is not set +CONFIG_FEATURE_MOUNT_FLAGS=y +CONFIG_FEATURE_MOUNT_FSTAB=y +CONFIG_PIVOT_ROOT=y +CONFIG_RDATE=y +# CONFIG_RDEV is not set +# CONFIG_READPROFILE is not set +# CONFIG_RTCWAKE is not set +# CONFIG_SCRIPT is not set +# CONFIG_SCRIPTREPLAY is not set +# CONFIG_SETARCH is not set +CONFIG_SWAPONOFF=y +# CONFIG_FEATURE_SWAPON_PRI is not set +CONFIG_SWITCH_ROOT=y +CONFIG_UMOUNT=y +CONFIG_FEATURE_UMOUNT_ALL=y + +# +# Common options for mount/umount +# +CONFIG_FEATURE_MOUNT_LOOP=y +CONFIG_FEATURE_MOUNT_LOOP_CREATE=y +# CONFIG_FEATURE_MTAB_SUPPORT is not set +CONFIG_VOLUMEID=y +CONFIG_FEATURE_VOLUMEID_EXT=y +CONFIG_FEATURE_VOLUMEID_BTRFS=y +CONFIG_FEATURE_VOLUMEID_FAT=y +CONFIG_FEATURE_VOLUMEID_NTFS=y +CONFIG_FEATURE_VOLUMEID_ISO9660=y +CONFIG_FEATURE_VOLUMEID_UDF=y +CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y +CONFIG_FEATURE_VOLUMEID_CRAMFS=y +CONFIG_FEATURE_VOLUMEID_ROMFS=y +CONFIG_FEATURE_VOLUMEID_SYSV=y +CONFIG_FEATURE_VOLUMEID_OCFS2=y + +# +# Miscellaneous Utilities +# +# CONFIG_CONSPY is not set +#CONFIG_LESS=y +#CONFIG_FEATURE_LESS_MAXLINES=9999999 +#CONFIG_FEATURE_LESS_BRACKETS=y +#CONFIG_FEATURE_LESS_FLAGS=y +# CONFIG_FEATURE_LESS_MARKS is not set +# CONFIG_FEATURE_LESS_REGEXP is not set +# CONFIG_FEATURE_LESS_WINCH is not set +# CONFIG_FEATURE_LESS_ASK_TERMINAL is not set +# CONFIG_FEATURE_LESS_DASHCMD is not set +# CONFIG_FEATURE_LESS_LINENUMS is not set +# CONFIG_NANDWRITE is not set +# CONFIG_NANDDUMP is not set +# CONFIG_SETSERIAL is not set +# CONFIG_UBIATTACH is not set +# CONFIG_UBIDETACH is not set +# CONFIG_UBIMKVOL is not set +# CONFIG_UBIRMVOL is not set +# CONFIG_UBIRSVOL is not set +# CONFIG_UBIUPDATEVOL is not set +# CONFIG_ADJTIMEX is not set +# CONFIG_BBCONFIG is not set +# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set +# CONFIG_BEEP is not set +CONFIG_FEATURE_BEEP_FREQ=0 +CONFIG_FEATURE_BEEP_LENGTH_MS=0 +# CONFIG_CHAT is not set +# CONFIG_FEATURE_CHAT_NOFAIL is not set +# CONFIG_FEATURE_CHAT_TTY_HIFI is not set +# CONFIG_FEATURE_CHAT_IMPLICIT_CR is not set +# CONFIG_FEATURE_CHAT_SWALLOW_OPTS is not set +# CONFIG_FEATURE_CHAT_SEND_ESCAPES is not set +# CONFIG_FEATURE_CHAT_VAR_ABORT_LEN is not set +# CONFIG_FEATURE_CHAT_CLR_ABORT is not set +# CONFIG_CHRT is not set +# CONFIG_CROND is not set +# CONFIG_FEATURE_CROND_D is not set +# CONFIG_FEATURE_CROND_CALL_SENDMAIL is not set +CONFIG_FEATURE_CROND_DIR="" +# CONFIG_CRONTAB is not set +CONFIG_DC=y +# CONFIG_FEATURE_DC_LIBM is not set +# CONFIG_DEVFSD is not set +# CONFIG_DEVFSD_MODLOAD is not set +# CONFIG_DEVFSD_FG_NP is not set +# CONFIG_DEVFSD_VERBOSE is not set +# CONFIG_FEATURE_DEVFS is not set +# CONFIG_DEVMEM is not set +# CONFIG_EJECT is not set +# CONFIG_FEATURE_EJECT_SCSI is not set +# CONFIG_FBSPLASH is not set +# CONFIG_FLASHCP is not set +# CONFIG_FLASH_LOCK is not set +# CONFIG_FLASH_UNLOCK is not set +# CONFIG_FLASH_ERASEALL is not set +# CONFIG_IONICE is not set +# CONFIG_INOTIFYD is not set +# CONFIG_LAST is not set +# CONFIG_FEATURE_LAST_SMALL is not set +# CONFIG_FEATURE_LAST_FANCY is not set +# CONFIG_HDPARM is not set +# CONFIG_FEATURE_HDPARM_GET_IDENTITY is not set +# CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF is not set +# CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF is not set +# CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET is not set +# CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF is not set +# CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA is not set +# CONFIG_MAKEDEVS is not set +# CONFIG_FEATURE_MAKEDEVS_LEAF is not set +# CONFIG_FEATURE_MAKEDEVS_TABLE is not set +# CONFIG_MAN is not set +CONFIG_MICROCOM=y +# CONFIG_MOUNTPOINT is not set +# CONFIG_MT is not set +# CONFIG_RAIDAUTORUN is not set +# CONFIG_READAHEAD is not set +CONFIG_RFKILL=y +# CONFIG_RUNLEVEL is not set +# CONFIG_RX is not set +# CONFIG_SETSID is not set +CONFIG_STRINGS=y +# CONFIG_TASKSET is not set +# CONFIG_FEATURE_TASKSET_FANCY is not set +CONFIG_TIME=y +# CONFIG_TIMEOUT is not set +# CONFIG_TTYSIZE is not set +# CONFIG_VOLNAME is not set +# CONFIG_WALL is not set +# CONFIG_WATCHDOG is not set + +# +# Networking Utilities +# +# CONFIG_NAMEIF is not set +# CONFIG_FEATURE_NAMEIF_EXTENDED is not set +# CONFIG_NBDCLIENT is not set +CONFIG_NC=y +# CONFIG_NC_SERVER is not set +# CONFIG_NC_EXTRA is not set +# CONFIG_NC_110_COMPAT is not set +CONFIG_PING=y +CONFIG_PING6=y +CONFIG_FEATURE_FANCY_PING=y +# CONFIG_WHOIS is not set +CONFIG_FEATURE_IPV6=y +# CONFIG_FEATURE_UNIX_LOCAL is not set +CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y +# CONFIG_VERBOSE_RESOLUTION_ERRORS is not set +# CONFIG_ARP is not set +# CONFIG_ARPING is not set +# CONFIG_BRCTL is not set +# CONFIG_FEATURE_BRCTL_FANCY is not set +# CONFIG_FEATURE_BRCTL_SHOW is not set +# CONFIG_DNSD is not set +# CONFIG_ETHER_WAKE is not set +# CONFIG_FAKEIDENTD is not set +# CONFIG_FTPD is not set +# CONFIG_FEATURE_FTP_WRITE is not set +# CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST is not set +# CONFIG_FTPGET is not set +# CONFIG_FTPPUT is not set +# CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS is not set +CONFIG_HOSTNAME=y +# CONFIG_HTTPD is not set +# CONFIG_FEATURE_HTTPD_RANGES is not set +# CONFIG_FEATURE_HTTPD_USE_SENDFILE is not set +# CONFIG_FEATURE_HTTPD_SETUID is not set +# CONFIG_FEATURE_HTTPD_BASIC_AUTH is not set +# CONFIG_FEATURE_HTTPD_AUTH_MD5 is not set +# CONFIG_FEATURE_HTTPD_CGI is not set +# CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR is not set +# CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV is not set +# CONFIG_FEATURE_HTTPD_ENCODE_URL_STR is not set +# CONFIG_FEATURE_HTTPD_ERROR_PAGES is not set +# CONFIG_FEATURE_HTTPD_PROXY is not set +# CONFIG_FEATURE_HTTPD_GZIP is not set +CONFIG_IFCONFIG=y +CONFIG_FEATURE_IFCONFIG_STATUS=y +# CONFIG_FEATURE_IFCONFIG_SLIP is not set +# CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ is not set +CONFIG_FEATURE_IFCONFIG_HW=y +# CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS is not set +# CONFIG_IFENSLAVE is not set +# CONFIG_IFPLUGD is not set +CONFIG_IFUPDOWN=y +CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate" +# CONFIG_FEATURE_IFUPDOWN_IP is not set +# CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN is not set +CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN=y +CONFIG_FEATURE_IFUPDOWN_IPV4=y +CONFIG_FEATURE_IFUPDOWN_IPV6=y +CONFIG_FEATURE_IFUPDOWN_MAPPING=y +# CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set +# CONFIG_INETD is not set +# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO is not set +# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD is not set +# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME is not set +# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME is not set +# CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN is not set +# CONFIG_FEATURE_INETD_RPC is not set +CONFIG_IP=y +CONFIG_FEATURE_IP_ADDRESS=y +CONFIG_FEATURE_IP_LINK=y +CONFIG_FEATURE_IP_ROUTE=y +CONFIG_FEATURE_IP_TUNNEL=y +# CONFIG_FEATURE_IP_RULE is not set +# CONFIG_FEATURE_IP_SHORT_FORMS is not set +# CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set +# CONFIG_IPADDR is not set +# CONFIG_IPLINK is not set +# CONFIG_IPROUTE is not set +# CONFIG_IPTUNNEL is not set +# CONFIG_IPRULE is not set +# CONFIG_IPCALC is not set +# CONFIG_FEATURE_IPCALC_FANCY is not set +# CONFIG_FEATURE_IPCALC_LONG_OPTIONS is not set +CONFIG_NETSTAT=y +# CONFIG_FEATURE_NETSTAT_WIDE is not set +# CONFIG_FEATURE_NETSTAT_PRG is not set +CONFIG_NSLOOKUP=y +# CONFIG_NTPD is not set +# CONFIG_FEATURE_NTPD_SERVER is not set +# CONFIG_PSCAN is not set +CONFIG_ROUTE=y +# CONFIG_SLATTACH is not set +# CONFIG_TCPSVD is not set +CONFIG_TELNET=y +# CONFIG_FEATURE_TELNET_TTYPE is not set +CONFIG_FEATURE_TELNET_AUTOLOGIN=y +# CONFIG_TELNETD is not set +# CONFIG_FEATURE_TELNETD_STANDALONE is not set +# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set +CONFIG_TFTP=y +# CONFIG_TFTPD is not set + +# +# Common options for tftp/tftpd +# +CONFIG_FEATURE_TFTP_GET=y +CONFIG_FEATURE_TFTP_PUT=y +# CONFIG_FEATURE_TFTP_BLOCKSIZE is not set +# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set +# CONFIG_TFTP_DEBUG is not set +CONFIG_TRACEROUTE=y +# CONFIG_TRACEROUTE6 is not set +# CONFIG_FEATURE_TRACEROUTE_VERBOSE is not set +# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set +# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set +# CONFIG_TUNCTL is not set +# CONFIG_FEATURE_TUNCTL_UG is not set +# CONFIG_UDHCPC6 is not set +CONFIG_UDHCPD=y +# CONFIG_DHCPRELAY is not set +CONFIG_DUMPLEASES=y +# CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY is not set +# CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set +CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases" +# CONFIG_UDHCPC is not set +# CONFIG_FEATURE_UDHCPC_ARPING is not set +# CONFIG_FEATURE_UDHCP_PORT is not set +CONFIG_UDHCP_DEBUG=0 +# CONFIG_FEATURE_UDHCP_RFC3397 is not set +# CONFIG_FEATURE_UDHCP_8021Q is not set +CONFIG_UDHCPC_DEFAULT_SCRIPT="" +CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 +CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="" +# CONFIG_UDPSVD is not set +# CONFIG_VCONFIG is not set +CONFIG_WGET=y +CONFIG_FEATURE_WGET_STATUSBAR=y +CONFIG_FEATURE_WGET_AUTHENTICATION=y +CONFIG_FEATURE_WGET_LONG_OPTIONS=y +CONFIG_FEATURE_WGET_TIMEOUT=y +# CONFIG_ZCIP is not set + +# +# Print Utilities +# +# CONFIG_LPD is not set +# CONFIG_LPR is not set +# CONFIG_LPQ is not set + +# +# Mail Utilities +# +# CONFIG_MAKEMIME is not set +CONFIG_FEATURE_MIME_CHARSET="" +# CONFIG_POPMAILDIR is not set +# CONFIG_FEATURE_POPMAILDIR_DELIVERY is not set +# CONFIG_REFORMIME is not set +# CONFIG_FEATURE_REFORMIME_COMPAT is not set +# CONFIG_SENDMAIL is not set + +# +# Process Utilities +# +# CONFIG_IOSTAT is not set +# CONFIG_LSOF is not set +# CONFIG_MPSTAT is not set +# CONFIG_NMETER is not set +# CONFIG_PMAP is not set +# CONFIG_POWERTOP is not set +# CONFIG_PSTREE is not set +# CONFIG_PWDX is not set +# CONFIG_SMEMCAP is not set +# CONFIG_UPTIME is not set +# CONFIG_FEATURE_UPTIME_UTMP_SUPPORT is not set +# CONFIG_FREE is not set +CONFIG_FUSER=y +# CONFIG_KILL is not set +# CONFIG_KILLALL is not set +# CONFIG_KILLALL5 is not set +# CONFIG_PGREP is not set +CONFIG_PIDOF=y +# CONFIG_FEATURE_PIDOF_SINGLE is not set +# CONFIG_FEATURE_PIDOF_OMIT is not set +# CONFIG_PKILL is not set +# CONFIG_PS is not set +# CONFIG_FEATURE_PS_WIDE is not set +# CONFIG_FEATURE_PS_LONG is not set +# CONFIG_FEATURE_PS_TIME is not set +# CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS is not set +# CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set +CONFIG_RENICE=y +# CONFIG_BB_SYSCTL is not set +# CONFIG_TOP is not set +# CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE is not set +# CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS is not set +# CONFIG_FEATURE_TOP_SMP_CPU is not set +# CONFIG_FEATURE_TOP_DECIMALS is not set +# CONFIG_FEATURE_TOP_SMP_PROCESS is not set +# CONFIG_FEATURE_TOPMEM is not set +# CONFIG_FEATURE_SHOW_THREADS is not set +# CONFIG_WATCH is not set + +# +# Runit Utilities +# +# CONFIG_RUNSV is not set +# CONFIG_RUNSVDIR is not set +# CONFIG_FEATURE_RUNSVDIR_LOG is not set +# CONFIG_SV is not set +CONFIG_SV_DEFAULT_SERVICE_DIR="" +# CONFIG_SVLOGD is not set +# CONFIG_CHPST is not set +# CONFIG_SETUIDGID is not set +# CONFIG_ENVUIDGID is not set +# CONFIG_ENVDIR is not set +# CONFIG_SOFTLIMIT is not set +# CONFIG_CHCON is not set +# CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set +# CONFIG_GETENFORCE is not set +# CONFIG_GETSEBOOL is not set +# CONFIG_LOAD_POLICY is not set +# CONFIG_MATCHPATHCON is not set +# CONFIG_RESTORECON is not set +# CONFIG_RUNCON is not set +# CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set +# CONFIG_SELINUXENABLED is not set +# CONFIG_SETENFORCE is not set +# CONFIG_SETFILES is not set +# CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set +# CONFIG_SETSEBOOL is not set +# CONFIG_SESTATUS is not set + +# +# Shells +# +CONFIG_ASH=y +CONFIG_ASH_BASH_COMPAT=y +# CONFIG_ASH_IDLE_TIMEOUT is not set +CONFIG_ASH_JOB_CONTROL=y +CONFIG_ASH_ALIAS=y +CONFIG_ASH_GETOPTS=y +CONFIG_ASH_BUILTIN_ECHO=y +CONFIG_ASH_BUILTIN_PRINTF=y +CONFIG_ASH_BUILTIN_TEST=y +# CONFIG_ASH_CMDCMD is not set +# CONFIG_ASH_MAIL is not set +CONFIG_ASH_OPTIMIZE_FOR_SIZE=y +# CONFIG_ASH_RANDOM_SUPPORT is not set +CONFIG_ASH_EXPAND_PRMT=y +# CONFIG_CTTYHACK is not set +# CONFIG_HUSH is not set +# CONFIG_HUSH_BASH_COMPAT is not set +# CONFIG_HUSH_BRACE_EXPANSION is not set +# CONFIG_HUSH_HELP is not set +# CONFIG_HUSH_INTERACTIVE is not set +# CONFIG_HUSH_SAVEHISTORY is not set +# CONFIG_HUSH_JOB is not set +# CONFIG_HUSH_TICK is not set +# CONFIG_HUSH_IF is not set +# CONFIG_HUSH_LOOPS is not set +# CONFIG_HUSH_CASE is not set +# CONFIG_HUSH_FUNCTIONS is not set +# CONFIG_HUSH_LOCAL is not set +# CONFIG_HUSH_RANDOM_SUPPORT is not set +# CONFIG_HUSH_EXPORT_N is not set +# CONFIG_HUSH_MODE_X is not set +# CONFIG_MSH is not set +CONFIG_FEATURE_SH_IS_ASH=y +# CONFIG_FEATURE_SH_IS_HUSH is not set +# CONFIG_FEATURE_SH_IS_NONE is not set +# CONFIG_FEATURE_BASH_IS_ASH is not set +# CONFIG_FEATURE_BASH_IS_HUSH is not set +CONFIG_FEATURE_BASH_IS_NONE=y +CONFIG_SH_MATH_SUPPORT=y +# CONFIG_SH_MATH_SUPPORT_64 is not set +CONFIG_FEATURE_SH_EXTRA_QUIET=y +# CONFIG_FEATURE_SH_STANDALONE is not set +# CONFIG_FEATURE_SH_NOFORK is not set +CONFIG_FEATURE_SH_HISTFILESIZE=y + +# +# System Logging Utilities +# +CONFIG_SYSLOGD=y +CONFIG_FEATURE_ROTATE_LOGFILE=y +CONFIG_FEATURE_REMOTE_LOG=y +CONFIG_FEATURE_SYSLOGD_DUP=y +CONFIG_FEATURE_SYSLOGD_CFG=y +CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256 +CONFIG_FEATURE_IPC_SYSLOG=y +CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16 +CONFIG_LOGREAD=y +CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y +CONFIG_KLOGD=y +CONFIG_FEATURE_KLOGD_KLOGCTL=y +CONFIG_LOGGER=y diff --git a/meta-eca/recipes-devtools/ninja/ninja-native_1.4.0.bb b/meta-eca/recipes-devtools/ninja/ninja-native_1.4.0.bb new file mode 100644 index 0000000..f05d478 --- /dev/null +++ b/meta-eca/recipes-devtools/ninja/ninja-native_1.4.0.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "Ninja is a small build system with a focus on speed." +LICENSE = "Apache-2" + +inherit native + +LIC_FILES_CHKSUM = "file://COPYING;md5=a81586a64ad4e476c791cda7e2f2c52e" + +SRCREV="63d5b1013cafb2db95687cf446eb5bb68cf6a27a" + +SRC_URI = "git://github.com/martine/ninja.git;branch=release" + +S="${WORKDIR}/git" + +do_compile() { + python ${S}/bootstrap.py +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${S}/ninja ${D}${bindir}/ninja +} diff --git a/meta-eca/recipes-eca/images/eca-image.bb b/meta-eca/recipes-eca/images/eca-image.bb new file mode 100644 index 0000000..724f49a --- /dev/null +++ b/meta-eca/recipes-eca/images/eca-image.bb @@ -0,0 +1,4 @@ +include recipes-eca/images/eca-image.inc + +PV = "0.2" +PR = "r1" diff --git a/meta-eca/recipes-eca/images/eca-image.inc b/meta-eca/recipes-eca/images/eca-image.inc new file mode 100644 index 0000000..a661521 --- /dev/null +++ b/meta-eca/recipes-eca/images/eca-image.inc @@ -0,0 +1,31 @@ +IMAGE_INSTALL = "\ + packagegroup-eca \ + ${@base_contains('DISTRO_FEATURES', 'internet-of-things', 'packagegroup-iot', '', d)} \ + ${@base_contains('DISTRO_FEATURES', 'desktop', 'packagegroup-eca-desktop', '', d)} \ + ${ROOTFS_PKGMANAGE_BOOTSTRAP} \ + ${CORE_IMAGE_EXTRA_INSTALL} \ +" + +EXTRA_IMAGE_FEATURES = "debug-tweaks package-management ssh-server-dropbear" +EXTRA_IMAGEDEPENDS += "qemu-native qemu-helper-native" + +IMAGE_LINGUAS = " " + +LICENSE = "MIT" + +PREFERRED_PROVIDER_udev = "systemd" +PREFERRED_PROVIDER_udev-utils = "systemd" + +PREFERRED_PROVIDER_jpeg = "jpeg" +PREFERRED_PROVIDER_jpeg-native = "jpeg-native" + +BBMASK = "meta/recipes-core/udev.*" + +inherit core-image buildhistory + +IMAGE_ROOTFS_SIZE = "8192" + +# remove not needed ipkg informations +#ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; " + +BUILDHISTORY_COMMIT = "1" diff --git a/meta-eca/recipes-eca/packagegroups/packagegroup-base.bbappend b/meta-eca/recipes-eca/packagegroups/packagegroup-base.bbappend new file mode 100644 index 0000000..3578896 --- /dev/null +++ b/meta-eca/recipes-eca/packagegroups/packagegroup-base.bbappend @@ -0,0 +1,5 @@ +# We want to use bluez5 +RDEPENDS_packagegroup-base-bluetooth = "\ + bluez5 \ + ${@base_contains('COMBINED_FEATURES', 'alsa', 'libasound-module-bluez', '',d)} \ + " diff --git a/meta-eca/recipes-eca/packagegroups/packagegroup-eca-desktop.bb b/meta-eca/recipes-eca/packagegroups/packagegroup-eca-desktop.bb new file mode 100644 index 0000000..7b20770 --- /dev/null +++ b/meta-eca/recipes-eca/packagegroups/packagegroup-eca-desktop.bb @@ -0,0 +1,45 @@ +DESCRIPTION = "Packagegroup for ECA desktop packages" +LICENSE = "MIT" +PACKAGE_ARCH = "${MACHINE_ARCH}" +DEPENDS = "virtual/kernel" +PR = "r2" + +inherit packagegroup + +PACKAGES = "\ + ${@base_contains('DISTRO_FEATURES', 'desktop', 'packagegroup-eca-desktop', '', d)} \ +" + +# Graphical desktop support +# pcmanfm doesn't work on mips +FILEMANAGER ?= "pcmanfm" +FILEMANAGER_mips ?= "" +BROWSER = "chromium" +DESKTOP_APPS="\ + leafpad \ + gaku \ + x11vnc \ + matchbox-terminal \ + sato-screenshot \ + ${FILEMANAGER} \ + ${BROWSER} \ +" + +SUMMARY_packagegroup-eca-desktop = "ECA graphical desktop support" +RDEPENDS_packagegroup-eca-desktop = "\ + matchbox-desktop \ + matchbox-session-sato \ + matchbox-keyboard \ + matchbox-keyboard-applet \ + matchbox-keyboard-im \ + matchbox-config-gtk \ + xcursor-transparent-theme \ + sato-icon-theme \ + settings-daemon \ + gtk-sato-engine \ + shutdown-desktop \ + libsdl \ + connman-gnome \ + udev-extraconf \ + ${DESKTOP_APPS} \ +" diff --git a/meta-eca/recipes-eca/packagegroups/packagegroup-eca.bb b/meta-eca/recipes-eca/packagegroups/packagegroup-eca.bb new file mode 100644 index 0000000..5aaa002 --- /dev/null +++ b/meta-eca/recipes-eca/packagegroups/packagegroup-eca.bb @@ -0,0 +1,127 @@ +DESCRIPTION = "Packagegroup for ECA packages" +LICENSE = "MIT" +PACKAGE_ARCH = "${MACHINE_ARCH}" +DEPENDS = "virtual/kernel" +PR = "r2" + +inherit packagegroup + +PACKAGES = "\ + packagegroup-eca \ + ${@base_contains('DISTRO_FEATURES', 'internet-of-things', 'packagegroup-iot', '', d)} \ +" + +MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" + +VIRTUAL-RUNTIME_dev_manager ?= "udev" +VIRTUAL-RUNTIME_init_manager ?= "sysvinit" +VIRTUAL-RUNTIME_initscripts ?= "initscripts" +VIRTUAL-RUNTIME_keymaps ?= "keymaps " + +BLUEZ_PACKAGES="\ + bluez5 \ + bluez5-testtools \ +" + +CONNMAN_PACKAGES="\ + connman \ + connman-init-systemd \ + connman-client \ + connman-tests \ + connman-tools \ +" + +NFC_PACKAGES="\ + neard \ +" + +OFONO_PACKAGES="\ + ofono \ + ofono-tests \ + mobile-broadband-provider-info \ + usb-modeswitch \ +" + +UI_PACKAGES="\ + webpy \ + eca-web \ +" + +UTIL_PACKAGES="\ + curl \ + less \ + avahi \ + avahi-daemon \ + iproute2 \ + tcpdump \ + screen \ + bridge-utils \ + lsof \ + rsync \ + socat \ + links \ + iw \ + mosh \ + macchanger \ + netcat-openbsd \ + python-scapy \ + tzdata \ + bind-utils \ + usbutils \ + wireless-tools \ +" + +# Try to install as many wlan firmwares as possible +WLAN_FIRMWARE="\ + linux-firmware-ralink \ + linux-firmware-rtl8192ce \ + linux-firmware-rtl8192cu \ + linux-firmware-rtl8192su \ + linux-firmware-sd8686 \ + linux-firmware-wl12xx \ +" + +THE_THING_SYSTEM="\ + steward-init \ + steward \ + tts-nodejs \ +" + +RDEPENDS_packagegroup-eca = "\ + base-files \ + base-passwd \ + busybox \ + ${VIRTUAL-RUNTIME_initscripts} \ + ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \ + netbase \ + ${VIRTUAL-RUNTIME_init_manager} \ + ${VIRTUAL-RUNTIME_dev_manager} \ + ${VIRTUAL-RUNTIME_update-alternatives} \ + ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS} \ + procps \ + packagegroup-base \ + initscripts \ + systemd-compat-units \ + kernel-modules \ + eglibc \ + linux-firmware \ + \ + ${BLUEZ_PACKAGES} \ + ${CONNMAN_PACKAGES} \ + ${NFC_PACKAGES} \ + ${OFONO_PACKAGES} \ + ${UI_PACKAGES} \ + ${UTIL_PACKAGES} \ + ${WLAN_FIRMWARE} \ +" + +SUMMARY_packagegroup-iot = "Internet of Things support" +RDEPENDS_packagegroup-iot = "\ + ${THE_THING_SYSTEM} \ + avahi-daemon-init \ +" + +RRECOMMENDS_${PN} = "\ + ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS} \ +" diff --git a/meta-eca/recipes-kernel/linux/linux-mainline_3.8.bb b/meta-eca/recipes-kernel/linux/linux-mainline_3.8.bb new file mode 100644 index 0000000..221b2a0 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-mainline_3.8.bb @@ -0,0 +1,3 @@ +# This is currently empty and only here so that bitbake +# does not complain +LICENSE = "GPLv2" diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/bluetooth.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/bluetooth.cfg new file mode 100644 index 0000000..21aac08 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/bluetooth.cfg @@ -0,0 +1,21 @@ +CONFIG_BT=m +CONFIG_BT_RFCOMM=m +CONFIG_BT_RFCOMM_TTY=y +CONFIG_BT_BNEP=m +CONFIG_BT_BNEP_MC_FILTER=y +CONFIG_BT_BNEP_PROTO_FILTER=y +CONFIG_BT_HIDP=m +CONFIG_BT_HCIBTUSB=m +CONFIG_BT_HCIBTSDIO=m +CONFIG_BT_HCIUART=m +CONFIG_BT_HCIUART_H4=y +CONFIG_BT_HCIUART_BCSP=y +CONFIG_BT_HCIUART_ATH3K=y +CONFIG_BT_HCIUART_LL=y +CONFIG_BT_HCIBCM203X=m +CONFIG_BT_HCIBPA10X=m +CONFIG_BT_HCIBFUSB=m +CONFIG_BT_HCIVHCI=m +CONFIG_BT_MRVL=m +CONFIG_BT_MRVL_SDIO=m +CONFIG_BT_ATH3K=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/bridge.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/bridge.cfg new file mode 100644 index 0000000..40e95a6 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/bridge.cfg @@ -0,0 +1,2 @@ +CONFIG_BRIDGE=m +CONFIG_BRIDGE_IGMP_SNOOPING=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/high-speed-mobile-devices.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/high-speed-mobile-devices.cfg new file mode 100644 index 0000000..0a009ee --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/high-speed-mobile-devices.cfg @@ -0,0 +1 @@ +CONFIG_USB_HSO=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/ipv6.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/ipv6.cfg new file mode 100644 index 0000000..96a6fe7 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/ipv6.cfg @@ -0,0 +1,3 @@ +CONFIG_IPV6_PRIVACY=y +CONFIG_IPV6_MULTIPLE_TABLES=y +CONFIG_IPV6_SUBTREES=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/l2tp.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/l2tp.cfg new file mode 100644 index 0000000..d6d96da --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/l2tp.cfg @@ -0,0 +1,2 @@ +CONFIG_L2TP=m +CONFIG_L2TP_V3=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/mac80211.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/mac80211.cfg new file mode 100644 index 0000000..559f3e7 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/mac80211.cfg @@ -0,0 +1,2 @@ +CONFIG_CFG80211=m +CONFIG_MAC80211=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-3.10.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-3.10.cfg new file mode 100644 index 0000000..dfbbecf --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-3.10.cfg @@ -0,0 +1,175 @@ +CONFIG_IP_ROUTE_CLASSID=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y +CONFIG_NETFILTER_NETLINK=m +CONFIG_NETFILTER_NETLINK_ACCT=m +CONFIG_NETFILTER_NETLINK_QUEUE=m +CONFIG_NETFILTER_NETLINK_LOG=m +CONFIG_NF_CONNTRACK=m +CONFIG_NF_CONNTRACK_MARK=y +CONFIG_NF_CONNTRACK_ZONES=y +CONFIG_NF_CONNTRACK_PROCFS=y +CONFIG_NF_CONNTRACK_EVENTS=y +CONFIG_NF_CONNTRACK_TIMEOUT=y +CONFIG_NF_CONNTRACK_TIMESTAMP=y +CONFIG_NF_CT_PROTO_GRE=m +CONFIG_NF_CONNTRACK_FTP=m +CONFIG_NF_CONNTRACK_H323=m +CONFIG_NF_CONNTRACK_IRC=m +CONFIG_NF_CONNTRACK_BROADCAST=m +CONFIG_NF_CONNTRACK_NETBIOS_NS=m +CONFIG_NF_CONNTRACK_PPTP=m +CONFIG_NF_CONNTRACK_SIP=m +CONFIG_NF_CT_NETLINK=m +CONFIG_NF_CT_NETLINK_TIMEOUT=m +CONFIG_NETFILTER_NETLINK_QUEUE_CT=y +CONFIG_NF_NAT=m +CONFIG_NF_NAT_NEEDED=y +CONFIG_NF_NAT_FTP=m +CONFIG_NF_NAT_IRC=m +CONFIG_NF_NAT_SIP=m +CONFIG_NETFILTER_TPROXY=m +CONFIG_NETFILTER_XTABLES=m +CONFIG_NETFILTER_XT_MARK=m +CONFIG_NETFILTER_XT_CONNMARK=m +CONFIG_NETFILTER_XT_TARGET_CHECKSUM=m +CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m +CONFIG_NETFILTER_XT_TARGET_CONNMARK=m +CONFIG_NETFILTER_XT_TARGET_CT=m +CONFIG_NETFILTER_XT_TARGET_DSCP=m +CONFIG_NETFILTER_XT_TARGET_HL=m +CONFIG_NETFILTER_XT_TARGET_HMARK=m +CONFIG_NETFILTER_XT_TARGET_IDLETIMER=m +CONFIG_NETFILTER_XT_TARGET_LED=m +CONFIG_NETFILTER_XT_TARGET_LOG=m +CONFIG_NETFILTER_XT_TARGET_MARK=m +CONFIG_NETFILTER_XT_TARGET_NFLOG=m +CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m +CONFIG_NETFILTER_XT_TARGET_NOTRACK=m +CONFIG_NETFILTER_XT_TARGET_RATEEST=m +CONFIG_NETFILTER_XT_TARGET_REDIRECT=m +CONFIG_NETFILTER_XT_TARGET_TEE=m +CONFIG_NETFILTER_XT_TARGET_TPROXY=m +CONFIG_NETFILTER_XT_TARGET_TRACE=m +CONFIG_NETFILTER_XT_TARGET_TCPMSS=m +CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m +CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m +CONFIG_NETFILTER_XT_MATCH_COMMENT=m +CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m +CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m +CONFIG_NETFILTER_XT_MATCH_CONNMARK=m +CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m +CONFIG_NETFILTER_XT_MATCH_DEVGROUP=m +CONFIG_NETFILTER_XT_MATCH_DSCP=m +CONFIG_NETFILTER_XT_MATCH_ECN=m +CONFIG_NETFILTER_XT_MATCH_ESP=m +CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m +CONFIG_NETFILTER_XT_MATCH_HELPER=m +CONFIG_NETFILTER_XT_MATCH_HL=m +CONFIG_NETFILTER_XT_MATCH_IPRANGE=m +CONFIG_NETFILTER_XT_MATCH_LENGTH=m +CONFIG_NETFILTER_XT_MATCH_LIMIT=m +CONFIG_NETFILTER_XT_MATCH_MAC=m +CONFIG_NETFILTER_XT_MATCH_MARK=m +CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m +CONFIG_NETFILTER_XT_MATCH_NFACCT=m +CONFIG_NETFILTER_XT_MATCH_OSF=m +CONFIG_NETFILTER_XT_MATCH_OWNER=m +CONFIG_NETFILTER_XT_MATCH_POLICY=m +CONFIG_NETFILTER_XT_MATCH_PHYSDEV=m +CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m +CONFIG_NETFILTER_XT_MATCH_QUOTA=m +CONFIG_NETFILTER_XT_MATCH_RATEEST=m +CONFIG_NETFILTER_XT_MATCH_REALM=m +CONFIG_NETFILTER_XT_MATCH_RECENT=m +ONFIG_IP_VS=n +CONFIG_NETFILTER_XT_MATCH_SOCKET=m +CONFIG_NETFILTER_XT_MATCH_STATE=m +CONFIG_NETFILTER_XT_MATCH_STATISTIC=m +CONFIG_NETFILTER_XT_MATCH_STRING=m +CONFIG_NETFILTER_XT_MATCH_TCPMSS=m +CONFIG_NETFILTER_XT_MATCH_TIME=m +CONFIG_NETFILTER_XT_MATCH_U32=m +CONFIG_IP_SET=m +CONFIG_IP_SET_MAX=256 +CONFIG_IP_SET_BITMAP_IP=m +CONFIG_IP_SET_BITMAP_IPMAC=m +CONFIG_IP_SET_BITMAP_PORT=m +CONFIG_IP_SET_HASH_IP=m +CONFIG_IP_SET_HASH_IPPORT=m +CONFIG_IP_SET_HASH_IPPORTIP=m +CONFIG_IP_SET_HASH_IPPORTNET=m +CONFIG_IP_SET_HASH_NET=m +CONFIG_IP_SET_HASH_NETPORT=m +CONFIG_IP_SET_HASH_NETIFACE=m +CONFIG_IP_SET_LIST_SET=m +CONFIG_NF_DEFRAG_IPV4=m +CONFIG_NF_CONNTRACK_IPV4=m +CONFIG_NF_CONNTRACK_PROC_COMPAT=y +CONFIG_IP_NF_QUEUE=m +CONFIG_IP_NF_IPTABLES=m +CONFIG_IP_NF_MATCH_AH=m +CONFIG_IP_NF_FILTER=m +CONFIG_IP_NF_TARGET_REJECT=m +CONFIG_IP_NF_TARGET_ULOG=m +CONFIG_NF_NAT_IPV4=m +CONFIG_IP_NF_TARGET_MASQUERADE=m +CONFIG_IP_NF_TARGET_REDIRECT=m +CONFIG_NF_NAT_PROTO_GRE=m +CONFIG_NF_NAT_PPTP=m +CONFIG_NF_NAT_H323=m +CONFIG_IP_NF_MANGLE=m +CONFIG_IP_NF_TARGET_ECN=m +CONFIG_IP_NF_TARGET_TTL=m +CONFIG_IP_NF_RAW=m +CONFIG_NF_DEFRAG_IPV6=m +CONFIG_NF_CONNTRACK_IPV6=m +CONFIG_IP6_NF_IPTABLES=m +CONFIG_IP6_NF_MATCH_AH=m +CONFIG_IP6_NF_MATCH_EUI64=m +CONFIG_IP6_NF_MANGLE=m +CONFIG_IP6_NF_RAW=m +CONFIG_IP6_NF_SECURITY=m +CONFIG_NF_NAT_IPV6=m +CONFIG_IP6_NF_TARGET_MASQUERADE=m +CONFIG_IP6_NF_TARGET_NPT=m +CONFIG_BRIDGE_NF_EBTABLES=m +CONFIG_BRIDGE_EBT_BROUTE=m +CONFIG_BRIDGE_EBT_T_FILTER=m +CONFIG_BRIDGE_EBT_T_NAT=m +CONFIG_BRIDGE_EBT_802_3=m +CONFIG_BRIDGE_EBT_AMONG=m +CONFIG_BRIDGE_EBT_ARP=m +CONFIG_BRIDGE_EBT_IP=m +CONFIG_BRIDGE_EBT_IP6=m +CONFIG_BRIDGE_EBT_LIMIT=m +CONFIG_BRIDGE_EBT_MARK=m +CONFIG_BRIDGE_EBT_PKTTYPE=m +CONFIG_BRIDGE_EBT_STP=m +CONFIG_BRIDGE_EBT_VLAN=m +CONFIG_BRIDGE_EBT_ARPREPLY=m +CONFIG_BRIDGE_EBT_DNAT=m +CONFIG_BRIDGE_EBT_MARK_T=m +CONFIG_BRIDGE_EBT_REDIRECT=m +CONFIG_BRIDGE_EBT_SNAT=m +CONFIG_BRIDGE_EBT_LOG=m +CONFIG_BRIDGE_EBT_ULOG=m +CONFIG_BRIDGE_EBT_NFLOG=m +CONFIG_FB_DEFERRED_IO=y +CONFIG_FB_MODE_HELPERS=y +CONFIG_FB_TILEBLITTING=y +CONFIG_USB_CYTHERM=m +CONFIG_USB_IDMOUSE=m +CONFIG_USB_FTDI_ELAN=m +CONFIG_USB_LD=m +CONFIG_USB_TRANCEVIBRATOR=m +CONFIG_DECOMPRESS_GZIP=y +CONFIG_GENERIC_ALLOCATOR=y +CONFIG_TEXTSEARCH=y +CONFIG_TEXTSEARCH_KMP=m +CONFIG_TEXTSEARCH_BM=m +CONFIG_TEXTSEARCH_FSM=m +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT=y +CONFIG_HAS_DMA=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-3.8.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-3.8.cfg new file mode 100644 index 0000000..dfbbecf --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-3.8.cfg @@ -0,0 +1,175 @@ +CONFIG_IP_ROUTE_CLASSID=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y +CONFIG_NETFILTER_NETLINK=m +CONFIG_NETFILTER_NETLINK_ACCT=m +CONFIG_NETFILTER_NETLINK_QUEUE=m +CONFIG_NETFILTER_NETLINK_LOG=m +CONFIG_NF_CONNTRACK=m +CONFIG_NF_CONNTRACK_MARK=y +CONFIG_NF_CONNTRACK_ZONES=y +CONFIG_NF_CONNTRACK_PROCFS=y +CONFIG_NF_CONNTRACK_EVENTS=y +CONFIG_NF_CONNTRACK_TIMEOUT=y +CONFIG_NF_CONNTRACK_TIMESTAMP=y +CONFIG_NF_CT_PROTO_GRE=m +CONFIG_NF_CONNTRACK_FTP=m +CONFIG_NF_CONNTRACK_H323=m +CONFIG_NF_CONNTRACK_IRC=m +CONFIG_NF_CONNTRACK_BROADCAST=m +CONFIG_NF_CONNTRACK_NETBIOS_NS=m +CONFIG_NF_CONNTRACK_PPTP=m +CONFIG_NF_CONNTRACK_SIP=m +CONFIG_NF_CT_NETLINK=m +CONFIG_NF_CT_NETLINK_TIMEOUT=m +CONFIG_NETFILTER_NETLINK_QUEUE_CT=y +CONFIG_NF_NAT=m +CONFIG_NF_NAT_NEEDED=y +CONFIG_NF_NAT_FTP=m +CONFIG_NF_NAT_IRC=m +CONFIG_NF_NAT_SIP=m +CONFIG_NETFILTER_TPROXY=m +CONFIG_NETFILTER_XTABLES=m +CONFIG_NETFILTER_XT_MARK=m +CONFIG_NETFILTER_XT_CONNMARK=m +CONFIG_NETFILTER_XT_TARGET_CHECKSUM=m +CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m +CONFIG_NETFILTER_XT_TARGET_CONNMARK=m +CONFIG_NETFILTER_XT_TARGET_CT=m +CONFIG_NETFILTER_XT_TARGET_DSCP=m +CONFIG_NETFILTER_XT_TARGET_HL=m +CONFIG_NETFILTER_XT_TARGET_HMARK=m +CONFIG_NETFILTER_XT_TARGET_IDLETIMER=m +CONFIG_NETFILTER_XT_TARGET_LED=m +CONFIG_NETFILTER_XT_TARGET_LOG=m +CONFIG_NETFILTER_XT_TARGET_MARK=m +CONFIG_NETFILTER_XT_TARGET_NFLOG=m +CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m +CONFIG_NETFILTER_XT_TARGET_NOTRACK=m +CONFIG_NETFILTER_XT_TARGET_RATEEST=m +CONFIG_NETFILTER_XT_TARGET_REDIRECT=m +CONFIG_NETFILTER_XT_TARGET_TEE=m +CONFIG_NETFILTER_XT_TARGET_TPROXY=m +CONFIG_NETFILTER_XT_TARGET_TRACE=m +CONFIG_NETFILTER_XT_TARGET_TCPMSS=m +CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m +CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m +CONFIG_NETFILTER_XT_MATCH_COMMENT=m +CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m +CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m +CONFIG_NETFILTER_XT_MATCH_CONNMARK=m +CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m +CONFIG_NETFILTER_XT_MATCH_DEVGROUP=m +CONFIG_NETFILTER_XT_MATCH_DSCP=m +CONFIG_NETFILTER_XT_MATCH_ECN=m +CONFIG_NETFILTER_XT_MATCH_ESP=m +CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m +CONFIG_NETFILTER_XT_MATCH_HELPER=m +CONFIG_NETFILTER_XT_MATCH_HL=m +CONFIG_NETFILTER_XT_MATCH_IPRANGE=m +CONFIG_NETFILTER_XT_MATCH_LENGTH=m +CONFIG_NETFILTER_XT_MATCH_LIMIT=m +CONFIG_NETFILTER_XT_MATCH_MAC=m +CONFIG_NETFILTER_XT_MATCH_MARK=m +CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m +CONFIG_NETFILTER_XT_MATCH_NFACCT=m +CONFIG_NETFILTER_XT_MATCH_OSF=m +CONFIG_NETFILTER_XT_MATCH_OWNER=m +CONFIG_NETFILTER_XT_MATCH_POLICY=m +CONFIG_NETFILTER_XT_MATCH_PHYSDEV=m +CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m +CONFIG_NETFILTER_XT_MATCH_QUOTA=m +CONFIG_NETFILTER_XT_MATCH_RATEEST=m +CONFIG_NETFILTER_XT_MATCH_REALM=m +CONFIG_NETFILTER_XT_MATCH_RECENT=m +ONFIG_IP_VS=n +CONFIG_NETFILTER_XT_MATCH_SOCKET=m +CONFIG_NETFILTER_XT_MATCH_STATE=m +CONFIG_NETFILTER_XT_MATCH_STATISTIC=m +CONFIG_NETFILTER_XT_MATCH_STRING=m +CONFIG_NETFILTER_XT_MATCH_TCPMSS=m +CONFIG_NETFILTER_XT_MATCH_TIME=m +CONFIG_NETFILTER_XT_MATCH_U32=m +CONFIG_IP_SET=m +CONFIG_IP_SET_MAX=256 +CONFIG_IP_SET_BITMAP_IP=m +CONFIG_IP_SET_BITMAP_IPMAC=m +CONFIG_IP_SET_BITMAP_PORT=m +CONFIG_IP_SET_HASH_IP=m +CONFIG_IP_SET_HASH_IPPORT=m +CONFIG_IP_SET_HASH_IPPORTIP=m +CONFIG_IP_SET_HASH_IPPORTNET=m +CONFIG_IP_SET_HASH_NET=m +CONFIG_IP_SET_HASH_NETPORT=m +CONFIG_IP_SET_HASH_NETIFACE=m +CONFIG_IP_SET_LIST_SET=m +CONFIG_NF_DEFRAG_IPV4=m +CONFIG_NF_CONNTRACK_IPV4=m +CONFIG_NF_CONNTRACK_PROC_COMPAT=y +CONFIG_IP_NF_QUEUE=m +CONFIG_IP_NF_IPTABLES=m +CONFIG_IP_NF_MATCH_AH=m +CONFIG_IP_NF_FILTER=m +CONFIG_IP_NF_TARGET_REJECT=m +CONFIG_IP_NF_TARGET_ULOG=m +CONFIG_NF_NAT_IPV4=m +CONFIG_IP_NF_TARGET_MASQUERADE=m +CONFIG_IP_NF_TARGET_REDIRECT=m +CONFIG_NF_NAT_PROTO_GRE=m +CONFIG_NF_NAT_PPTP=m +CONFIG_NF_NAT_H323=m +CONFIG_IP_NF_MANGLE=m +CONFIG_IP_NF_TARGET_ECN=m +CONFIG_IP_NF_TARGET_TTL=m +CONFIG_IP_NF_RAW=m +CONFIG_NF_DEFRAG_IPV6=m +CONFIG_NF_CONNTRACK_IPV6=m +CONFIG_IP6_NF_IPTABLES=m +CONFIG_IP6_NF_MATCH_AH=m +CONFIG_IP6_NF_MATCH_EUI64=m +CONFIG_IP6_NF_MANGLE=m +CONFIG_IP6_NF_RAW=m +CONFIG_IP6_NF_SECURITY=m +CONFIG_NF_NAT_IPV6=m +CONFIG_IP6_NF_TARGET_MASQUERADE=m +CONFIG_IP6_NF_TARGET_NPT=m +CONFIG_BRIDGE_NF_EBTABLES=m +CONFIG_BRIDGE_EBT_BROUTE=m +CONFIG_BRIDGE_EBT_T_FILTER=m +CONFIG_BRIDGE_EBT_T_NAT=m +CONFIG_BRIDGE_EBT_802_3=m +CONFIG_BRIDGE_EBT_AMONG=m +CONFIG_BRIDGE_EBT_ARP=m +CONFIG_BRIDGE_EBT_IP=m +CONFIG_BRIDGE_EBT_IP6=m +CONFIG_BRIDGE_EBT_LIMIT=m +CONFIG_BRIDGE_EBT_MARK=m +CONFIG_BRIDGE_EBT_PKTTYPE=m +CONFIG_BRIDGE_EBT_STP=m +CONFIG_BRIDGE_EBT_VLAN=m +CONFIG_BRIDGE_EBT_ARPREPLY=m +CONFIG_BRIDGE_EBT_DNAT=m +CONFIG_BRIDGE_EBT_MARK_T=m +CONFIG_BRIDGE_EBT_REDIRECT=m +CONFIG_BRIDGE_EBT_SNAT=m +CONFIG_BRIDGE_EBT_LOG=m +CONFIG_BRIDGE_EBT_ULOG=m +CONFIG_BRIDGE_EBT_NFLOG=m +CONFIG_FB_DEFERRED_IO=y +CONFIG_FB_MODE_HELPERS=y +CONFIG_FB_TILEBLITTING=y +CONFIG_USB_CYTHERM=m +CONFIG_USB_IDMOUSE=m +CONFIG_USB_FTDI_ELAN=m +CONFIG_USB_LD=m +CONFIG_USB_TRANCEVIBRATOR=m +CONFIG_DECOMPRESS_GZIP=y +CONFIG_GENERIC_ALLOCATOR=y +CONFIG_TEXTSEARCH=y +CONFIG_TEXTSEARCH_KMP=m +CONFIG_TEXTSEARCH_BM=m +CONFIG_TEXTSEARCH_FSM=m +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT=y +CONFIG_HAS_DMA=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-ipv4.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-ipv4.cfg new file mode 100644 index 0000000..be24cf7 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-ipv4.cfg @@ -0,0 +1,14 @@ +CONFIG_NF_NAT=m +CONFIG_NF_NAT_NEEDED=y +CONFIG_NF_NAT_PROTO_UDPLITE=m +CONFIG_NF_NAT_PROTO_SCTP=m +CONFIG_NF_NAT_AMANDA=m +CONFIG_NF_NAT_FTP=m +CONFIG_NF_NAT_IRC=m +CONFIG_NF_NAT_SIP=m +CONFIG_NF_NAT_TFTP=m +CONFIG_NF_NAT_IPV4=m +CONFIG_IP_NF_TARGET_MASQUERADE=m +CONFIG_NF_NAT_PROTO_GRE=m +CONFIG_NF_NAT_PPTP=m +CONFIG_NF_NAT_H323=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-small-3.8.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-small-3.8.cfg new file mode 100644 index 0000000..e9b71c4 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/netfilter-small-3.8.cfg @@ -0,0 +1,23 @@ +CONFIG_NETFILTER=y +CONFIG_NETFILTER_ADVANCED=y +CONFIG_BRIDGE_NETFILTER=y +CONFIG_NETFILTER_NETLINK=m +CONFIG_NETFILTER_NETLINK_ACCT=m +CONFIG_NF_CONNTRACK=m +CONFIG_NF_CONNTRACK_PROCFS=y +CONFIG_NF_NAT=m +CONFIG_NF_NAT_NEEDED=y +CONFIG_NETFILTER_XTABLES=m +CONFIG_NF_DEFRAG_IPV4=m +CONFIG_NF_CONNTRACK_IPV4=m +CONFIG_NF_CONNTRACK_PROC_COMPAT=y +CONFIG_IP_NF_IPTABLES=m +CONFIG_IP_NF_FILTER=m +CONFIG_NF_NAT_IPV4=m +CONFIG_IP_NF_TARGET_MASQUERADE=m +CONFIG_IP_MULTIPLE_TABLES=y +CONFIG_NETFILTER_NETLINK_ACCT=m +CONFIG_NETFILTER_XT_MATCH_NFACCT=m +CONFIG_NETFILTER_XT_CONNMARK=m +CONFIG_NETFILTER_XT_TARGET_CONNMARK=m +CONFIG_NETFILTER_XT_MATCH_CONNMARK=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/nfacct.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/nfacct.cfg new file mode 100644 index 0000000..2d9787f --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/nfacct.cfg @@ -0,0 +1,2 @@ +CONFIG_NETFILTER_NETLINK_ACCT=m +CONFIG_NETFILTER_XT_MATCH_NFACCT=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/nfc-3.4.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/nfc-3.4.cfg new file mode 100644 index 0000000..af3fd46 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/nfc-3.4.cfg @@ -0,0 +1,5 @@ +CONFIG_NFC=m +CONFIG_NFC_NCI=m +CONFIG_NFC_LLCP=y +CONFIG_PN544_NFC=m +CONFIG_NFC_PN533=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/nfc.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/nfc.cfg new file mode 100644 index 0000000..9ff3db6 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/nfc.cfg @@ -0,0 +1,7 @@ +CONFIG_NFC=m +CONFIG_NFC_NCI=m +CONFIG_NFC_HCI=m +CONFIG_NFC_SHDLC=y +CONFIG_NFC_LLCP=y +CONFIG_PN544_HCI_NFC=m +CONFIG_NFC_PN533=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/nokia-phonet.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/nokia-phonet.cfg new file mode 100644 index 0000000..dde96ab --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/nokia-phonet.cfg @@ -0,0 +1,2 @@ +CONFIG_PHONET=m +CONFIG_USB_CDC_PHONET=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/rfkill.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/rfkill.cfg new file mode 100644 index 0000000..428c0a5 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/rfkill.cfg @@ -0,0 +1,3 @@ +CONFIG_RFKILL=m +CONFIG_RFKILL_LEDS=y +CONFIG_RFKILL_INPUT=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/tun-device.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/tun-device.cfg new file mode 100644 index 0000000..d89a52f --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/tun-device.cfg @@ -0,0 +1 @@ +CONFIG_TUN=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/usb-eth-gadget.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/usb-eth-gadget.cfg new file mode 100644 index 0000000..b05042c --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/usb-eth-gadget.cfg @@ -0,0 +1,3 @@ +CONFIG_USB_ETH=m +CONFIG_USB_ETH_RNDIS=y +CONFIG_USB_MASS_STORAGE=n \ No newline at end of file diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/usb-net-3.10.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/usb-net-3.10.cfg new file mode 100644 index 0000000..b9c3f34 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/usb-net-3.10.cfg @@ -0,0 +1,22 @@ +CONFIG_USB_USBNET=m +CONFIG_USB_NET_AX8817X=m +CONFIG_USB_NET_CDCETHER=m +CONFIG_USB_NET_CDC_EEM=m +CONFIG_USB_NET_CDC_NCM=m +CONFIG_USB_NET_DM9601=m +CONFIG_USB_NET_SMSC75XX=m +CONFIG_USB_NET_SMSC95XX=m +CONFIG_USB_NET_NET1080=m +CONFIG_USB_NET_PLUSB=m +CONFIG_USB_NET_MCS7830=m +CONFIG_USB_NET_CDC_SUBSET=m +CONFIG_USB_NET_ZAURUS=m +CONFIG_USB_NET_INT51X1=m +CONFIG_USB_RTL8152=m +CONFIG_USB_NET_CDC_MBIM=m +CONFIG_USB_NET_KALMIA=m +CONFIG_USB_NET_QMI_WWAN=m +CONFIG_USB_SIERRA_NET=m +CONFIG_USB_VL600=m +CONFIG_USB_ACM=m +CONFIG_USB_WDM=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/usb-net.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/usb-net.cfg new file mode 100644 index 0000000..45da619 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/usb-net.cfg @@ -0,0 +1,14 @@ +CONFIG_USB_USBNET=m +CONFIG_USB_NET_AX8817X=m +CONFIG_USB_NET_CDCETHER=m +CONFIG_USB_NET_CDC_EEM=m +CONFIG_USB_NET_CDC_NCM=m +CONFIG_USB_NET_DM9601=m +CONFIG_USB_NET_SMSC75XX=m +CONFIG_USB_NET_SMSC95XX=m +CONFIG_USB_NET_NET1080=m +CONFIG_USB_NET_PLUSB=m +CONFIG_USB_NET_MCS7830=m +CONFIG_USB_NET_CDC_SUBSET=m +CONFIG_USB_NET_ZAURUS=m +CONFIG_USB_NET_INT51X1=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/usb-serial.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/usb-serial.cfg new file mode 100644 index 0000000..5f1134f --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/usb-serial.cfg @@ -0,0 +1,8 @@ +CONFIG_USB_SERIAL=m +CONFIG_USB_SERIAL_GENERIC=y +CONFIG_USB_SERIAL_IPW=m +CONFIG_USB_SERIAL_MOTOROLA=m +CONFIG_USB_SERIAL_QUALCOMM=m +CONFIG_USB_SERIAL_SIERRAWIRELESS=m +CONFIG_USB_SERIAL_WWAN=m +CONFIG_USB_SERIAL_OPTION=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-atheros-3.4.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-atheros-3.4.cfg new file mode 100644 index 0000000..d4f7456 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-atheros-3.4.cfg @@ -0,0 +1,14 @@ +CONFIG_MAC80211_LEDS=y +CONFIG_ATH_COMMON=m +CONFIG_ATH9K_HW=m +CONFIG_ATH9K_COMMON=m +CONFIG_ATH9K_BTCOEX_SUPPORT=y +CONFIG_ATH9K=m +CONFIG_ATH9K_RATE_CONTROL=y +CONFIG_ATH9K_HTC=m +CONFIG_CARL9170=m +CONFIG_CARL9170_LEDS=y +CONFIG_CARL9170_WPC=y +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=m +CONFIG_LEDS_TRIGGERS=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-atheros.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-atheros.cfg new file mode 100644 index 0000000..5647351 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-atheros.cfg @@ -0,0 +1,21 @@ +CONFIG_ATH_COMMON=m +CONFIG_ATH_CARDS=m +CONFIG_ATH5K=m +CONFIG_ATH5K_PCI=y +CONFIG_ATH9K_HW=m +CONFIG_ATH9K_COMMON=m +CONFIG_ATH9K_BTCOEX_SUPPORT=y +CONFIG_ATH9K=m +CONFIG_ATH9K_PCI=y +CONFIG_ATH9K_AHB=y +CONFIG_ATH9K_RATE_CONTROL=y +CONFIG_ATH9K_HTC=m +CONFIG_CARL9170=m +CONFIG_CARL9170_LEDS=y +CONFIG_CARL9170_WPC=y +CONFIG_ATH6KL=m +CONFIG_ATH6KL_SDIO=m +CONFIG_ATH6KL_USB=m +CONFIG_AR5523=m +CONFIG_WIL6210=m +CONFIG_WIL6210_ISR_COR=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-broadcom.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-broadcom.cfg new file mode 100644 index 0000000..3361e8b --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-broadcom.cfg @@ -0,0 +1,24 @@ +CONFIG_B43=m +CONFIG_B43_SSB=y +CONFIG_B43_PCI_AUTOSELECT=y +CONFIG_B43_PCICORE_AUTOSELECT=y +CONFIG_B43_SDIO=y +CONFIG_B43_PIO=y +CONFIG_B43_PHY_LP=y +CONFIG_B43_PHY_HT=y +CONFIG_B43_LEDS=y +CONFIG_B43_HWRNG=y +CONFIG_BRCMUTIL=m +CONFIG_BRCMFMAC=m +CONFIG_BRCMFMAC_SDIO=y +CONFIG_BRCMFMAC_USB=y +CONFIG_SSB=m +CONFIG_SSB_SPROM=y +CONFIG_SSB_BLOCKIO=y +CONFIG_SSB_PCIHOST_POSSIBLE=y +CONFIG_SSB_PCIHOST=y +CONFIG_SSB_B43_PCI_BRIDGE=y +CONFIG_SSB_SDIOHOST_POSSIBLE=y +CONFIG_SSB_SDIOHOST=y +CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y +CONFIG_SSB_DRIVER_PCICORE=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-intel-3.10.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-intel-3.10.cfg new file mode 100644 index 0000000..4a7337a --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-intel-3.10.cfg @@ -0,0 +1,4 @@ +CONFIG_IWLWIFI=m +CONFIG_IWLDVM=m +CONFIG_IWLMVM=m +CONFIG_IWLWIFI_P2P=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-intel.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-intel.cfg new file mode 100644 index 0000000..80f0eb5 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-intel.cfg @@ -0,0 +1,3 @@ +CONFIG_IWLWIFI=m +CONFIG_IWLDVM=m +CONFIG_IWLWIFI_P2P=y diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-marwel.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-marwel.cfg new file mode 100644 index 0000000..b6b737b --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-marwel.cfg @@ -0,0 +1,4 @@ +CONFIG_MWIFIEX=m +CONFIG_MWIFIEX_SDIO=m +CONFIG_MWIFIEX_PCIE=m +CONFIG_MWIFIEX_USB=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-ralink.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-ralink.cfg new file mode 100644 index 0000000..82da88e --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-ralink.cfg @@ -0,0 +1,15 @@ +CONFIG_RT2X00=m +CONFIG_RT2500USB=m +CONFIG_RT73USB=m +CONFIG_RT2800USB=m +CONFIG_RT2800USB_RT33XX=y +CONFIG_RT2800USB_RT35XX=y +CONFIG_RT2800USB_RT53XX=y +CONFIG_RT2800USB_RT55XX=y +CONFIG_RT2800USB_UNKNOWN=y +CONFIG_RT2800_LIB=m +CONFIG_RT2X00_LIB_USB=m +CONFIG_RT2X00_LIB=m +CONFIG_RT2X00_LIB_FIRMWARE=y +CONFIG_RT2X00_LIB_CRYPTO=y +CONFIG_CRC_ITU_T=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-realtek-3.4.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-realtek-3.4.cfg new file mode 100644 index 0000000..5f0f1c6 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-realtek-3.4.cfg @@ -0,0 +1,6 @@ +CONFIG_EEPROM_93CX6=m +CONFIG_RTL8187=m +CONFIG_RTL8192CU=m +CONFIG_RTLWIFI=m +CONFIG_RTLWIFI_DEBUG=y +CONFIG_RTL8192C_COMMON=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-realtek.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-realtek.cfg new file mode 100644 index 0000000..d762950 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-realtek.cfg @@ -0,0 +1,11 @@ +CONFIG_EEPROM_93CX6=m +CONFIG_RTL8187=m +CONFIG_RTL8192CU=m +CONFIG_RTLWIFI=m +CONFIG_RTLWIFI_DEBUG=y +CONFIG_RTL8192C_COMMON=m +CONFIG_RTL8192CE=m +CONFIG_RTL8192SE=m +CONFIG_RTL8192DE=m +CONFIG_RTL8723AE=m +CONFIG_RTL8188EE=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-ti.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-ti.cfg new file mode 100644 index 0000000..22d52f5 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-ti.cfg @@ -0,0 +1,9 @@ +CONFIG_WL_TI=y +CONFIG_WL1251=m +CONFIG_WL1251_SDIO=m +CONFIG_WL12XX=m +CONFIG_WL18XX=m +CONFIG_WLCORE=m +CONFIG_WLCORE_SDIO=m +CONFIG_WL12XX_PLATFORM_DATA=y +CONFIG_CRC7=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-zydas-3.4.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-zydas-3.4.cfg new file mode 100644 index 0000000..f9f4f3c --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-zydas-3.4.cfg @@ -0,0 +1,4 @@ +CONFIG_WIRELESS_EXT=y +CONFIG_WEXT_PRIV=y +CONFIG_USB_ZD1201=m +CONFIG_ZD1211RW=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto/wlan-zydas.cfg b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-zydas.cfg new file mode 100644 index 0000000..72dcdec --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto/wlan-zydas.cfg @@ -0,0 +1 @@ +CONFIG_ZD1211RW=m diff --git a/meta-eca/recipes-kernel/linux/linux-yocto_3.10.bbappend b/meta-eca/recipes-kernel/linux/linux-yocto_3.10.bbappend new file mode 100644 index 0000000..6a1ab3c --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto_3.10.bbappend @@ -0,0 +1,27 @@ +# find defconfig path +FILESEXTRAPATHS := "${THISDIR}/${PN}" + +SRC_URI += " \ + file://wlan-atheros.cfg \ + file://wlan-ralink.cfg \ + file://wlan-realtek.cfg \ + file://wlan-broadcom.cfg \ + file://wlan-zydas.cfg \ + file://wlan-marwel.cfg \ + file://wlan-ti.cfg \ + file://wlan-intel-3.10.cfg \ + file://bluetooth.cfg \ + file://nokia-phonet.cfg \ + file://usb-serial.cfg \ + file://tun-device.cfg \ + file://l2tp.cfg \ + file://rfkill.cfg \ + file://mac80211.cfg \ + file://nfc.cfg \ + file://high-speed-mobile-devices.cfg \ + file://netfilter-3.10.cfg \ + file://usb-eth-gadget.cfg \ + file://usb-net-3.10.cfg \ + file://ipv6.cfg \ + file://nfacct.cfg \ +" diff --git a/meta-eca/recipes-kernel/linux/linux-yocto_3.14.bbappend b/meta-eca/recipes-kernel/linux/linux-yocto_3.14.bbappend new file mode 100644 index 0000000..6a1ab3c --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto_3.14.bbappend @@ -0,0 +1,27 @@ +# find defconfig path +FILESEXTRAPATHS := "${THISDIR}/${PN}" + +SRC_URI += " \ + file://wlan-atheros.cfg \ + file://wlan-ralink.cfg \ + file://wlan-realtek.cfg \ + file://wlan-broadcom.cfg \ + file://wlan-zydas.cfg \ + file://wlan-marwel.cfg \ + file://wlan-ti.cfg \ + file://wlan-intel-3.10.cfg \ + file://bluetooth.cfg \ + file://nokia-phonet.cfg \ + file://usb-serial.cfg \ + file://tun-device.cfg \ + file://l2tp.cfg \ + file://rfkill.cfg \ + file://mac80211.cfg \ + file://nfc.cfg \ + file://high-speed-mobile-devices.cfg \ + file://netfilter-3.10.cfg \ + file://usb-eth-gadget.cfg \ + file://usb-net-3.10.cfg \ + file://ipv6.cfg \ + file://nfacct.cfg \ +" diff --git a/meta-eca/recipes-kernel/linux/linux-yocto_3.4.bbappend b/meta-eca/recipes-kernel/linux/linux-yocto_3.4.bbappend new file mode 100644 index 0000000..451a133 --- /dev/null +++ b/meta-eca/recipes-kernel/linux/linux-yocto_3.4.bbappend @@ -0,0 +1,19 @@ +# find defconfig path +FILESEXTRAPATHS := "${THISDIR}/${PN}" + +SRC_URI += " \ + file://wlan-atheros-3.4.cfg \ + file://wlan-ralink.cfg \ + file://wlan-realtek-3.4.cfg \ + file://wlan-zydas.cfg \ + file://bluetooth.cfg \ + file://nokia-phonet.cfg \ + file://usb-serial.cfg \ + file://tun-device.cfg \ + file://usb-eth-gadget.cfg \ + file://usb-net.cfg \ + file://rfkill.cfg \ + file://ipv6.cfg \ + file://nfc-3.4.cfg \ + file://nfacct.cfg \ +" diff --git a/meta-eca/recipes-multimedia/pulseaudio/files/0001-configure.ac-Check-only-for-libsystemd-not-libsystem.patch b/meta-eca/recipes-multimedia/pulseaudio/files/0001-configure.ac-Check-only-for-libsystemd-not-libsystem.patch new file mode 100644 index 0000000..467cd2c --- /dev/null +++ b/meta-eca/recipes-multimedia/pulseaudio/files/0001-configure.ac-Check-only-for-libsystemd-not-libsystem.patch @@ -0,0 +1,30 @@ +From 002b16f0f2176b4c685e210e335bf69c02563ede Mon Sep 17 00:00:00 2001 +From: Martin Jansa +Date: Sat, 22 Feb 2014 18:03:10 +0100 +Subject: [PATCH] configure.ac: Check only for libsystemd not libsystemd-login + +* they were merged into libsystemd in systemd-209 + +Upstream-Status: Pending (it would need to be conditional on systemd version for upstream to accept this) + +Signed-off-by: Martin Jansa +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 388fae2..fff7a83 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1160,7 +1160,7 @@ AC_ARG_ENABLE([systemd], + AS_HELP_STRING([--disable-systemd],[Disable optional systemd support])) + + AS_IF([test "x$enable_systemd" != "xno"], +- [PKG_CHECK_MODULES(SYSTEMD, [ libsystemd-login ], HAVE_SYSTEMD=1, HAVE_SYSTEMD=0)], ++ [PKG_CHECK_MODULES(SYSTEMD, [ libsystemd ], HAVE_SYSTEMD=1, HAVE_SYSTEMD=0)], + HAVE_SYSTEMD=0) + + AS_IF([test "x$enable_systemd" = "xyes" && test "x$HAVE_SYSTEMD" = "x0"], +-- +1.8.5.3 + diff --git a/meta-eca/recipes-multimedia/pulseaudio/files/volatiles.04_pulse b/meta-eca/recipes-multimedia/pulseaudio/files/volatiles.04_pulse new file mode 100644 index 0000000..5b19980 --- /dev/null +++ b/meta-eca/recipes-multimedia/pulseaudio/files/volatiles.04_pulse @@ -0,0 +1,2 @@ +# +d pulse pulse 0755 /var/run/pulse none diff --git a/meta-eca/recipes-multimedia/pulseaudio/pulseaudio_git.bb b/meta-eca/recipes-multimedia/pulseaudio/pulseaudio_git.bb new file mode 100644 index 0000000..be6a730 --- /dev/null +++ b/meta-eca/recipes-multimedia/pulseaudio/pulseaudio_git.bb @@ -0,0 +1,23 @@ +# Recipe for Pulseaudio that uses bluez5 + +PACKAGECONFIG = "${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \ + ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ + ${@base_contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ + ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" + +require recipes-multimedia/pulseaudio/pulseaudio.inc + +PV="5.0" + +SRC_URI = "http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${PV}.tar.xz \ + file://0001-configure.ac-Check-only-for-libsystemd-not-libsystem.patch \ + file://volatiles.04_pulse" + +SRC_URI[md5sum] = "c43749838612f4860465e83ed62ca38e" +SRC_URI[sha256sum] = "99c13a8b1249ddbd724f195579df79484e9af6418cecf6a15f003a7f36caf939" + +do_compile_prepend() { + mkdir -p ${S}/libltdl + cp ${STAGING_LIBDIR}/libltdl* ${S}/libltdl +} + diff --git a/meta-eca/recipes-support/libusb/libusb1_%.bbappend b/meta-eca/recipes-support/libusb/libusb1_%.bbappend new file mode 100644 index 0000000..e0dbeac --- /dev/null +++ b/meta-eca/recipes-support/libusb/libusb1_%.bbappend @@ -0,0 +1,5 @@ +# node.js npm needs libusb.h but it's components do not search +# the header from correct place +do_install_append() { + cp ${D}/usr/include/libusb-1.0/libusb.h ${D}/usr/include/libusb.h +} diff --git a/meta-eca/recipes-web/eca-web/eca-web_0.1.bb b/meta-eca/recipes-web/eca-web/eca-web_0.1.bb new file mode 100644 index 0000000..494f2a3 --- /dev/null +++ b/meta-eca/recipes-web/eca-web/eca-web_0.1.bb @@ -0,0 +1,49 @@ +DESCRIPTION = "Simple web UI for Embedded Connectivity Appliance" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e" + +SRCREV_default_pn-eca-web ?= "${AUTOREV}" +SRC_URI = "\ + git://github.com/jukkar/eca-web.git \ + file://eca-web.service \ + file://start-eca-web \ + file://config \ +" + +SRC_URI[md5sum] = "71469efd6798ea62c788db34d8da0a93" +SRC_URI[sha256sum] = "bc08d8345854c4ec6740bcef6d563fb3f8317f9a6a4b47ba327454a3b75f4afc" + +S = "${WORKDIR}/git" +PR = "r0" + +PREFIX ?= "/opt/eca-web" + +EXTRA_OECONF += "\ + --prefix=${PREFIX} \ + --sysconfdir=/etc \ +" + +inherit autotools +inherit systemd + +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE_${PN} = "eca-web.service" + +FILES_${PN} = " \ + eca-web.service \ + start-eca-web \ + /opt/eca-web/* \ + ${sysconfdir}/${PN} \ + ${systemd_unitdir}/system/${PN}.service \ +" + +RDEPENDS_${PN} = "webpy" + +do_install_append() { + install -d ${D}${systemd_unitdir}/system + install -m 0755 ${WORKDIR}/eca-web.service ${D}${systemd_unitdir}/system + install -d ${D}${sysconfdir}/${PN} + install -m 0644 ${WORKDIR}/config ${D}${sysconfdir}/${PN} + install -m 0755 ${WORKDIR}/start-eca-web ${D}${PREFIX} +} + diff --git a/meta-eca/recipes-web/eca-web/files/COPYING b/meta-eca/recipes-web/eca-web/files/COPYING new file mode 100644 index 0000000..6d45519 --- /dev/null +++ b/meta-eca/recipes-web/eca-web/files/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/meta-eca/recipes-web/eca-web/files/config b/meta-eca/recipes-web/eca-web/files/config new file mode 100644 index 0000000..007e095 --- /dev/null +++ b/meta-eca/recipes-web/eca-web/files/config @@ -0,0 +1,4 @@ +# Configuration options for eca web UI + +# The port where the UI should be listening +PORT=80 diff --git a/meta-eca/recipes-web/eca-web/files/eca-web.service b/meta-eca/recipes-web/eca-web/files/eca-web.service new file mode 100644 index 0000000..5c9fdfb --- /dev/null +++ b/meta-eca/recipes-web/eca-web/files/eca-web.service @@ -0,0 +1,12 @@ +[Unit] +Description=Simple web UI for Embedded Connectivity Appliance +After=syslog.target + +[Service] +Type=simple +EnvironmentFile=/etc/eca-web/config +ExecStart=/opt/eca-web/start-eca-web $PORT +Restart=on-failure + +[Install] +WantedBy=multi-user.target diff --git a/meta-eca/recipes-web/eca-web/files/start-eca-web b/meta-eca/recipes-web/eca-web/files/start-eca-web new file mode 100755 index 0000000..95871cc --- /dev/null +++ b/meta-eca/recipes-web/eca-web/files/start-eca-web @@ -0,0 +1,13 @@ +#!/bin/sh + +DIR=`dirname $0` + +if [ ! -f $DIR/eca.py ]; then + echo "$0: Cannot find $DIR/eca.py" + exit -1 +fi + +cd $DIR +/usr/bin/env python $DIR/eca.py $@ +exit $? + diff --git a/meta-eca/recipes-web/webpy/webpy_0.37.bb b/meta-eca/recipes-web/webpy/webpy_0.37.bb new file mode 100644 index 0000000..7ca73d5 --- /dev/null +++ b/meta-eca/recipes-web/webpy/webpy_0.37.bb @@ -0,0 +1,18 @@ +DESCRIPTION = "web.py: makes web apps" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=98bdd61465b0278f5e6b8e81a0c981f2" +PR = "r0" + +# 0.37 tag +SRCREV = "7a08b0636a15d592e0a04e7adabe48abdb262b0a" +SRC_URI = "\ + git://github.com/webpy/webpy.git \ +" +S = "${WORKDIR}/git" + +inherit distutils + +RDEPENDS_${PN} = "\ + python-netserver \ + python-compiler \ +" diff --git a/meta-iot/conf/layer.conf b/meta-iot/conf/layer.conf new file mode 100644 index 0000000..b393f3d --- /dev/null +++ b/meta-iot/conf/layer.conf @@ -0,0 +1,12 @@ +BBPATH ?= "" +# We add conf directory to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have a recipes directory containing .bb and .bbappend files, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "iot" +BBFILE_PATTERN_iot := "^${LAYERDIR}/" +BBFILE_PRIORITY_iot = "7" + diff --git a/meta-iot/recipes-connectivity/avahi/avahi-daemon-init.bb b/meta-iot/recipes-connectivity/avahi/avahi-daemon-init.bb new file mode 100644 index 0000000..767ba18 --- /dev/null +++ b/meta-iot/recipes-connectivity/avahi/avahi-daemon-init.bb @@ -0,0 +1,31 @@ +SUMMARY = "Initialization service for Avahi daemon" +DESCRIPTION = "Initializes Avahi daemon service." + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.avahi-daemon-init;md5=2fe93140f8c4e56b56fbcd64730767a4" + +FILESEXTRAPATHS := "${THISDIR}/${PN}" +SRC_URI = "\ + file://avahi-daemon-init-settings.sh \ + file://avahi-daemon-init.service \ + file://LICENSE.avahi-daemon-init \ +" + +S = "${WORKDIR}" +PR = "r2" + +inherit systemd +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE_${PN} = " avahi-daemon-init.service" + +FILES_${PN} = "\ + avahi-daemon-init.service \ + ${bindir}/avahi-daemon-init-settings.sh \ +" + +do_install() { + install -d ${D}${bindir} + install -d ${D}${systemd_unitdir}/system + install -m 0755 ${WORKDIR}/avahi-daemon-init-settings.sh ${D}${bindir}/ + install -m 0755 ${WORKDIR}/avahi-daemon-init.service ${D}${systemd_unitdir}/system +} diff --git a/meta-iot/recipes-connectivity/avahi/avahi-daemon-init/LICENSE.avahi-daemon-init b/meta-iot/recipes-connectivity/avahi/avahi-daemon-init/LICENSE.avahi-daemon-init new file mode 100644 index 0000000..0388698 --- /dev/null +++ b/meta-iot/recipes-connectivity/avahi/avahi-daemon-init/LICENSE.avahi-daemon-init @@ -0,0 +1,9 @@ +# LICENSE + +[MIT](http://en.wikipedia.org/wiki/MIT_License) license. Freely have you received, freely give. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/meta-iot/recipes-connectivity/avahi/avahi-daemon-init/avahi-daemon-init-settings.sh b/meta-iot/recipes-connectivity/avahi/avahi-daemon-init/avahi-daemon-init-settings.sh new file mode 100755 index 0000000..3a12e9c --- /dev/null +++ b/meta-iot/recipes-connectivity/avahi/avahi-daemon-init/avahi-daemon-init-settings.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +KERNEL_VERSION=`uname -r | cut -d . -f 1-2` +MAJOR=`echo $KERNEL_VERSION | cut -d . -f 1` +MINOR=`echo $KERNEL_VERSION | cut -d . -f 2` + +if [ "${MAJOR}.`printf '%02d' $MINOR`" \< "3.09" ]; then + # avahi might not start because SO_REUSEPORT might be missing during + # runtime. The symbol is only available from kernel 3.9 onwards. + AVAHI_CONF=/etc/avahi/avahi-daemon.conf + if [ -f $AVAHI_CONF ]; then + sed -i -e "s|^#disallow-other-stacks=.*|disallow-other-stacks=yes|" $AVAHI_CONF + else + echo "[server]" > $AVAHI_CONF + echo "disallow-other-stacks=yes" >> $AVAHI_CONF + fi +fi + +exit 0 + diff --git a/meta-iot/recipes-connectivity/avahi/avahi-daemon-init/avahi-daemon-init.service b/meta-iot/recipes-connectivity/avahi/avahi-daemon-init/avahi-daemon-init.service new file mode 100644 index 0000000..78b3ab3 --- /dev/null +++ b/meta-iot/recipes-connectivity/avahi/avahi-daemon-init/avahi-daemon-init.service @@ -0,0 +1,12 @@ +[Unit] +Description=Initialize avahi-daemon settings +After=syslog.target +Before=avahi-daemon.service + +[Service] +Type=oneshot +ExecStart=-/usr/bin/avahi-daemon-init-settings.sh +StandardOutput=null + +[Install] +WantedBy=steward.service diff --git a/meta-iot/recipes-connectivity/avahi/avahi_0.6.31.bbappend b/meta-iot/recipes-connectivity/avahi/avahi_0.6.31.bbappend new file mode 100644 index 0000000..bff31b6 --- /dev/null +++ b/meta-iot/recipes-connectivity/avahi/avahi_0.6.31.bbappend @@ -0,0 +1,10 @@ +# TheThingSystem steward needs avahi compat headers +EXTRA_OECONF += "\ + --enable-compat-libdns_sd \ +" + +# node.js npm needs dns_sd.h but it's components do not search +# the header from correct place +do_install_append() { + cp ${D}/usr/include/avahi-compat-libdns_sd/dns_sd.h ${D}/usr/include/dns_sd.h +} diff --git a/meta-iot/recipes-web/the-thing-system/steward-init.bb b/meta-iot/recipes-web/the-thing-system/steward-init.bb new file mode 100644 index 0000000..3f58251 --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward-init.bb @@ -0,0 +1,40 @@ +SUMMARY = "Initialization service for TheThingSystem steward" +DESCRIPTION = "Initializes TheThingSystem steward services." + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.steward-init;md5=2fe93140f8c4e56b56fbcd64730767a4" + +SRC_URI = "\ + file://steward-init-settings.sh \ + file://steward-init.service.in \ + file://LICENSE.steward-init \ +" + +S = "${WORKDIR}" +PR = "r2" + +THE_THING_SYSTEM ?= "/opt/TheThingSystem" + +inherit systemd +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE_${PN} = "steward-init.service" + +FILES_${PN} = "\ + ${THE_THING_SYSTEM}/steward/* \ + ${sysconfdir}/TheThingSystem/* \ +" + +do_install() { + install -d ${D}${THE_THING_SYSTEM}/steward + install -d ${D}${systemd_unitdir}/system + install -m 0755 ${WORKDIR}/steward-init-settings.sh ${D}${THE_THING_SYSTEM}/steward + + sed 's,@the_thing_system_dir@,${THE_THING_SYSTEM},g' < ${WORKDIR}/steward-init.service.in \ + > ${D}${systemd_unitdir}/system/steward-init.service + + install -d ${D}/etc/TheThingSystem + echo "# Configuration options for TheThingSystem/steward" > ${D}/etc/TheThingSystem/config + echo "# Generated `date`" >> ${D}/etc/TheThingSystem/config + echo "THE_THING_SYSTEM=${THE_THING_SYSTEM}" >> ${D}/etc/TheThingSystem/config + echo "NODE_PATH=${THE_THING_SYSTEM}/steward" >> ${D}/etc/TheThingSystem/config +} diff --git a/meta-iot/recipes-web/the-thing-system/steward-init/LICENSE.steward-init b/meta-iot/recipes-web/the-thing-system/steward-init/LICENSE.steward-init new file mode 100644 index 0000000..0388698 --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward-init/LICENSE.steward-init @@ -0,0 +1,9 @@ +# LICENSE + +[MIT](http://en.wikipedia.org/wiki/MIT_License) license. Freely have you received, freely give. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/meta-iot/recipes-web/the-thing-system/steward-init/steward-init-settings.sh b/meta-iot/recipes-web/the-thing-system/steward-init/steward-init-settings.sh new file mode 100755 index 0000000..40f75ee --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward-init/steward-init-settings.sh @@ -0,0 +1,62 @@ +#!/bin/sh + +if [ -z "$THE_THING_SYSTEM" ]; then + THE_THING_SYSTEM=/opt/TheThingSystem + export THE_THING_SYSTEM +fi + +STEWARD_DIR=${THE_THING_SYSTEM}/steward +STEWARD_SETTINGS=$STEWARD_DIR/db/server.key + +RET=0 + +if [ -s $STEWARD_SETTINGS ]; then + exit 0 +fi + +# Change the port of the eca-web so that steward web-ui can live in +# port 80. Eca-web will be moved to HTTP port 8080. +sed -i 's/PORT=80$/PORT=8080/' /etc/eca-web/config + +if [ ! -d $STEWARD_DIR/sandbox ]; then + mkdir -p $STEWARD_DIR/sandbox +fi +if [ ! -d $STEWARD_DIR/db ]; then + mkdir -p $STEWARD_DIR/db +fi + +if [ -z "$NODE_PATH" ]; then + NODE_PATH=${THE_THING_SYSTEM}/steward + export NODE_PATH +fi + +cd $THE_THING_SYSTEM/steward + +echo -n "Creating server key..." +rm -f ${STEWARD_DIR}/sandbox/server.crt ${STEWARD_DIR}/sandbox/server.sha1 + +node <&2 + RET=1 +fi + +exit $RET diff --git a/meta-iot/recipes-web/the-thing-system/steward-init/steward-init.service.in b/meta-iot/recipes-web/the-thing-system/steward-init/steward-init.service.in new file mode 100644 index 0000000..feed7f5 --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward-init/steward-init.service.in @@ -0,0 +1,14 @@ +[Unit] +Description=Initialize TheThingSystem steward settings +After=syslog.target +Before=eca-web.service +ConditionFileNotEmpty=!@the_thing_system_dir@/steward/db/server.key + +[Service] +Type=oneshot +EnvironmentFile=-/etc/TheThingSystem/config +ExecStart=-@the_thing_system_dir@/steward/steward-init-settings.sh +StandardOutput=null + +[Install] +WantedBy=steward.service diff --git a/meta-iot/recipes-web/the-thing-system/steward/npm-setup-proxies.example b/meta-iot/recipes-web/the-thing-system/steward/npm-setup-proxies.example new file mode 100644 index 0000000..e52bf27 --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward/npm-setup-proxies.example @@ -0,0 +1,5 @@ +#!/bin/sh + +# Setup proxies +npm config set proxy http://proxy.example.com:8080 +npm config set https-proxy http://proxy.example.com:8080 diff --git a/meta-iot/recipes-web/the-thing-system/steward/package.json b/meta-iot/recipes-web/the-thing-system/steward/package.json new file mode 100644 index 0000000..ff865f2 --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward/package.json @@ -0,0 +1,90 @@ +{ "name" : "node-steward" + , "readmeFilename" : "README.md" + , "version" : "1.5.1" + , "private" : true + , "engines" : + { "node" : ">=0.10.22" + } + , "license" : "MIT" + , "dependencies" : + { "MD5" : "1.0.3" + , "aerogel" : "git://github.com/TheThingSystem/aerogel.git" + , "airplay" : "git://github.com/TheThingSystem/node-airplay.git" + , "arp-a" : "0.3.0" + , "async" : "0.2.9" + , "axiscam" : "0.0.4" + , "automatic-api" : "0.9.3" + , "avahi_pub" : "git://github.com/TheThingSystem/node_avahi_pub.git" + , "blinkstick" : "git://github.com/TheThingSystem/blinkstick-node.git" + , "color-convert" : "0.3.1" + , "colors" : "0.6.2" + , "cosm" : "git://github.com/TheThingSystem/node-cosm.git" + , "cron-parser" : "git://github.com/TheThingSystem/node-cron-parser.git" + , "cycle" : "1.0.2" + , "eureka-dongle" : "0.1.0" + , "flower-power-cloud" : "0.2.0" + , "geocoder" : "0.1.0" + , "greenwave-gop" : "0.0.2" + , "grovestreams-api" : "0.2.3" + , "irobot" : "git://github.com/TheThingSystem/irobot.git" + , "json-stringify-safe" : "4.0.0" + , "koubachi" : "0.0.4" + , "lifx" : "git://github.com/TheThingSystem/lifxjs.git" + , "line-reader" : "0.2.3" + , "lockitron-api" : "0.3.1" + , "longjohn" : "0.2.0" + , "lumen" : "git://github.com/TheThingSystem/node-lumen.git" + , "mdns" : "git://github.com/TheThingSystem/node_mdns.git" + , "mime" : "1.2.9" + , "mqtt" : "git://github.com/TheThingSystem/MQTT.js.git" + , "netmask" : "1.0.4" + , "noble" : "git://github.com/jukkar/noble.git" + , "node-blink1" : "0.1.0" + , "node-cassandra-cql" : "git://github.com/TheThingSystem/node-cassandra-cql.git" + , "node-dweetio" : "0.0.8" + , "node-hid" : "0.2.3" + , "node-lsof" : "git://github.com/TheThingSystem/node-lsof.git" + , "node-netatmo" : "git://github.com/TheThingSystem/node-netatmo.git" + , "notify-my-android" : "0.0.1" + , "node-prowl" : "git://github.com/TheThingSystem/node-prowl.git" + , "node-ssdp" : "git://github.com/TheThingSystem/node-ssdp.git" + , "node-ssh-fingerprint" : "git://github.com/TheThingSystem/node-ssh-fingerprint.git" + , "node-uuid" : "1.4.0" + , "node-winkapi" : "0.1.2" + , "observer" : "1.1.0" + , "openzwave" : "0.0.32" + , "pcap" : "1.2.0" + , "pkginfo" : "0.3.0" + , "pixelpusher" : "0.1.1" + , "polyline-encoded" : "0.0.4" + , "portfinder" : "0.2.1" + , "rfxcom" : "git://github.com/TheThingSystem/node-rfxcom.git" + , "robosmart" : "0.1.1" + , "roku" : "0.2.0" + , "samsung-airconditioner" : "git://github.com/TheThingSystem/node-samsung-airconditioner.git" + , "sensortag" : "git://github.com/sandeepmistry/node-sensortag.git" + , "serialport" : "~1.1.0" + , "soap" : "0.2.7" + , "sonos" : "git://github.com/TheThingSystem/node-sonos.git" + , "speakeasy" : "git://github.com/TheThingSystem/speakeasy.git" + , "sqlite3" : "2.1.7" + , "ssh-keygen" : "git://github.com/TheThingSystem/ssh-keygen.git" + , "stack-trace" : "0.0.6" + , "suncalc" : "1.2.1" + , "teslams" : "0.8.6" + , "underscore" : "1.5.1" + , "unofficial-nest-api" : "git://github.com/TheThingSystem/unofficial_nodejs_nest.git" + , "validator" : "1.1.3" + , "wake_on_lan" : "0.0.3" + , "winston" : "0.6.2" + , "ws" : "git://github.com/TheThingSystem/ws.git" + , "x509-keygen" : "0.2.2" + , "xml2js" : "0.2.7" + , "xml2json" : "0.3.2" + , "xmlbuilder" : "0.4.x" + , "xmldom" : "0.1.x" + , "xmlhttprequest" : "git://github.com/TheThingSystem/node-XMLHttpRequest.git" + , "yoctolib" : "git://github.com/TheThingSystem/yoctolib_nodejs.git" + , "yql" : "git://github.com/TheThingSystem/node-yql.git" + } +} diff --git a/meta-iot/recipes-web/the-thing-system/steward/server.js.in b/meta-iot/recipes-web/the-thing-system/steward/server.js.in new file mode 100644 index 0000000..32f6b82 --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward/server.js.in @@ -0,0 +1,3 @@ +require('@the_thing_system_dir@/steward/core/utility').start(); +require('@the_thing_system_dir@/steward/core/database').start(); +require('@the_thing_system_dir@/steward/core/steward').start(); diff --git a/meta-iot/recipes-web/the-thing-system/steward/start-steward b/meta-iot/recipes-web/the-thing-system/steward/start-steward new file mode 100755 index 0000000..1022656 --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward/start-steward @@ -0,0 +1,22 @@ +#!/bin/sh + +DIR=`dirname $0` + +if [ ! -f $DIR/server.js ]; then + echo "$0: Cannot find $DIR/server.js" + exit -1 +fi + +if [ -z "$THE_THING_SYSTEM" ]; then + THE_THING_SYSTEM=/opt/TheThingSystem + export THE_THING_SYSTEM +fi + +if [ -z "$NODE_PATH" ]; then + NODE_PATH=${THE_THING_SYSTEM}/steward + export NODE_PATH +fi + +cd $DIR +node $DIR/server.js $@ +exit $? diff --git a/meta-iot/recipes-web/the-thing-system/steward/start-steward.debug b/meta-iot/recipes-web/the-thing-system/steward/start-steward.debug new file mode 100755 index 0000000..12c89dc --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward/start-steward.debug @@ -0,0 +1,22 @@ +#!/bin/sh + +DIR=`dirname $0` + +if [ ! -f $DIR/server.js ]; then + echo "$0: Cannot find $DIR/server.js" + exit -1 +fi + +if [ -z "$THE_THING_SYSTEM" ]; then + THE_THING_SYSTEM=/opt/TheThingSystem + export THE_THING_SYSTEM +fi + +if [ -z "$NODE_PATH" ]; then + NODE_PATH=${THE_THING_SYSTEM}/steward + export NODE_PATH +fi + +cd $DIR +DEBUG=hci-ble node $DIR/server.js $@ +exit $? diff --git a/meta-iot/recipes-web/the-thing-system/steward/steward.service.in b/meta-iot/recipes-web/the-thing-system/steward/steward.service.in new file mode 100644 index 0000000..894f29a --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward/steward.service.in @@ -0,0 +1,12 @@ +[Unit] +Description=Steward for TheThingSystem +After=steward-init.service + +[Service] +Type=simple +EnvironmentFile=-/etc/TheThingSystem/config +ExecStart=@the_thing_system_dir@/steward/start-steward +Restart=on-failure + +[Install] +WantedBy=multi-user.target diff --git a/meta-iot/recipes-web/the-thing-system/steward_git.bb b/meta-iot/recipes-web/the-thing-system/steward_git.bb new file mode 100644 index 0000000..616435c --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/steward_git.bb @@ -0,0 +1,131 @@ +DESCRIPTION = "The Thing System steward" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=2fe93140f8c4e56b56fbcd64730767a4" + +SRC_URI = "\ + git://github.com/TheThingSystem/steward.git \ + file://steward.service.in \ + file://start-steward \ + file://start-steward.debug \ + file://server.js.in \ + file://package.json \ +" + +SRCREV = "cc38554aea4bdebcf55d11ca516711abbfc7ec73" +S = "${WORKDIR}/git" +PR = "r9" +PV = "1.7+git${SRCPV}" + +DEPENDS = "tts-nodejs-native" +DEPENDS_${PN} = "\ + libdns-sd-dev \ + libpcap-dev \ + libusb1 \ + libbluetooth-dev \ + ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd-dev', 'libudev-dev', d)} \ +" + +THE_THING_SYSTEM ?= "/opt/TheThingSystem" + +inherit systemd + +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE_${PN} = "steward.service" + +FILES_${PN} = "\ + ${THE_THING_SYSTEM}/* \ + ${libdir} \ +" + +FILES_${PN}-dbg += "\ + ${THE_THING_SYSTEM}/steward/*/*/*/.debug \ + ${THE_THING_SYSTEM}/steward/*/*/*/*/.debug \ + ${THE_THING_SYSTEM}/steward/*/*/*/*/*/.debug \ + ${THE_THING_SYSTEM}/steward/*/*/*/*/*/*/.debug \ + ${THE_THING_SYSTEM}/steward/*/*/*/*/*/*/*/.debug \ + ${THE_THING_SYSTEM}/steward/*/*/*/*/*/*/*/*/.debug \ + ${THE_THING_SYSTEM}/steward/*/*/*/*/*/*/*/*/*/.debug \ +" + +RDEPENDS_${PN} = "openssl tts-nodejs steward-init ruby" + +def get_arch(bb, d): + val = (bb.data.getVar("MACHINEOVERRIDES", d) or "") + if val.find("genericx86") > 0: + return "--arch=i686" + elif val.find("x86") > 0: + return "--arch=i686" + elif val.find("arm") > 0: + return "--arch=arm" + else: + return "" + +# Always compile 32-bit in npm because many modules that npm +# compiles do not support 64 bit in x86. +TTS_ARCH := "${@get_arch(bb, d)}" + +do_install_append() { + # Some python issue prevents installation if the current + # user id is not in sysroots /etc/passwd file. So add user + # information there (this is actually quite ugly hack) + # See http://bugs.python.org/issue10496 for details. + PASSLINE=`grep \`echo ${HOME}|cut -d / -f 3\` /etc/passwd`; \ + grep "'${PASSLINE}'" ${PKG_CONFIG_SYSROOT_DIR}/etc/passwd || \ + echo "${PASSLINE}" >> ${PKG_CONFIG_SYSROOT_DIR}/etc/passwd + + install -d ${D}${THE_THING_SYSTEM}/steward + install -d ${D}${systemd_unitdir}/system + install -m 0755 ${WORKDIR}/start-steward ${D}${THE_THING_SYSTEM}/steward + install -m 0755 ${WORKDIR}/start-steward.debug ${D}${THE_THING_SYSTEM}/steward + + sed 's,@the_thing_system_dir@,${THE_THING_SYSTEM},g' \ + < ${WORKDIR}/steward.service.in \ + > ${D}${systemd_unitdir}/system/steward.service + sed 's,@the_thing_system_dir@,${THE_THING_SYSTEM},g' \ + < ${WORKDIR}/server.js.in \ + > ${D}${THE_THING_SYSTEM}/steward/server.js + + cp -pR ${S}/steward/* ${D}${THE_THING_SYSTEM}/steward/ + install -m 0644 ${WORKDIR}/package.json ${D}${THE_THING_SYSTEM}/steward + rm -rf ${D}${THE_THING_SYSTEM}/steward/sandbox/js-beautify-master/tests + rm ${D}${THE_THING_SYSTEM}/steward/run.sh + find ${D}${THE_THING_SYSTEM} -name .gitignore -exec rm '{}' \; + + # Setup the node.js environment + cd ${D}${THE_THING_SYSTEM}/steward + + # There seems to be some issues (npm hanging) if you try to run + # install when behind the proxy. So we try to setup proxies for npm + # See README.iot file for details. + if [ -x ~/npm-setup-proxies ]; then ~/npm-setup-proxies; fi + + # Cleaning cache should help to some weird compilation errors + npm cache clean + + # Do a fresh start + rm -rf node_modules + + # Telling npm to use known registrars will prevent this error + # | npm ERR! Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN + # when running npm + npm config set ca "" + + # Some of the node.js packages put -pthreads into ld params and ld + # does not understand it. So install packages using gcc as a linker. + LD=${TARGET_PREFIX}gcc npm install --production -l ${TTS_ARCH} + + # No need for static libraries + find ${D}${THE_THING_SYSTEM} -name '*.a' -exec rm '{}' \; + + # Remove not used files + rm -rf ${D}${THE_THING_SYSTEM}/steward/node_modules/xml2js/node_modules/sax/examples + rm -rf ${D}${THE_THING_SYSTEM}/steward/node_modules/openzwave/deps/open-zwave/debian + + # Remove some garbage files that prevent image creation + rm -f ${D}${THE_THING_SYSTEM}/steward/node_modules/pcap/*%* + + # Blinkstick does not load in this version so just remove it + rm -rf ${D}${THE_THING_SYSTEM}/steward/node_modules/blinkstick + rm -rf ${D}${THE_THING_SYSTEM}/steward/devices/devices-lighting/lighting-blinkstick-led.js + +} diff --git a/meta-iot/recipes-web/the-thing-system/tts-nodejs_git.bb b/meta-iot/recipes-web/the-thing-system/tts-nodejs_git.bb new file mode 100644 index 0000000..813526e --- /dev/null +++ b/meta-iot/recipes-web/the-thing-system/tts-nodejs_git.bb @@ -0,0 +1,49 @@ +DESCRIPTION = "Node.js is a server-side JavaScript environment for TheThingSystem" +LICENSE = "MIT & BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4a31e6c424761191227143b86f58a1ef" + +S = "${WORKDIR}/git" +SRCREV = "cc56c62ed879ad4f93b1fdab3235c43e60f48b7e" +PV = "0.10.26" + +SRC_URI = "\ + git://github.com/joyent/node.git;branch=v0.10.26-release \ +" + +THE_THING_SYSTEM ?= "/opt/TheThingSystem" + +DEPENDS = "openssl ninja-native" + +# v8 errors out if you have set CCACHE +CCACHE = "" + +ARCHFLAGS_arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard',\ + '--with-arm-float-abi=hard', '--with-arm-float-abi=softfp', d)}" +ARCHFLAGS ?= "" + +do_configure() { + export LD="${CXX}" + ./configure --ninja --prefix=${prefix} --without-snapshot ${ARCHFLAGS} +} + +do_compile() { + export LD="${CXX}" + make BUILDTYPE=Release +} + +do_install() { + oe_runmake install DESTDIR=${D} +} + +FILES_${PN} = "\ + ${libdir} \ + ${bindir} \ +" + +RDEPENDS_${PN} = "curl python-shell python-datetime python-subprocess \ + python-crypt python-textutils python-netclient \ + python-misc python-multiprocessing \ +" +RDEPENDS_${PN}_class-native = "" + +BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf