From patchwork Mon Sep 3 20:59:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Belisko Marek X-Patchwork-Id: 181414 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id E79FE2C0087 for ; Tue, 4 Sep 2012 06:59:49 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6E4CF27235; Mon, 3 Sep 2012 20:59:48 +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 gU4oHgEPg4Ii; Mon, 3 Sep 2012 20:59:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 2F98D25767; Mon, 3 Sep 2012 20:59:47 +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 3805D8F753 for ; Mon, 3 Sep 2012 20:59:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7B0DB8A301 for ; Mon, 3 Sep 2012 20:59:46 +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 akHUBninpx0A for ; Mon, 3 Sep 2012 20:59:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 227B78290F for ; Mon, 3 Sep 2012 20:59:45 +0000 (UTC) Received: by ieje14 with SMTP id e14so8366690iej.16 for ; Mon, 03 Sep 2012 13:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=/Xprg7+fSSA+gATWN5mFJo5+i5sIv7tW8xZ+l67V0ZA=; b=i+qE4Z7/pNxuhBoCrYNGY8tujdkx0p/Ki+gKo1v9TvO4YXEN1o1O8hK5Y9qO+P8ZBT 2ig33PdySODpFWooX+/9tcU+stRL1Vp1sq6K7r6FOR6uKwnIHvjcGE+Xt7NTITJe8CR2 2lQpga0dMyf7z69o5hOfHONg6uoDkc6bhsklwD3sQIdqx6c4KpVFxodNLj5DZdMoK4/C cXZg5Oc7pqczkD3Ehkq6rBYUbbAMEK5/KfAaUUufFgVGG5YsSUcm/r5hO+4tl+7Q+IgV m8yEtSFxa6zNixuCxZKHPz1TDFAWbBACGSEI1KLXLJGCtTt+w98/9V3a9trtS4Ut6ttr se8Q== MIME-Version: 1.0 Received: by 10.43.131.193 with SMTP id hr1mr16341307icc.31.1346705984461; Mon, 03 Sep 2012 13:59:44 -0700 (PDT) Received: by 10.64.11.67 with HTTP; Mon, 3 Sep 2012 13:59:44 -0700 (PDT) Date: Mon, 3 Sep 2012 22:59:44 +0200 Message-ID: From: Belisko Marek To: buildroot Subject: [Buildroot] adding custom company packages 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Hi, I'm following http://www.elinux.org/images/2/2a/Using-buildroot-real-project.pdf (especially page 28 Project-speci c packages (2/5)) I have simple QT application which was added to custom subdirectory in package directory and according presentation everything seems to be fine. But there is one problem songPresentation.mk is never called (at least package isn't starting to build at all). Any ideas what I'm doing wrong? Thanks in advance. Attached is my patch: +$(eval $(generic-package)) + mbe diff --git a/package/Config.in b/package/Config.in index f308de7..a2d9fe2 100644 --- a/package/Config.in +++ b/package/Config.in @@ -696,4 +696,8 @@ source "package/vim/Config.in" endif endmenu +menu "SDB project" +source "package/sdb/songPresentation/Config.in" +endmenu + endmenu diff --git a/package/sdb/sdb.mk b/package/sdb/sdb.mk new file mode 100644 index 0000000..0d23585 --- /dev/null +++ b/package/sdb/sdb.mk @@ -0,0 +1 @@ +include package/sdb/*/*.mk diff --git a/package/sdb/songPresentation/Config.in b/package/sdb/songPresentation/Config.in new file mode 100644 index 0000000..f3425fb --- /dev/null +++ b/package/sdb/songPresentation/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_SONG_PRESENTATION + bool "songPresentation" + depends on BR2_PACKAGE_QT + help + songPresentation is simple presentation of church songs + diff --git a/package/sdb/songPresentation/S99songPresentation b/package/sdb/songPresentation/S99songPresentation new file mode 100644 index 0000000..38103f2 --- /dev/null +++ b/package/sdb/songPresentation/S99songPresentation @@ -0,0 +1,37 @@ +#!/bin/sh +# +# Starts song presentation +# + +start() { + echo -n "Starting songPresentation: " + # Make sure dropbear directory exists + start-stop-daemon --start --quiet --background --exec /usr/bin/songPresentation -qws -display "Multi: LinuxFb:/dev/fb1 LinuxFb:/dev/fb0" -nomouse + echo "OK" +} +stop() { + echo -n "Stopping songPresentation: " + echo "OK" +} +restart() { + stop + start +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|reload) + restart + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $? + diff --git a/package/sdb/songPresentation/songPresentation.mk b/package/sdb/songPresentation/songPresentation.mk new file mode 100644 index 0000000..82c45e9 --- /dev/null +++ b/package/sdb/songPresentation/songPresentation.mk @@ -0,0 +1,25 @@ +############################################################# +# +# song +# +############################################################# + +SONG_PRESENTATION_VERSION = master +SONG_PRESENTATION_SITE = https://github.com/nandra/songPresentation.git +SONG_PRESENTATION_SITE_METHOD = git + +define SONG_PRESENTATION_CONFIGURE_CMDS + cd $(@D) && $(QT_QMAKE) +endef + +define SONG_PRESENTATION_BUILD_CMDS + $(MAKE) -C $(@D) +endef + +define SONG_PRESENTATION_INSTALL_TARGET_CMDS + install -D -m 0755 $(@D)/songPresentation $(TARGET_DIR)/usr/bin/songPresentation + install -D -m 0755 $(@D)/S90songPresentation $(TARGET_DIR)/etc/init.d/S90songPresentation +endef +