recipes: Add various Wifi and Bluetooth demo applications
PATCH v2 1/1 recipes: Add various Wifi and Bluetooth demo applications
* Add the battleship, bluetooth-gui and wifi-direct-demo application.
* These applications are missing proper license information inside of their git repository so LIC_FILES_CHKSUM is missing.
* Working with appropriate teams to fix this issue.
Signed-off-by Franklin S Cooper Jr <[email protected]>
--- .../battleship/battleship_git.bb | 46 ++++++++++++++++ .../battleship/files/battleship.desktop | 9 +++ .../bluetooth-gui/bluetooth-gui.bb | 56 ++++++++++++++++++++ .../bluetooth-gui/files/bluetooth-icon.png | Bin 0 -> 12479 bytes .../bluetooth-gui/files/bt_demo.desktop | 9 +++ .../bluetooth-gui/files/desc_bluetooth.html | 5 ++ .../files/wifi-direct-demo.desktop | 9 +++ .../wifi-direct-demo/files/wifi_exit.sh | 3 + .../wifi-direct-demo/files/wifi_init.sh | 13 +++++ .../wifi-direct-demo/wifi-direct-demo_git.bb | 51 ++++++++++++++++++ 10 files changed, 201 insertions(+), 0 deletions(-) create mode 100644 meta-arago-extras/recipes-connectivity/battleship/battleship_git.bb create mode 100644 meta-arago-extras/recipes-connectivity/battleship/files/battleship.desktop create mode 100644 meta-arago-extras/recipes-connectivity/bluetooth-gui/bluetooth-gui.bb create mode 100755 meta-arago-extras/recipes-connectivity/bluetooth-gui/files/bluetooth-icon.png create mode 100755 meta-arago-extras/recipes-connectivity/bluetooth-gui/files/bt_demo.desktop create mode 100644 meta-arago-extras/recipes-connectivity/bluetooth-gui/files/desc_bluetooth.html create mode 100644 meta-arago-extras/recipes-connectivity/wifi-direct-demo/files/wifi-direct-demo.desktop create mode 100644 meta-arago-extras/recipes-connectivity/wifi-direct-demo/files/wifi_exit.sh create mode 100644 meta-arago-extras/recipes-connectivity/wifi-direct-demo/files/wifi_init.sh create mode 100644 meta-arago-extras/recipes-connectivity/wifi-direct-demo/wifi-direct-demo_git.bb
meta-arago-extras/recipes-connectivity/battleship/battleship_git.bb new file +46 -0
@@ -0,0 +1,46 @@ +DESCRIPTION = "Battleship game with wifi direct" +SECTION = "network" +LICENSE = "BSD" +RDEPENDS += "wpa-supplicant" + +PR = "r0" + +COMPATIBLE_MACHINE = "(omap3evm|am37x-evm|am335x-evm|am180x-evm|am181x-evm)" + +BRANCH = "dbus" +SRCREV = "644e7d37e982e3f8f3b93b01e115b11a6da161bb" +PR_append = "+gitr${SRCREV}" + +SRC_URI = "git://git.profusion.mobi/users/lucas/battleship.git;protocol=git;branch=${BRANCH} \ + file://battleship.desktop" + +require recipes-core/matrix/matrix-gui-paths.inc + +S = "${WORKDIR}/git" + +inherit qt4e + +PLATFORM_am37x-evm = "omap3evm" +PLATFORM_omapl138 = "am1808" +PLATFORM_am335x-evm = "am335x" +PLATFORM ?= "UNKNOWN" + +do_install () { + install -d ${D}${bindir} + install -m 755 tmp/battleship ${D}/${bindir}/battleship + install -d 2755 ${D}${MATRIX_APP_DIR}/battleship + install -m 644 ${S}/data/battleship-icon.png ${D}${MATRIX_APP_DIR}/battleship + install -m 644 ${WORKDIR}/battleship.desktop ${D}${MATRIX_APP_DIR}/battleship +} + +PACKAGES += "${PN} matrix-gui-wifi-battleship-demo" + +FILES_${PN} +=" \ + ${bindir}/battleship \ + " + +FILES_matrix-gui-wifi-battleship-demo += " \ + ${MATRIX_APP_DIR}/battleship/* \ + " + +RDEPENDS_matrix-gui-wifi-battleship-demo += "matrix-gui-apps-images matrix-gui-submenus-wifi ${PN}"
meta-arago-extras/recipes-connectivity/battleship/files/battleship.desktop new file +9 -0
@@ -0,0 +1,9 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Name=Battleship +GenericName=Demo App +Icon=/usr/share/matrix-gui-2.0/apps/battleship/battleship-icon.png +Type=Application +Exec=battleship +Categories=wifi +X-ProgramType=gui
meta-arago-extras/recipes-connectivity/bluetooth-gui/bluetooth-gui.bb new file +56 -0
56 lines not on this page · raw message
meta-arago-extras/recipes-connectivity/bluetooth-gui/files/bluetooth-icon.png new file binary +0 -0
meta-arago-extras/recipes-connectivity/bluetooth-gui/files/bt_demo.desktop new file +9 -0
@@ -0,0 +1,9 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Name=Bluetooth +GenericName=Bluetooth +Icon=/usr/share/matrix-gui-2.0/apps/bt_demo/bluetooth-icon.png +Type=Application +Exec=bluetooth-gui --blacklist-alsa-cards="L138 EVM,omap3evm,AM335X EVM" +X-ProgramType=gui +X-MATRIX-Description=/usr/share/matrix-gui-2.0/apps/bt_demo/desc_bluetooth.html
meta-arago-extras/recipes-connectivity/bluetooth-gui/files/desc_bluetooth.html new file +5 -0
@@ -0,0 +1,5 @@ +<h1> Bluetooth GUI </h1> + +<h2>Warning: The WiFi/Bluetooth daughter card is required in order for bluetooth to operate correctly. +Please ensure it is attached before continuing.</h2> +
meta-arago-extras/recipes-connectivity/wifi-direct-demo/files/wifi-direct-demo.desktop new file +9 -0
@@ -0,0 +1,9 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Name=WiFi-Direct Demo +GenericName=Demo App +Icon=/usr/share/matrix-gui-2.0/apps/wifi-direct-demo/wifi-direct-icon.png +Type=Application +Exec=wifi-direct-demo +Categories=wifi +X-ProgramType=gui
meta-arago-extras/recipes-connectivity/wifi-direct-demo/files/wifi_exit.sh new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +killall udhcpd
meta-arago-extras/recipes-connectivity/wifi-direct-demo/files/wifi_init.sh new file +13 -0
@@ -0,0 +1,13 @@ +#!/bin/sh + +if [ -z $1 ] +then + echo "start Client" + udhcpc -i wlan0 +else + echo "start Daemon" + echo 1 > /proc/sys/net/ipv4/ip_forward + ifconfig wlan0 192.168.0.1 + udhcpd /etc/udhcpd.conf + iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE +fi
meta-arago-extras/recipes-connectivity/wifi-direct-demo/wifi-direct-demo_git.bb new file +51 -0
51 lines not on this page · raw message
Signature · 1 line
1.7.0.4