Skip to contentSkip to conversation

recipes: Add various Wifi and Bluetooth demo applications

PATCH Superseded Franklin S Cooper Jr 2 participants 3 messages Aug 22, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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 in the recipe.
* Working with appropriate teams to fix this issue.

---
 .../recipes-core/battleship/battleship_git.bb      |   46 ++++++++++++++++
 .../battleship/files/battleship.desktop            |    9 +++
 .../recipes-core/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-core/battleship/battleship_git.bb
 create mode 100644 meta-arago-extras/recipes-core/battleship/files/battleship.desktop
 create mode 100644 meta-arago-extras/recipes-core/bluetooth-gui/bluetooth-gui.bb
 create mode 100755 meta-arago-extras/recipes-core/bluetooth-gui/files/bluetooth-icon.png
 create mode 100755 meta-arago-extras/recipes-core/bluetooth-gui/files/bt_demo.desktop
 create mode 100644 meta-arago-extras/recipes-core/bluetooth-gui/files/desc_bluetooth.html
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi-direct-demo.desktop
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi_exit.sh
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi_init.sh
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/wifi-direct-demo_git.bb
meta-arago-extras/recipes-core/battleship/battleship_git.bb new file +46 -0
new file mode 100644
index 0000000..43c7421
@@ -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-core/battleship/files/battleship.desktop new file +9 -0
new file mode 100644
index 0000000..f8ff5a2
@@ -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-core/bluetooth-gui/bluetooth-gui.bb new file +56 -0

56 lines not on this page · raw message

meta-arago-extras/recipes-core/bluetooth-gui/files/bluetooth-icon.png new file binary +0 -0
new file mode 100755
index 0000000000000000000000000000000000000000..3411afa0aa0a205731f22ab4033825c7f18a69fa
GIT binary patch
meta-arago-extras/recipes-core/bluetooth-gui/files/bt_demo.desktop new file +9 -0
new file mode 100755
index 0000000..f462500
@@ -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-core/bluetooth-gui/files/desc_bluetooth.html new file +5 -0
new file mode 100644
index 0000000..9c70972
@@ -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-core/wifi-direct-demo/files/wifi-direct-demo.desktop new file +9 -0
new file mode 100644
index 0000000..606dbba
@@ -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-core/wifi-direct-demo/files/wifi_exit.sh new file +3 -0
new file mode 100644
index 0000000..baf436b
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+killall udhcpd
meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi_init.sh new file +13 -0
new file mode 100644
index 0000000..a240e20
@@ -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-core/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
#1 lore raw

Ignore this patch. I am sending an updated patch that places these applications in recipes-connectivity which makes more sense.

-----Original Message-----
From: Cooper Jr., Franklin
Sent: Wednesday, August 22, 2012 11:11 AM
To: [email protected]
Cc: Cooper Jr., Franklin
Subject: [meta-arago-extras][PATCH] 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 in the recipe.
* Working with appropriate teams to fix this issue.

---
 .../recipes-core/battleship/battleship_git.bb      |   46 ++++++++++++++++
 .../battleship/files/battleship.desktop            |    9 +++
 .../recipes-core/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-core/battleship/battleship_git.bb
 create mode 100644 meta-arago-extras/recipes-core/battleship/files/battleship.desktop
 create mode 100644 meta-arago-extras/recipes-core/bluetooth-gui/bluetooth-gui.bb
 create mode 100755 meta-arago-extras/recipes-core/bluetooth-gui/files/bluetooth-icon.png
 create mode 100755 meta-arago-extras/recipes-core/bluetooth-gui/files/bt_demo.desktop
 create mode 100644 meta-arago-extras/recipes-core/bluetooth-gui/files/desc_bluetooth.html
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi-direct-demo.desktop
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi_exit.sh
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi_init.sh
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/wifi-direct-demo_git.bb
meta-arago-extras/recipes-core/battleship/battleship_git.bb new file +46 -0
new file mode 100644
index 0000000..43c7421
@@ -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-core/battleship/files/battleship.desktop new file +9 -0
new file mode 100644
index 0000000..f8ff5a2
@@ -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-core/bluetooth-gui/bluetooth-gui.bb new file +56 -0

56 lines not on this page · raw message

