diff options
Diffstat (limited to 'packages/robostix-module/robostix-module.bb')
-rw-r--r-- | packages/robostix-module/robostix-module.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/robostix-module/robostix-module.bb b/packages/robostix-module/robostix-module.bb new file mode 100644 index 0000000000..7f95adf341 --- /dev/null +++ b/packages/robostix-module/robostix-module.bb @@ -0,0 +1,36 @@ +DESCRIPTION = "Linux Driver for Gumstix robostix daughtercards" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPL" +RDEPENDS = "kernel (${KERNEL_VERSION})" +DEPENDS = "virtual/kernel" + +PR = "r1" + +INITSCRIPT_NAME = "robostix" +INITSCRIPT_PARAMS = "defaults 10" + +SRC_URI = "\ + file://Makefile \ + file://robostix.h \ + file://robostix.c \ + file://robostix.init \ + " + +S = "${WORKDIR}" + +inherit module update-rc.d + +do_install() { + install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/ + install -m 0644 ${WORKDIR}/robostix.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/ + + install -d ${D}${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/robostix.init ${D}${sysconfdir}/init.d/robostix +} + +PACKAGES = "${PN}" + +FILES_${PN} = "${base_libdir}/modules/" +FILES_${PN} += "${sysconfdir}/" + |