From patchwork Sat Jul 25 09:15:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 499942 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id CC39E140320 for ; Sat, 25 Jul 2015 19:15:24 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=RNXKnZx4; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1D323A197A; Sat, 25 Jul 2015 09:15:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id awIrr98lKI0Z; Sat, 25 Jul 2015 09:15:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6EAD0A18F2; Sat, 25 Jul 2015 09:15:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id DB7CD1C2846 for ; Sat, 25 Jul 2015 09:15:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D7DBF31A39 for ; Sat, 25 Jul 2015 09:15:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AyTlXrIA6MX7 for ; Sat, 25 Jul 2015 09:15:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by silver.osuosl.org (Postfix) with ESMTPS id 9FC28308D0 for ; Sat, 25 Jul 2015 09:15:19 +0000 (UTC) Received: by wibud3 with SMTP id ud3so87014040wib.1 for ; Sat, 25 Jul 2015 02:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=2TpDrGknsi6Bs3+p0BkNIF5VU6gbnanN2x5xy3RDGbY=; b=RNXKnZx4QG54wkMJk0YTubUDQIBZPQQE9j9myr2exCrYSqXHVNPsabY14tIsk4sOkh SLk3ursZbVueIAN5ZKW7FZQVH/UyM08X+l0caCj5t/1oHLbYOf7MLfDrfOfKnIoprUNu F3XBvWXaVtZB3XgnX+1sPJrYGhWr5jMgkncQIJ8W5ECcI6nk9pVzfAAtQY9qPRLxuoan Gajgx3PMr0J5PONDY0KZrQUzyfdawnkwwfiC91mBlXGq/lfDbqYmSytoIrSV3n3HgUtx tjuEkRqKoNf8D7WbC7AEte2CsqG1Ket/DC17V0jdYQLbHs6f9Z/im69ekpTGSf3PJ3H0 TeoQ== X-Received: by 10.194.83.70 with SMTP id o6mr34597601wjy.44.1437815718328; Sat, 25 Jul 2015 02:15:18 -0700 (PDT) Received: from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id fo1sm2369533wib.24.2015.07.25.02.15.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Jul 2015 02:15:17 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sat, 25 Jul 2015 11:15:13 +0200 Message-Id: <1437815713-15874-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.9.1 Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH] package/rpi-userland: add option to install hello-pi examples X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" rpi-userland comes with a set of demo programs that can be useful to understand how to program HW-accelerated video/3D/fft/... on the RPi. They can also be used to validate that the hardware is working properly. Signed-off-by: "Yann E. MORIN" --- .../0005-disable-missing-all-apps.patch | 30 ++++++++++++++++++++++ package/rpi-userland/Config.in | 5 ++++ package/rpi-userland/rpi-userland.mk | 20 +++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 package/rpi-userland/0005-disable-missing-all-apps.patch diff --git a/package/rpi-userland/0005-disable-missing-all-apps.patch b/package/rpi-userland/0005-disable-missing-all-apps.patch new file mode 100644 index 0000000..520c7be --- /dev/null +++ b/package/rpi-userland/0005-disable-missing-all-apps.patch @@ -0,0 +1,30 @@ +From 249f6c8b44581083dfb16ebf66bfe94f7c9fb163 Mon Sep 17 00:00:00 2001 +From: "Yann E. MORIN" +Date: Fri, 24 Jul 2015 20:20:33 +0200 +Subject: [PATCH] host-applications: disable missing applications + +Those applications are missing from the public rpi-firmware package, so +do not even try to build them. + +Signed-off-by: "Yann E. MORIN" +--- + host_applications/linux/CMakeLists.txt | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/host_applications/linux/CMakeLists.txt b/host_applications/linux/CMakeLists.txt +index ea4e016..4a87862 100644 +--- a/host_applications/linux/CMakeLists.txt ++++ b/host_applications/linux/CMakeLists.txt +@@ -10,9 +10,7 @@ add_subdirectory(apps/smem) + add_subdirectory(libs/debug_sym) + + if(ALL_APPS) +- add_subdirectory(apps/vcdbg) + # add_subdirectory(apps/smct) +- add_subdirectory(apps/edid_parser) + add_subdirectory(apps/hello_pi) + endif() + +-- +1.9.1 + diff --git a/package/rpi-userland/Config.in b/package/rpi-userland/Config.in index 0e88908..9bb2bfc 100644 --- a/package/rpi-userland/Config.in +++ b/package/rpi-userland/Config.in @@ -38,6 +38,11 @@ config BR2_PACKAGE_RPI_USERLAND_START_VCFILED vcfiled is a daemon serving files to VideoCore from the host file system. +config BR2_PACKAGE_RPI_USERLAND_HELLO + bool "hello_pi examples" + help + Install the hello-pi examples to test the HW (GPU, camera...) + endif comment "rpi-userland needs a toolchain w/ C++, threads, dynamic library" diff --git a/package/rpi-userland/rpi-userland.mk b/package/rpi-userland/rpi-userland.mk index e2eadb2..3a31733 100644 --- a/package/rpi-userland/rpi-userland.mk +++ b/package/rpi-userland/rpi-userland.mk @@ -28,6 +28,26 @@ define RPI_USERLAND_INSTALL_INIT_SYSTEMD endef endif +ifeq ($(BR2_PACKAGE_RPI_USERLAND_HELLO),y) + +RPI_USERLAND_CONF_OPTS += -DALL_APPS=ON + +define RPI_USERLAND_EXTRA_LIBS_TARGET + $(INSTALL) -m 0644 -D \ + $(@D)/build/lib/libilclient.so \ + $(TARGET_DIR)/usr/lib/libilcient.so +endef +RPI_USERLAND_POST_INSTALL_TARGET_HOOKS += RPI_USERLAND_EXTRA_LIBS_TARGET + +define RPI_USERLAND_EXTRA_LIBS_STAGING + $(INSTALL) -m 0644 -D \ + $(@D)/build/lib/libilclient.so \ + $(STAGING_DIR)/usr/lib/libilcient.so +endef +RPI_USERLAND_POST_INSTALL_STAGING_HOOKS += RPI_USERLAND_EXTRA_LIBS_STAGING + +endif # BR2_PACKAGE_RPI_USERLAND_HELLO + define RPI_USERLAND_POST_TARGET_CLEANUP rm -f $(TARGET_DIR)/etc/init.d/vcfiled rm -f $(TARGET_DIR)/usr/share/install/vcfiled