summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-23 09:00:58 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-23 09:00:58 +0000
commit316aa9a1926686c1aafea891daaebee94417c015 (patch)
tree0175541a289abc1d855f6ee25ca58a9595d8b6fc
parent96a8fc9f5964c2b20a4eb45192cbe33bc0fa4cbf (diff)
downloadbuildroot-novena-316aa9a1926686c1aafea891daaebee94417c015.tar.gz
buildroot-novena-316aa9a1926686c1aafea891daaebee94417c015.zip
Add fbset 'frame buffer set' package
-rw-r--r--package/Config.in1
-rw-r--r--package/fbset/Config.in9
-rw-r--r--package/fbset/fbset-2.1-avr32.patch108
-rw-r--r--package/fbset/fbset.mk51
4 files changed, 169 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index c41fa389d..cb2d6c6b2 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -287,6 +287,7 @@ comment "graphic libraries"
source "package/directfb/Config.in"
if !BR2_PACKAGE_BUSYBOX_HIDE_OTHERS || BR2_avr32
source "package/fbv/Config.in"
+source "package/fbset/Config.in"
endif
source "package/jpeg/Config.in"
source "package/libpng/Config.in"
diff --git a/package/fbset/Config.in b/package/fbset/Config.in
new file mode 100644
index 000000000..24ad6e57e
--- /dev/null
+++ b/package/fbset/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_FBSET
+ bool "fbset"
+ default n
+ help
+ Fbset is a system utility to show or change the settings of the frame
+ buffer device. The frame buffer device provides a simple and unique
+ interface to access different kinds of graphic displays.
+
+ http://users.telenet.be/geertu/Linux/fbdev/
diff --git a/package/fbset/fbset-2.1-avr32.patch b/package/fbset/fbset-2.1-avr32.patch
new file mode 100644
index 000000000..359513901
--- /dev/null
+++ b/package/fbset/fbset-2.1-avr32.patch
@@ -0,0 +1,108 @@
+diff -ru fbset-2.1/fb.h fbset-2.1-avr32/fb.h
+--- fbset-2.1/fb.h 1999-06-23 16:09:48.000000000 +0200
++++ fbset-2.1-avr32/fb.h 2005-12-09 16:00:07.000000000 +0100
+@@ -131,6 +131,7 @@
+ /* vtotal = 144d/288n/576i => PAL */
+ /* vtotal = 121d/242n/484i => NTSC */
+ #define FB_SYNC_ON_GREEN 32 /* sync on green */
++#define FB_SYNC_PCLK_RISING 64 /* pixel data sampled on rising pclk */
+
+ #define FB_VMODE_NONINTERLACED 0 /* non interlaced */
+ #define FB_VMODE_INTERLACED 1 /* interlaced */
+diff -ru fbset-2.1/fbset.c fbset-2.1-avr32/fbset.c
+--- fbset-2.1/fbset.c 1999-06-23 16:11:46.000000000 +0200
++++ fbset-2.1-avr32/fbset.c 2005-12-09 16:04:53.000000000 +0100
+@@ -85,6 +85,7 @@
+ static const char *Opt_vsync = NULL;
+ static const char *Opt_csync = NULL;
+ static const char *Opt_gsync = NULL;
++static const char *Opt_pclk = NULL;
+ static const char *Opt_extsync = NULL;
+ static const char *Opt_bcast = NULL;
+ static const char *Opt_laced = NULL;
+@@ -122,6 +123,7 @@
+ { "-vsync", &Opt_vsync, 1 },
+ { "-csync", &Opt_csync, 1 },
+ { "-gsync", &Opt_gsync, 1 },
++ { "-pclk", &Opt_pclk, 1 },
+ { "-extsync", &Opt_extsync, 1 },
+ { "-bcast", &Opt_bcast, 1 },
+ { "-laced", &Opt_laced, 1 },
+@@ -344,6 +346,8 @@
+ var->sync |= FB_SYNC_COMP_HIGH_ACT;
+ if (vmode->gsync == HIGH)
+ var->sync |= FB_SYNC_ON_GREEN;
++ if (vmode->pclk == RISING)
++ var->sync |= FB_SYNC_PCLK_RISING;
+ if (vmode->extsync == TRUE)
+ var->sync |= FB_SYNC_EXT;
+ if (vmode->bcast == TRUE)
+@@ -389,6 +393,7 @@
+ vmode->vsync = var->sync & FB_SYNC_VERT_HIGH_ACT ? HIGH : LOW;
+ vmode->csync = var->sync & FB_SYNC_COMP_HIGH_ACT ? HIGH : LOW;
+ vmode->gsync = var->sync & FB_SYNC_ON_GREEN ? TRUE : FALSE;
++ vmode->pclk = var->sync & FB_SYNC_PCLK_RISING ? RISING : FALLING;
+ vmode->extsync = var->sync & FB_SYNC_EXT ? TRUE : FALSE;
+ vmode->bcast = var->sync & FB_SYNC_BROADCAST ? TRUE : FALSE;
+ vmode->grayscale = var->grayscale;
+@@ -420,11 +425,11 @@
+
+ if (!strcasecmp(var, "false") || !strcasecmp(var, "low") ||
+ !strcasecmp(var, "no") || !strcasecmp(var, "off") ||
+- !strcmp(var, "0"))
++ !strcmp(var, "0") || !strcasecmp(var, "falling"))
+ value = 0;
+ else if (!strcasecmp(var, "true") || !strcasecmp(var, "high") ||
+ !strcasecmp(var, "yes") || !strcasecmp(var, "on") ||
+- !strcmp(var, "1"))
++ !strcmp(var, "1") || !strcasecmp(var, "rising"))
+ value = 1;
+ else
+ Die("Invalid value `%s'\n", var);
+@@ -559,6 +564,8 @@
+ vmode->csync = atoboolean(Opt_csync);
+ if (Opt_gsync)
+ vmode->gsync = atoboolean(Opt_gsync);
++ if (Opt_pclk)
++ vmode->pclk = atoboolean(Opt_pclk);
+ if (Opt_extsync)
+ vmode->extsync = atoboolean(Opt_extsync);
+ if (Opt_bcast)
+@@ -635,6 +642,8 @@
+ puts(" csync high");
+ if (vmode->gsync)
+ puts(" gsync true");
++ if (vmode->pclk)
++ puts(" pclk rising");
+ if (vmode->extsync)
+ puts(" extsync true");
+ if (vmode->bcast)
+@@ -875,6 +884,7 @@
+ " -vsync <value> : vertical sync polarity (low or high)\n"
+ " -csync <value> : composite sync polarity (low or high)\n"
+ " -gsync <value> : synch on green (false or true)\n"
++ " -pclk <value> : pclk edge on which pixeldata is valid (rising or falling)\n"
+ " -extsync <value> : external sync enable (false or true)\n"
+ " -bcast <value> : broadcast enable (false or true)\n"
+ " -laced <value> : interlace enable (false or true)\n"
+diff -ru fbset-2.1/fbset.h fbset-2.1-avr32/fbset.h
+--- fbset-2.1/fbset.h 1999-06-23 16:12:28.000000000 +0200
++++ fbset-2.1-avr32/fbset.h 2005-12-09 16:05:25.000000000 +0100
+@@ -26,6 +26,9 @@
+ #define LOW (0)
+ #define HIGH (1)
+
++#define FALLING (0)
++#define RISING (1)
++
+ #define FALSE (0)
+ #define TRUE (1)
+
+@@ -59,6 +62,7 @@
+ unsigned vsync : 1;
+ unsigned csync : 1;
+ unsigned gsync : 1;
++ unsigned pclk : 1;
+ unsigned extsync : 1;
+ unsigned bcast : 1;
+ unsigned laced : 1;
diff --git a/package/fbset/fbset.mk b/package/fbset/fbset.mk
new file mode 100644
index 000000000..875cedd55
--- /dev/null
+++ b/package/fbset/fbset.mk
@@ -0,0 +1,51 @@
+#############################################################
+#
+# fbset
+#
+#############################################################
+FBSET_VERSION:=2.1
+FBSET_SOURCE:=fbset-$(FBSET_VERSION).tar.gz
+FBSET_SITE:=http://users.telenet.be/geertu/Linux/fbdev
+FBSET_DIR:=$(BUILD_DIR)/fbset-$(FBSET_VERSION)
+FBSET_CAT:=$(ZCAT)
+FBSET_BINARY:=fbset
+FBSET_TARGET_BINARY:=usr/sbin/$(FBSET_BINARY)
+
+$(DL_DIR)/$(FBSET_SOURCE):
+ $(WGET) -P $(DL_DIR) $(FBSET_SITE)/$(FBSET_SOURCE)
+
+$(FBSET_DIR)/.unpacked: $(DL_DIR)/$(FBSET_SOURCE)
+ $(FBSET_CAT) $(DL_DIR)/$(FBSET_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(FBSET_DIR) package/fbset/ fbset-$(FBSET_VERSION)\*.patch\*
+ @touch $@
+
+$(FBSET_DIR)/$(FBSET_BINARY): $(FBSET_DIR)/.unpacked
+ ($(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ $(MAKE) -C $(FBSET_DIR) CC=$(TARGET_CC) \
+ );
+ @touch -c $@
+
+$(TARGET_DIR)/$(FBSET_TARGET_BINARY): $(FBSET_DIR)/$(FBSET_BINARY)
+ $(INSTALL) -m 755 $(FBSET_DIR)/$(FBSET_BINARY) $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
+ @touch -c $@
+
+fbset: linux26 uclibc $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
+
+fbset-clean:
+ rm -f $(TARGET_DIR)/$(FBSET_TARGET_BINARY)
+ -$(MAKE) -C $(FBSET_DIR) clean
+
+fbset-dirclean:
+ rm -rf $(FBSET_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FBSET)),y)
+TARGETS+=fbset
+endif