diff options
Diffstat (limited to 'recipes/diethotplug')
4 files changed, 30 insertions, 0 deletions
diff --git a/recipes/diethotplug/diethotplug-0.4/modules.ieee1394map b/recipes/diethotplug/diethotplug-0.4/modules.ieee1394map new file mode 100644 index 0000000000..544e0a1e8d --- /dev/null +++ b/recipes/diethotplug/diethotplug-0.4/modules.ieee1394map @@ -0,0 +1,6 @@ +# ieee1394 module match_flags vendor_id model_id specifier_id version +dv1394 0x0000000c 0x000000 0x000000 0x00a02d 0x010001 +raw1394 0x0000000c 0x000000 0x000000 0x00a02d 0x010001 +raw1394 0x0000000c 0x000000 0x000000 0x00a02d 0x000100 +sbp2 0x0000000c 0x000000 0x000000 0x00609e 0x010483 +video1394 0x0000000c 0x000000 0x000000 0x00a02d 0x000100 diff --git a/recipes/diethotplug/diethotplug-0.4/modules.pcimap b/recipes/diethotplug/diethotplug-0.4/modules.pcimap new file mode 100644 index 0000000000..3fd01ca286 --- /dev/null +++ b/recipes/diethotplug/diethotplug-0.4/modules.pcimap @@ -0,0 +1 @@ +# pci module vendor device subvendor subdevice class class_mask driver_data diff --git a/recipes/diethotplug/diethotplug-0.4/modules.usbmap b/recipes/diethotplug/diethotplug-0.4/modules.usbmap new file mode 100644 index 0000000000..50eb1c8bfa --- /dev/null +++ b/recipes/diethotplug/diethotplug-0.4/modules.usbmap @@ -0,0 +1 @@ +# usb module match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info diff --git a/recipes/diethotplug/diethotplug_0.4.bb b/recipes/diethotplug/diethotplug_0.4.bb new file mode 100644 index 0000000000..150b442962 --- /dev/null +++ b/recipes/diethotplug/diethotplug_0.4.bb @@ -0,0 +1,22 @@ +SECTION = "base" +LICENSE = "GPL" +DESCRIPTION = "A small, C implementation of hotplug." + +SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/kernel/hotplug/diethotplug-${PV}.tar.gz \ + file://modules.usbmap \ + file://modules.pcimap \ + file://modules.ieee1394map" + +export KLIBC = "" + +do_compile () { + perl convert_usb.pl ${WORKDIR}/modules.usbmap > usb_modules.h + perl convert_pci.pl ${WORKDIR}/modules.pcimap > pci_modules.h + perl convert_ieee1394.pl ${WORKDIR}/modules.ieee1394map > ieee1394_modules.h + oe_runmake +} + +do_install () { + install -d ${D}${sbindir} + install -m 0755 hotplug ${D}${sbindir}/ +} |