From patchwork Sun Oct 14 18:18:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 191373 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id A56C82C0094 for ; Mon, 15 Oct 2012 05:18:51 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 28C9F8B29B; Sun, 14 Oct 2012 18:18:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5iFdjVVtwwoJ; Sun, 14 Oct 2012 18:18:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id DEE058C8A5; Sun, 14 Oct 2012 18:18:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 8F0518F74A for ; Sun, 14 Oct 2012 18:18:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EACC0A0251 for ; Sun, 14 Oct 2012 18:18:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p-uTlXgJAn+W for ; Sun, 14 Oct 2012 18:18:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [88.190.12.23]) by hemlock.osuosl.org (Postfix) with ESMTP id 8E05FA021B for ; Sun, 14 Oct 2012 18:18:33 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 20C5F1B0; Sun, 14 Oct 2012 20:18:10 +0200 (CEST) Received: from localhost (humanoidz.org [82.247.183.72]) by mail.free-electrons.com (Postfix) with ESMTPSA id B35D917B for ; Sun, 14 Oct 2012 20:18:02 +0200 (CEST) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Sun, 14 Oct 2012 20:18:21 +0200 Message-Id: <1350238701-30441-2-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1350238701-30441-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1350238701-30441-1-git-send-email-thomas.petazzoni@free-electrons.com> Subject: [Buildroot] [PATCH 2/2] libv4l: decode-tm6000 requires libv4l2util X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net The decode-tm6000 utility cannot build without the libv4l2util. If this library is not available, the build breaks with: decode_tm6000.o: In function `read_stream': decode_tm6000.c:(.text+0x220): undefined reference to `v4l2_rcvbuf' decode_tm6000.o: In function `main': decode_tm6000.c:(.text+0x37c): undefined reference to `v4l2_open' decode_tm6000.c:(.text+0x3cc): undefined reference to `v4l2_gettryset_fmt_cap' decode_tm6000.c:(.text+0x424): undefined reference to `v4l2_getset_freq' decode_tm6000.c:(.text+0x47c): undefined reference to `v4l2_mmap_bufs' decode_tm6000.c:(.text+0x4a0): undefined reference to `v4l2_start_streaming' See http://autobuild.buildroot.org/results/207ed74d5e816309ef0dc82ecc8112b51788fdf6/build-end.log We fix this by adding util/libv4l2util to the list of directories to build when decode-tm6000 is enabled. The only other user of libv4l2util is another utility called qv4l2, for which Buildroot has no Config.in option, so we only handle the case of decode-tm6000 at the moment. Signed-off-by: Thomas Petazzoni --- package/libv4l/libv4l.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/libv4l/libv4l.mk b/package/libv4l/libv4l.mk index 15e48ed..0639505 100644 --- a/package/libv4l/libv4l.mk +++ b/package/libv4l/libv4l.mk @@ -11,7 +11,7 @@ LIBV4L_MAKE_OPTS = PREFIX=/usr LIBV4L_DEPENDENCIES = jpeg LIBV4L_DIRS_y += lib -LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_DECODE_TM6000) += utils/decode_tm6000 +LIBV4L_DIRS_$(BR2_PACKAGE_LIBV4L_DECODE_TM6000) += utils/libv4l2util 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