summaryrefslogtreecommitdiffstats
path: root/package/libv4l/libv4l.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/libv4l/libv4l.mk')
-rw-r--r--package/libv4l/libv4l.mk19
1 files changed, 16 insertions, 3 deletions
diff --git a/package/libv4l/libv4l.mk b/package/libv4l/libv4l.mk
index a72320ee6..1ea859aa3 100644
--- a/package/libv4l/libv4l.mk
+++ b/package/libv4l/libv4l.mk
@@ -9,20 +9,33 @@ LIBV4L_SITE = http://linuxtv.org/downloads/v4l-utils/
LIBV4L_INSTALL_STAGING = YES
LIBV4L_MAKE_OPTS = PREFIX=/usr
+LIBV4L_DIRS_y += lib
+LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_DECODE_TM6000) += utils/decode_tm6000
+LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_IR_KEYTABLE) += utils/keytable
+LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_V4L2_COMPLIANCE) += utils/v4l2-compliance
+LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_V4L2_CTL) += utils/v4l2-ctl
+LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_V4L2_DBG) += utils/v4l2-dbg
+
ifeq ($(BR2_PREFER_STATIC_LIB),y)
LIBV4L_MAKE_OPTS += LINKTYPE=static
endif
define LIBV4L_BUILD_CMDS
- $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/lib $(LIBV4L_MAKE_OPTS)
+ for i in $(LIBV4L_DIRS_y); do \
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/$$i \
+ $(LIBV4L_MAKE_OPTS); done
endef
define LIBV4L_INSTALL_STAGING_CMDS
- $(MAKE) -C $(@D)/lib DESTDIR=$(STAGING_DIR) $(LIBV4L_MAKE_OPTS) install
+ for i in $(LIBV4L_DIRS_y); do \
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/$$i \
+ DESTDIR=$(STAGING_DIR) $(LIBV4L_MAKE_OPTS) install; done
endef
define LIBV4L_INSTALL_TARGET_CMDS
- $(MAKE) -C $(@D)/lib DESTDIR=$(TARGET_DIR) $(LIBV4L_MAKE_OPTS) install
+ for i in $(LIBV4L_DIRS_y); do \
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/$$i \
+ DESTDIR=$(TARGET_DIR) $(LIBV4L_MAKE_OPTS) install; done
endef
$(eval $(call GENTARGETS,package,libv4l))