summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillermo Rodríguez <guille.rodriguez@gmail.com>2019-08-08 18:03:45 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-08-09 09:32:24 +0200
commit1091e21967355c4ea7c3ac4422b5502f2951b444 (patch)
tree1f5b49b108be5ff35fa5a21015908d2022a94f99
parent06bbb6340bab2ef9e486ead8bd30df5d2a32aafe (diff)
downloadptxdist-1091e21967355c4ea7c3ac4422b5502f2951b444.tar.gz
ptxdist-1091e21967355c4ea7c3ac4422b5502f2951b444.tar.xz
Add option to install /etc/fb.modes
Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--projectroot/etc/fb.modes12
-rw-r--r--rules/fbset.in14
-rw-r--r--rules/fbset.make4
3 files changed, 27 insertions, 3 deletions
diff --git a/projectroot/etc/fb.modes b/projectroot/etc/fb.modes
new file mode 100644
index 000000000..54da1b169
--- /dev/null
+++ b/projectroot/etc/fb.modes
@@ -0,0 +1,12 @@
+#
+# Contains video mode descriptions
+# See the manual pages for fbset: fbset(8), fb.modes(5)
+#
+
+# mode "<name>"
+# geometry <xres> <yres> <vxres> <vyres> <depth>
+# timings <pixclock> <left> <right> <upper> <lower> <hslen> <vslen>
+# option <value>
+# option <value>
+# ...
+# endmode
diff --git a/rules/fbset.in b/rules/fbset.in
index c2122c51b..64dd9ec55 100644
--- a/rules/fbset.in
+++ b/rules/fbset.in
@@ -1,11 +1,21 @@
## SECTION=multimedia_framebuffer
-config FBSET
+menuconfig FBSET
tristate
- prompt "fbset"
+ prompt "fbset "
select HOST_FLEX
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.
+
+if FBSET
+
+config FBSET_FBMODES
+ bool
+ prompt "install /etc/fb.modes"
+ help
+ Install /etc/fb.modes file.
+
+endif
diff --git a/rules/fbset.make b/rules/fbset.make
index 0d34d8959..955480b21 100644
--- a/rules/fbset.make
+++ b/rules/fbset.make
@@ -45,7 +45,9 @@ $(STATEDIR)/fbset.targetinstall:
@$(call install_fixup, fbset,DESCRIPTION,missing)
@$(call install_copy, fbset, 0, 0, 0755, -, /usr/sbin/fbset)
-
+ifdef PTXCONF_FBSET_FBMODES
+ @$(call install_alternative, fbset, 0, 0, 0644, /etc/fb.modes)
+endif
@$(call install_finish, fbset)
@$(call touch)