meta-arago-extras/recipes-core/bluetooth-gui/files/bluetooth-icon.png new file binary +0 -0
new file mode 100755
index 0000000000000000000000000000000000000000..3411afa0aa0a205731f22ab4033825c7f18a69fa
GIT binary patch
meta-arago-extras/recipes-core/bluetooth-gui/files/bt_demo.desktop new file +9 -0
new file mode 100755
index 0000000..f462500
@@ -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-core/bluetooth-gui/files/desc_bluetooth.html new file +5 -0
new file mode 100644
index 0000000..9c70972
@@ -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-core/wifi-direct-demo/files/wifi-direct-demo.desktop new file +9 -0
new file mode 100644
index 0000000..606dbba
@@ -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-core/wifi-direct-demo/files/wifi_exit.sh new file +3 -0
new file mode 100644
index 0000000..baf436b
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+killall udhcpd
meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi_init.sh new file +13 -0
new file mode 100644
index 0000000..a240e20
@@ -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-core/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
#2 lore raw
Quoted 2 lines · Franklin

Ignore this patch. I am sending an updated patch that places these applications in recipes-connectivity which makes more sense.

Thanks! I was about to reply that we are abusing recipes-core location... :)

Signature · 1 line
Denys
Quoted 548 lines

-----Original Message-----
From: Cooper Jr., Franklin
Sent: Wednesday, August 22, 2012 11:11 AM
To: [email protected]
Cc: Cooper Jr., Franklin
Subject: [meta-arago-extras][PATCH] 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 in the recipe.
* Working with appropriate teams to fix this issue.

---
 .../recipes-core/battleship/battleship_git.bb      |   46 ++++++++++++++++
 .../battleship/files/battleship.desktop            |    9 +++
 .../recipes-core/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-core/battleship/battleship_git.bb
 create mode 100644 meta-arago-extras/recipes-core/battleship/files/battleship.desktop
 create mode 100644 meta-arago-extras/recipes-core/bluetooth-gui/bluetooth-gui.bb
 create mode 100755 meta-arago-extras/recipes-core/bluetooth-gui/files/bluetooth-icon.png
 create mode 100755 meta-arago-extras/recipes-core/bluetooth-gui/files/bt_demo.desktop
 create mode 100644 meta-arago-extras/recipes-core/bluetooth-gui/files/desc_bluetooth.html
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi-direct-demo.desktop
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi_exit.sh
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi_init.sh
 create mode 100644 meta-arago-extras/recipes-core/wifi-direct-demo/wifi-direct-demo_git.bb
