From 58fa34bf8aa9719f4dddfaf7d4f03614c1c6bc65 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 29 Apr 2010 14:41:49 +0200 Subject: overo-writeprom: rename to omap3-writeprom and make it work on both overo and beagleboard --- recipes/i2c-tools/omap3-writeprom.bb | 16 ++++ recipes/i2c-tools/omap3-writeprom/writeprom.sh | 103 +++++++++++++++++++++++++ recipes/overo-scripts/files/writeprom.sh | 91 ---------------------- recipes/overo-scripts/overo-writeprom.bb | 16 ---- 4 files changed, 119 insertions(+), 107 deletions(-) create mode 100644 recipes/i2c-tools/omap3-writeprom.bb create mode 100755 recipes/i2c-tools/omap3-writeprom/writeprom.sh delete mode 100755 recipes/overo-scripts/files/writeprom.sh delete mode 100644 recipes/overo-scripts/overo-writeprom.bb diff --git a/recipes/i2c-tools/omap3-writeprom.bb b/recipes/i2c-tools/omap3-writeprom.bb new file mode 100644 index 0000000000..485d06fe43 --- /dev/null +++ b/recipes/i2c-tools/omap3-writeprom.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "Writeprom script for omap3 boards with EEPROM on there expansionboard - see http://www.elinux.org/BeagleBoardPinMux#Vendor_and_Device_IDs" + + +SRC_URI = "file://writeprom.sh" + +S = "${WORKDIR}" + +do_install () { + install -d ${D}${bindir}/ + install -m 0755 ${WORKDIR}/writeprom.sh ${D}${bindir}/ +} + +PACKAGE_ARCH = "all" +RDEPENDS_${PN} = "i2c-tools" +FILES_${PN} = "${bindir}" + diff --git a/recipes/i2c-tools/omap3-writeprom/writeprom.sh b/recipes/i2c-tools/omap3-writeprom/writeprom.sh new file mode 100755 index 0000000000..d1e2b09dcc --- /dev/null +++ b/recipes/i2c-tools/omap3-writeprom/writeprom.sh @@ -0,0 +1,103 @@ +#!/bin/sh + +machine_id() { # return the machine ID + awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } '