summaryrefslogtreecommitdiff
path: root/packages/angstrom
diff options
context:
space:
mode:
Diffstat (limited to 'packages/angstrom')
-rw-r--r--packages/angstrom/angstrom-led-config.bb30
-rw-r--r--packages/angstrom/angstrom-led-config/.mtn2git_empty0
-rw-r--r--packages/angstrom/angstrom-led-config/beagleboard/.mtn2git_empty0
-rw-r--r--packages/angstrom/angstrom-led-config/beagleboard/leds3
-rwxr-xr-xpackages/angstrom/angstrom-led-config/led-config31
-rw-r--r--packages/angstrom/angstrom-led-config/leds1
-rw-r--r--packages/angstrom/angstrom-zeroconf-audio.bb19
-rw-r--r--packages/angstrom/epiphany-firefox-replacement.bb10
8 files changed, 92 insertions, 2 deletions
diff --git a/packages/angstrom/angstrom-led-config.bb b/packages/angstrom/angstrom-led-config.bb
new file mode 100644
index 0000000000..a0a29cbb3c
--- /dev/null
+++ b/packages/angstrom/angstrom-led-config.bb
@@ -0,0 +1,30 @@
+DESCRIPTION = "Configuration files for runtime LED configuration"
+
+#PV = "${DISTRO_VERSION}"
+PR = "r0"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+inherit update-rc.d
+INITSCRIPT_NAME = "led-config"
+
+SRC_URI = "file://led-config \
+ file://leds \
+ "
+
+do_compile() {
+ :
+}
+
+
+do_install () {
+ install -d ${D}/${sysconfdir}/default
+ install -d ${D}/${INIT_D_DIR}
+
+ install -m 0644 ${WORKDIR}/leds ${D}/${sysconfdir}/default/
+ install -m 0755 ${WORKDIR}/led-config ${D}/${INIT_D_DIR}
+}
+
+CONFFILES_${PN} += "${sysconfdir}/default/leds \
+ ${INIT_D_DIR}/led-config \
+ "
+
diff --git a/packages/angstrom/angstrom-led-config/.mtn2git_empty b/packages/angstrom/angstrom-led-config/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/angstrom/angstrom-led-config/.mtn2git_empty
diff --git a/packages/angstrom/angstrom-led-config/beagleboard/.mtn2git_empty b/packages/angstrom/angstrom-led-config/beagleboard/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/angstrom/angstrom-led-config/beagleboard/.mtn2git_empty
diff --git a/packages/angstrom/angstrom-led-config/beagleboard/leds b/packages/angstrom/angstrom-led-config/beagleboard/leds
new file mode 100644
index 0000000000..19c73ebcf3
--- /dev/null
+++ b/packages/angstrom/angstrom-led-config/beagleboard/leds
@@ -0,0 +1,3 @@
+#file format: name trigger
+beagleboard::led0 mmc0
+beagleboard::led1 nand-disk
diff --git a/packages/angstrom/angstrom-led-config/led-config b/packages/angstrom/angstrom-led-config/led-config
new file mode 100755
index 0000000000..63d52d6cd0
--- /dev/null
+++ b/packages/angstrom/angstrom-led-config/led-config
@@ -0,0 +1,31 @@
+#! /bin/sh
+
+if [ -e /sys/class/leds/ ] ; then
+
+case "$1" in
+ start)
+ echo "Configuring leds:"
+ for led in /sys/class/leds/* ; do
+ trigger=$(grep "$(basename $led)" /etc/default/leds | awk '{print $2}')
+ if [ "x$trigger" = "x" ] ; then trigger="none" ; fi
+ echo " $(basename $led): $trigger"
+ echo "$trigger" > "$led/trigger"
+ done
+;;
+ stop)
+ echo "Deconfiguring leds:"
+ for led in /sys/class/leds/* ; do
+ echo " $(basename $led): no trigger"
+ echo "none" > "$led/trigger"
+ done
+ ;;
+ *)
+ echo "Usage: /etc/init.d/led-config {start|stop}"
+ exit 1
+esac
+
+else
+ echo "No LEDs detected"
+fi
+
+exit 0
diff --git a/packages/angstrom/angstrom-led-config/leds b/packages/angstrom/angstrom-led-config/leds
new file mode 100644
index 0000000000..7de8a2e3ae
--- /dev/null
+++ b/packages/angstrom/angstrom-led-config/leds
@@ -0,0 +1 @@
+#file format: name trigger
diff --git a/packages/angstrom/angstrom-zeroconf-audio.bb b/packages/angstrom/angstrom-zeroconf-audio.bb
index 9cbbba4053..2256b6ac4f 100644
--- a/packages/angstrom/angstrom-zeroconf-audio.bb
+++ b/packages/angstrom/angstrom-zeroconf-audio.bb
@@ -1,9 +1,24 @@
DESCRIPTION = "Meta package to enable zeroconf audio with pulseaudio"
DEPENDS = "avahi pulseaudio"
-RDEPENDS = "pulseaudio-module-zeroconf-publish avahi-daemon"
+RDEPENDS = " \
+ avahi-daemon \
+ pulseaudio-server \
+ pulseaudio-module-alsa-sink \
+ pulseaudio-module-alsa-source \
+ pulseaudio-module-cli \
+ pulseaudio-module-esound-protocol-unix \
+ pulseaudio-module-simple-protocol-tcp \
+ pulseaudio-module-native-protocol-unix \
+ pulseaudio-module-cli-protocol-unix \
+ pulseaudio-module-zeroconf-publish \
+"
+
+PR = "r3"
+
+S = "${WORKDIR}"
do_compile() {
- :
+ :
}
PACKAGE_ARCH = "all"
diff --git a/packages/angstrom/epiphany-firefox-replacement.bb b/packages/angstrom/epiphany-firefox-replacement.bb
new file mode 100644
index 0000000000..2ced2c9c06
--- /dev/null
+++ b/packages/angstrom/epiphany-firefox-replacement.bb
@@ -0,0 +1,10 @@
+# This is a hack because $*#($*($# e17 doesn't check if firefox is present and puts it in the menu blindly
+
+RDEPENDS = "epiphany"
+RCONFLICTS = "firefox"
+
+do_install() {
+ install -d ${D}/${bindir}
+ ln -sf ${bindir}/epiphany ${D}/${bindir}/firefox
+}
+