Commit 9e4fc291 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Add Exif, update udev-rules

apps-imgsrv recipe adds updated Exif template and PHP script to rootfs.
The template contains one new filed(PageNumber) and two existing fields were updated:
HostComputer was replaced with CameraSerialNumber and IPTCNAA containing
frame number was replaced with ImageNumber.
udev-rules recipe update addresses build error.
parent 366f21d7
......@@ -6,10 +6,9 @@ HOMEPAGE = "http://www3.elphel.com/"
PRIORITY = "optional"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;beginline=21;endline=699;md5=ccd2fef7dee090f3b211c6677c3e34cc"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
SRCDATE = "20160405"
PV = "${SRCDATE}"
PR = "r0"
......@@ -19,17 +18,20 @@ EXTRA_OEMAKE = "ELPHEL_KERNEL_DIR=${DEV_DIR}"
APPS_DIR = "${TOPDIR}/../../rootfs-elphel"
FILESEXTRAPATHS_append := "${APPS_DIR}/elphel-apps-imgsrv:"
S = "${WORKDIR}"
SRC_URI = "file://imgsrv.c \
file://Makefile \
file://LICENSE \
file://exif.php \
file://Exif_template.xml \
"
S = "${WORKDIR}"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/imgsrv ${D}${bindir}
install -m 0755 ${S}/exif.php ${D}${bindir}
install -d ${D}${sysconfdir}
install -m 0644 Exif_template.xml ${D}${sysconfdir}
}
FILES_${PN} += "${bindir}/imgsrv"
PACKAGES += " imgsrv"
FILES_${PN} += "${bindir}/imgsrv ${bindir}/exif.php ${sysconfdir}/Exif_template.xml"
PACKAGES += "imgsrv"
This diff is collapsed.
......@@ -52,6 +52,41 @@ if [ ! -e /dev/jpeghead3 ]; then
mknod /dev/jpeghead3 c 135 51
fi
# create exif files and send template to driver
if [ ! -e /dev/exif_exif0 ]; then
mknod /dev/exif_exif0 c 125 16
fi
if [ ! -e /dev/exif_exif1 ]; then
mknod /dev/exif_exif1 c 125 17
fi
if [ ! -e /dev/exif_exif2 ]; then
mknod /dev/exif_exif2 c 125 18
fi
if [ ! -e /dev/exif_exif3 ]; then
mknod /dev/exif_exif3 c 125 19
fi
if [ ! -e /dev/exif_meta0 ]; then
mknod /dev/exif_meta0 c 125 32
fi
if [ ! -e /dev/exif_meta1 ]; then
mknod /dev/exif_meta1 c 125 33
fi
if [ ! -e /dev/exif_meta2 ]; then
mknod /dev/exif_meta2 c 125 34
fi
if [ ! -e /dev/exif_meta3 ]; then
mknod /dev/exif_meta3 c 125 35
fi
if [ ! -e /dev/exif_template ]; then
mknod /dev/exif_template c 125 2
fi
if [ ! -e /dev/exif_metadir ]; then
mknod /dev/exif_metadir c 125 3
fi
/usr/bin/exif.php init=/etc/Exif_template.xml
# debug code follows, should be removed later
# inable interrupts
echo 1 > /dev/circbuf0
......
......@@ -9,8 +9,10 @@ PRIORITY = "optional"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
SRCDATE = "20160530"
PV = "${SRCDATE}"
PR = "r0"
s = "${WORKDIR}"
SRC_URI = "file://90-elphel-automount.rules \
"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment