summaryrefslogtreecommitdiff
path: root/recipes/gphoto2/ptp-gadget_git.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-05-29 16:36:57 +0200
committerKoen Kooi <koen@openembedded.org>2009-05-29 16:36:57 +0200
commitcb00e67e5936cae54278f2923c2ef09227895306 (patch)
tree2ea7d071fd129c6e1534cd1b55ade7b8a69f1e5a /recipes/gphoto2/ptp-gadget_git.bb
parent28c604bcbb2b3a34a244ac012b2283d2779a1771 (diff)
ptp-gadget: add ptp gadgetfs driver
Diffstat (limited to 'recipes/gphoto2/ptp-gadget_git.bb')
-rw-r--r--recipes/gphoto2/ptp-gadget_git.bb29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes/gphoto2/ptp-gadget_git.bb b/recipes/gphoto2/ptp-gadget_git.bb
new file mode 100644
index 0000000000..edd08cdf21
--- /dev/null
+++ b/recipes/gphoto2/ptp-gadget_git.bb
@@ -0,0 +1,29 @@
+DESCRIPTION = "This is a device-side implementation of the PTP (Picture Transfer Protocol)"
+LICENSE = "GPLv3"
+
+DEPENDS = "virtual/kernel"
+RDEPENDS = "imagemagick"
+
+PV = "1.1"
+PR_append = "+gitr${SRCREV}"
+
+SRCREV = "ef7ef29b5cdcf8630c901362a66905b956242e0d"
+SRC_URI = "git://git.denx.de/ptp-gadget.git;protocol=git"
+
+S = "${WORKDIR}/git"
+
+do_compile () {
+ export CPPFLAGS="${CPPFLAGS} ${CFLAGS}"
+ sed -i -e 's:pthread:pthread ${LDFLAGS}:' Makefile
+ oe_runmake KERNEL_SRC=${STAGING_KERNEL_DIR} CROSS_COMPILE=${TARGET_PREFIX}
+}
+
+do_install () {
+ sed -i -e s:local/::g Makefile
+ # "/usr/bin" is hardcoded in the makefile
+ install -d ${D}/usr/bin
+ oe_runmake install DESTDIR="${D}"
+}
+
+#Need specific kernel headers
+PACKAGE_ARCH = "${MACHINE_ARCH}"