meta-arago-extras/recipes-core/battleship/battleship_git.bb new file +46 -0
new file mode 100644
index 0000000..43c7421
@@ -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-core/battleship/files/battleship.desktop new file +9 -0
new file mode 100644
index 0000000..f8ff5a2
@@ -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-core/bluetooth-gui/bluetooth-gui.bb new file +56 -0
new file mode 100644
index 0000000..3c35d89
@@ -0,0 +1,56 @@
+DESCRIPTION = "Bluetooth GUI Application"
+SECTION = "network"
+LICENSE = "BSD"
+RDEPENDS += "pulseaudio"
+
+PR = "r10"
+
+COMPATIBLE_MACHINE = "(omap3evm|am37x-evm|am335x-evm|am180x-evm|am181x-evm)"
+
+BRANCH = "master"
+SRCREV = "d9fc6f1ab023230170672d5243cbee58d740e7fe"
+PR_append = "+gitr${SRCREV}"
+
+SRC_URI = "git://git.profusion.mobi/users/lucas/BT_Demo.git;protocol=git;branch=${BRANCH} \
+           file://bluetooth-icon.png \
+           file://desc_bluetooth.html \
+           file://bt_demo.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 BT_Demo ${D}/${bindir}/bluetooth-gui
+       install -m 755 ${S}/scripts/BT_Init_${PLATFORM}.sh ${D}${bindir}/BT_Init.sh
+       install -m 755 ${S}/scripts/BT_Exit.sh ${D}${bindir}
+       install -d 2755 ${D}${MATRIX_APP_DIR}/bt_demo
+       install -m 644 ${WORKDIR}/bt_demo.desktop ${D}${MATRIX_APP_DIR}/bt_demo
+       install -m 644 ${WORKDIR}/desc_bluetooth.html ${D}${MATRIX_APP_DIR}/bt_demo
+       install -m 644 ${WORKDIR}/bluetooth-icon.png ${D}${MATRIX_APP_DIR}/bt_demo
+}
+
+PACKAGES += "${PN} matrix-gui-bluetooth-demos"
+
+FILES_${PN} +=" \
+	${bindir}/bluetooth-gui \
+	${bindir}/BT_Init.sh \
+	${bindir}/BT_Exit.sh \
+	"
+FILES_matrix-gui-bluetooth-demos += " \
+    	${MATRIX_APP_DIR}/bt_demo/* \
+        "
+
+RDEPENDS_matrix-gui-bluetooth-demos += "matrix-gui-apps-images matrix-gui-submenus-wifi ${PN}"
+
+SRC_URI[md5sum] = "357da8591816ff05e81f31379bde9a01"
+SRC_URI[sha256sum] = "aad229f585b21bf2eb4d3dee4b123271683b357bf0625b6da1ebced881595e6d"
meta-arago-extras/recipes-core/bluetooth-gui/files/bluetooth-icon.png new file binary +0 -0
new file mode 100755
index 0000000000000000000000000000000000000000..3411afa0aa0a205731f22ab4033825c7f18a69fa
GIT binary patch
meta-arago-extras/recipes-core/bluetooth-gui/files/bt_demo.desktop new file +9 -0
new file mode 100755
index 0000000..f462500
@@ -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-core/bluetooth-gui/files/desc_bluetooth.html new file +5 -0
new file mode 100644
index 0000000..9c70972
@@ -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-core/wifi-direct-demo/files/wifi-direct-demo.desktop new file +9 -0
new file mode 100644
index 0000000..606dbba
@@ -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-core/wifi-direct-demo/files/wifi_exit.sh new file +3 -0
new file mode 100644
index 0000000..baf436b
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+killall udhcpd
meta-arago-extras/recipes-core/wifi-direct-demo/files/wifi_init.sh new file +13 -0
new file mode 100644
index 0000000..a240e20
@@ -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-core/wifi-direct-demo/wifi-direct-demo_git.bb new file +51 -0
new file mode 100644
index 0000000..2e235ec
@@ -0,0 +1,51 @@
+DESCRIPTION = "Wifi Direct Demo"
+SECTION = "network"
+LICENSE = "BSD"
+RDEPENDS += "wpa-supplicant"
+
+PR = "r0"
+
+COMPATIBLE_MACHINE = "(am37x-evm|am335x-evm|am180x-evm|am181x-evm)"
+
+BRANCH = "dbus"
+SRCREV = "0950a67d9fe9a70668a993774e65ba9d457d750c"
+PR_append = "+gitr${SRCREV}"
+
+SRC_URI = "git://git.profusion.mobi/users/lucas/wifi-direct-demo.git;protocol=git;branch=${BRANCH} \
+           file://wifi-direct-demo.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 ${S}/scripts/wifi_init.sh ${D}${bindir}/
+       install -m 755 ${S}/scripts/wifi_exit.sh ${D}${bindir}/
+       install -m 755 tmp/wifi-direct-demo ${D}/${bindir}/
+       install -d 2755 ${D}${MATRIX_APP_DIR}/wifi-direct-demo
+       install -m 644 ${S}/images/wifi-direct-icon.png ${D}${MATRIX_APP_DIR}/wifi-direct-demo
+       install -m 644 ${WORKDIR}/wifi-direct-demo.desktop ${D}${MATRIX_APP_DIR}/wifi-direct-demo
+}
+
+PACKAGES += "${PN} matrix-gui-wifi-direct-demo"
+
+FILES_${PN} +=" \
+	${bindir}/wifi-direct-demo \
+	${bindir}/wifi_init.sh \
+	${bindir}/wifi_exit.sh \
+	"
+
+FILES_matrix-gui-wifi-direct-demo += " \
+	${MATRIX_APP_DIR}/wifi-direct-demo/* \
+	"
+
+RDEPENDS_matrix-gui-wifi-direct-demo += "matrix-gui-apps-images matrix-gui-submenus-wifi ${PN}"
Signature · 6 lines
1.7.0.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago