From 9104390789101edc11c3ee80a00e424b4bbca9ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=BCsch?= Date: Sun, 6 Feb 2011 14:42:42 +0000 Subject: n810: Add firmware generator hotplug scripts SVN-Revision: 25384 --- .../base-files/etc/hotplug.d/firmware/10-bme-pmm-image | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 target/linux/omap24xx/base-files/etc/hotplug.d/firmware/10-bme-pmm-image (limited to 'target/linux/omap24xx/base-files/etc/hotplug.d/firmware/10-bme-pmm-image') diff --git a/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/10-bme-pmm-image b/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/10-bme-pmm-image new file mode 100644 index 0000000000..d03c9dee03 --- /dev/null +++ b/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/10-bme-pmm-image @@ -0,0 +1,15 @@ +#!/bin/sh + +n810_cal_bme_pmm_extract() { + [ -x /usr/bin/calvaria ] && { + /usr/bin/calvaria -p -n bme -i last /dev/mtdblock1 >/lib/firmware/n810-cal-bme-pmm.fw ||\ + echo "CAL-BME extract: Failed to extract blob" + } +} + +[ "$FIRMWARE" = "n810-cal-bme-pmm.fw" ] && { + [ -z "$(grep -e 'Nokia N810' /proc/cpuinfo)" ] || { + [ -e /lib/firmware/n810-cal-bme-pmm.fw ] ||\ + n810_cal_bme_pmm_extract + } +} -- cgit v1.2.3