summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2011-06-24 14:00:39 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-06-28 08:59:51 +0200
commit10ea58c81a2330c2b280734506dd768274a09f84 (patch)
tree8c43df7f568a6932e41b3f08c0b1b2a5d03144d4
parentef115d2ce674ee2238bf7f59b371b56d3232fb64 (diff)
downloadptxdist-10ea58c81a2330c2b280734506dd768274a09f84.tar.gz
ptxdist-10ea58c81a2330c2b280734506dd768274a09f84.tar.xz
fbset: add new package
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/fbset-2.1/0001-fbset-do-not-overwrite-CC-to-allow-crosscompiling.patch50
-rw-r--r--patches/fbset-2.1/series1
-rw-r--r--rules/fbset.in10
-rw-r--r--rules/fbset.make55
4 files changed, 116 insertions, 0 deletions
diff --git a/patches/fbset-2.1/0001-fbset-do-not-overwrite-CC-to-allow-crosscompiling.patch b/patches/fbset-2.1/0001-fbset-do-not-overwrite-CC-to-allow-crosscompiling.patch
new file mode 100644
index 000000000..372113646
--- /dev/null
+++ b/patches/fbset-2.1/0001-fbset-do-not-overwrite-CC-to-allow-crosscompiling.patch
@@ -0,0 +1,50 @@
+From 78265ef4686eb72f163802b63f7e145f96a88776 Mon Sep 17 00:00:00 2001
+From: Wolfram Sang <w.sang@pengutronix.de>
+Date: Thu, 28 Apr 2011 11:51:57 +0200
+Subject: [PATCH] fbset: fix makefile
+
+* do not overwrite CC to allow crosscompiling
+* use DESTDIR
+* don't create nodes or remove files in install
+
+Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
+Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
+---
+ Makefile | 17 ++++-------------
+ 1 file changed, 4 insertions(+), 13 deletions(-)
+
+Index: fbset-2.1/Makefile
+===================================================================
+--- fbset-2.1.orig/Makefile
++++ fbset-2.1/Makefile
+@@ -2,7 +2,7 @@
+ # Linux Frame Buffer Device Configuration
+ #
+
+-CC = gcc -Wall -O2 -I.
++CFLAGS += -Wall -O2 -I.
+ BISON = bison -d
+ FLEX = flex
+ INSTALL = install
+@@ -24,18 +24,9 @@ modes.tab.c: modes.y
+ $(BISON) modes.y
+
+ install: fbset
+- if [ -f /sbin/fbset ]; then rm /sbin/fbset; fi
+- $(INSTALL) fbset /usr/sbin
+- $(INSTALL) fbset.8 /usr/man/man8
+- $(INSTALL) fb.modes.5 /usr/man/man5
+- if [ ! -c /dev/fb0 ]; then mknod /dev/fb0 c 29 0; fi
+- if [ ! -c /dev/fb1 ]; then mknod /dev/fb1 c 29 32; fi
+- if [ ! -c /dev/fb2 ]; then mknod /dev/fb2 c 29 64; fi
+- if [ ! -c /dev/fb3 ]; then mknod /dev/fb3 c 29 96; fi
+- if [ ! -c /dev/fb4 ]; then mknod /dev/fb4 c 29 128; fi
+- if [ ! -c /dev/fb5 ]; then mknod /dev/fb5 c 29 160; fi
+- if [ ! -c /dev/fb6 ]; then mknod /dev/fb6 c 29 192; fi
+- if [ ! -c /dev/fb7 ]; then mknod /dev/fb7 c 29 224; fi
++ $(INSTALL) -D fbset $(DESTDIR)/usr/sbin
++ $(INSTALL) -D fbset.8 $(DESTDIR)/usr/man/man8
++ $(INSTALL) -D fb.modes.5 $(DESTDIR)/usr/man/man5
+
+ clean:
+ $(RM) *.o fbset lex.yy.c modes.tab.c modes.tab.h
diff --git a/patches/fbset-2.1/series b/patches/fbset-2.1/series
new file mode 100644
index 000000000..7ec7a11b9
--- /dev/null
+++ b/patches/fbset-2.1/series
@@ -0,0 +1 @@
+0001-fbset-do-not-overwrite-CC-to-allow-crosscompiling.patch
diff --git a/rules/fbset.in b/rules/fbset.in
new file mode 100644
index 000000000..04570e813
--- /dev/null
+++ b/rules/fbset.in
@@ -0,0 +1,10 @@
+## SECTION=multimedia_framebuffer
+
+config FBSET
+ tristate
+ prompt "fbset"
+ help
+ fbset is a system utility to show or change the settings
+ of the frame buffer device. The frame buffer device pro-
+ vides a simple and unique interface to access different
+ kinds of graphic displays.
diff --git a/rules/fbset.make b/rules/fbset.make
new file mode 100644
index 000000000..52fc57564
--- /dev/null
+++ b/rules/fbset.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Sascha Hauer <s.hauer@pengutronix.de>
+# Copyright (C) 2011 by Wolfram Sang <w.sang@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_FBSET) += fbset
+
+#
+# Paths and names
+#
+FBSET_VERSION := 2.1
+FBSET_MD5 := e547cfcbb8c1a4f2a6b8ba4acb8b7164
+FBSET := fbset-$(FBSET_VERSION)
+FBSET_SUFFIX := tar.gz
+FBSET_URL := http://users.telenet.be/geertu/Linux/fbdev/$(FBSET).$(FBSET_SUFFIX)
+FBSET_SOURCE := $(SRCDIR)/$(FBSET).$(FBSET_SUFFIX)
+FBSET_DIR := $(BUILDDIR)/$(FBSET)
+FBSET_LICENSE := GPLv2
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+FBSET_MAKE_ENV := $(CROSS_ENV)
+FBSET_MAKE_PAR := NO
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/fbset.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, fbset)
+ @$(call install_fixup, fbset,PRIORITY,optional)
+ @$(call install_fixup, fbset,SECTION,base)
+ @$(call install_fixup, fbset,AUTHOR,"Sascha Hauer <s.hauer@pengutronix.de>")
+ @$(call install_fixup, fbset,DESCRIPTION,missing)
+
+ @$(call install_copy, fbset, 0, 0, 0755, -, /usr/sbin/fbset)
+
+ @$(call install_finish, fbset)
+
+ @$(call touch)
+
+# vim: syntax=make