From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1hvktO-0004SL-IZ for ptxdist@pengutronix.de; Thu, 08 Aug 2019 18:03:55 +0200 Received: by mail-wr1-x443.google.com with SMTP id g17so95457500wrr.5 for ; Thu, 08 Aug 2019 09:03:54 -0700 (PDT) From: =?UTF-8?q?Guillermo=20Rodr=C3=ADguez?= Date: Thu, 8 Aug 2019 18:03:45 +0200 Message-Id: <20190808160345.11429-1-guille.rodriguez@gmail.com> In-Reply-To: <20190807150546.twfm2hcvg2idj5r6@pengutronix.de> References: <20190807150546.twfm2hcvg2idj5r6@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH v2] Add option to install /etc/fb.modes List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: =?UTF-8?q?Guillermo=20Rodr=C3=ADguez?= Signed-off-by: Guillermo Rodriguez --- Changes since v1: * Added sample etc/fb.modes file projectroot/etc/fb.modes | 12 ++++++++++++ rules/fbset.in | 14 ++++++++++++-- rules/fbset.make | 4 +++- 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 projectroot/etc/fb.modes 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 "" +# geometry +# timings +# option +# option +# ... +# 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) -- 2.21.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de