From patchwork Sat Jan 5 22:55:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 209705 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 99F0E2C0087 for ; Sun, 6 Jan 2013 09:55:56 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C5ADE101721; Sat, 5 Jan 2013 22:55:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XhC1XvrwT8J6; Sat, 5 Jan 2013 22:55:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7AC1D1018E6; Sat, 5 Jan 2013 22:55:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E17E38F753 for ; Sat, 5 Jan 2013 22:55:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C8E2A8B597 for ; Sat, 5 Jan 2013 22:55:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vJV+pRkk8R6J for ; Sat, 5 Jan 2013 22:55:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id 80F208BA86 for ; Sat, 5 Jan 2013 22:55:27 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id 12so8571274wgh.19 for ; Sat, 05 Jan 2013 14:55:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references; bh=3htsDyifReNN1qgvIUAbP3KU1z5IeO19djXRvIL/O1o=; b=vcxzCH7vqDrk4Ej3BIjEFXamLfLBsijCCZeRgg6tgJHCerFecxuzDOLUaEKJ79EUPO aChiuANzzk1ZLddjb0C8lT5eQzgrqqZ3OWa+jMdziZlmRxj6A6WhtsOkuMAQmIa6OZrS sZgXzQpxvrk1oZubHhpxmiImxKpI8qaFr+eHHXVHXfDVEKQ+mOHYPHWBxUs1T+6PkNBQ MjFyDMmH6bIwaNAarPA6bmUH5t42PI2i+ISdR8kE+3U0HVarUpFjduJ1ABqeERiqa1i9 SbEf1uXe8QOciLystlBbKG6m1MpEp4I6I6pJAha5lvSRVK9eaZ7RjH2qlJQ9FN/PkYYz oJXg== X-Received: by 10.180.19.136 with SMTP id f8mr3409262wie.0.1357426525718; Sat, 05 Jan 2013 14:55:25 -0800 (PST) Received: from localhost.localdomain (13-105-190-109.dsl.ovh.fr. [109.190.105.13]) by mx.google.com with ESMTPS id hu8sm5336199wib.6.2013.01.05.14.55.24 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Jan 2013 14:55:24 -0800 (PST) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Sat, 5 Jan 2013 23:55:15 +0100 Message-Id: <34c8a8d2b60155f31e3074b4c61059e06540adfe.1357426077.git.maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: Subject: [Buildroot] [PATCH 2/3] rpi-userland: new package 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 Introducing a package to build the userland part of the Raspberry, needed by anyone who would want to build a rootfs for a RaspberryPi. Signed-off-by: Maxime Hadjinlian --- package/Config.in | 1 + package/rpi-userland/Config.in | 11 +++++++++ ...make-vmcs.cmake-allow-to-override-VMCS_IN.patch | 26 ++++++++++++++++++++ package/rpi-userland/rpi-userland.mk | 19 ++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 package/rpi-userland/Config.in create mode 100644 package/rpi-userland/rpi-userland-makefiles-cmake-vmcs.cmake-allow-to-override-VMCS_IN.patch create mode 100644 package/rpi-userland/rpi-userland.mk diff --git a/package/Config.in b/package/Config.in index 9b50f4b..17205fe 100644 --- a/package/Config.in +++ b/package/Config.in @@ -580,6 +580,7 @@ source "package/collectd/Config.in" source "package/empty/Config.in" source "package/googlefontdirectory/Config.in" source "package/mobile-broadband-provider-info/Config.in" +source "package/rpi-userland/Config.in" source "package/shared-mime-info/Config.in" source "package/snowball-init/Config.in" source "package/sound-theme-borealis/Config.in" diff --git a/package/rpi-userland/Config.in b/package/rpi-userland/Config.in new file mode 100644 index 0000000..b596a36 --- /dev/null +++ b/package/rpi-userland/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_RPI_USERLAND + bool "rpi-userland" + help + Raspberry Pi Userland contains the necessary library to use the + VideoCore driver. + + Includes source for the ARM side code to interface to: + EGL, mmal, GLESv2, vcos, openmaxil, vchiq_arm, bcm_host, WFC, OpenVG. + + https://github.com/raspberrypi/userland/ + diff --git a/package/rpi-userland/rpi-userland-makefiles-cmake-vmcs.cmake-allow-to-override-VMCS_IN.patch b/package/rpi-userland/rpi-userland-makefiles-cmake-vmcs.cmake-allow-to-override-VMCS_IN.patch new file mode 100644 index 0000000..e54d29e --- /dev/null +++ b/package/rpi-userland/rpi-userland-makefiles-cmake-vmcs.cmake-allow-to-override-VMCS_IN.patch @@ -0,0 +1,26 @@ +From fec2560cfcb8d3398e4f1ccc3de7923365873676 Mon Sep 17 00:00:00 2001 +From: Samuel Martin +Date: Sat, 5 Jan 2013 16:04:55 +0100 +Subject: [PATCH] makefiles/cmake/vmcs.cmake: allow to override + VMCS_INSTALL_PREFIX + +Signed-off-by: Samuel Martin +--- + makefiles/cmake/vmcs.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/makefiles/cmake/vmcs.cmake b/makefiles/cmake/vmcs.cmake +index 0f8641b..cc70cca 100644 +--- a/makefiles/cmake/vmcs.cmake ++++ b/makefiles/cmake/vmcs.cmake +@@ -9,7 +9,7 @@ INCLUDE(CPack) + # Where shall we install? + if (ANDROID) + SET(VMCS_INSTALL_PREFIX "/vendor/brcm/islands" CACHE PATH "Prefix prepended to install directories" FORCE) +-else() ++elseif(NOT DEFINED VMCS_INSTALL_PREFIX) + SET(VMCS_INSTALL_PREFIX "/opt/vc" CACHE PATH "Prefix prepended to install directories" FORCE) + endif() + +-- +1.8.1 diff --git a/package/rpi-userland/rpi-userland.mk b/package/rpi-userland/rpi-userland.mk new file mode 100644 index 0000000..2b919ea --- /dev/null +++ b/package/rpi-userland/rpi-userland.mk @@ -0,0 +1,19 @@ +############################################################# +# +# rpi-userland +# +############################################################# +RPI_USERLAND_VERSION = 9852ce28826889e50c4d6786b942f51bccccac54 +RPI_USERLAND_SITE = http://github.com/raspberrypi/userland/tarball/master +RPI_USERLAND_LICENSE = BSD-3c +RPI_USERLAND_LICENSE_FILE = LICENCE +RPI_USERLAND_INSTALL_STAGING = YES +RPI_USERLAND_CONF_OPT = -DVMCS_INSTALL_PREFIX=/usr + +define RPI_USERLAND_POST_TARGET_CLEANUP + rm -Rf $(TARGET_DIR)/usr/src +endef + +RPI_USERLAND_POST_INSTALL_TARGET_HOOKS += RPI_USERLAND_POST_TARGET_CLEANUP + +$(eval $(cmake-package))