Project

General

Profile

Actions

Feature #1031

closed

Switch functions optimizeTouchscreen and optimizeBoard to use config include files instead of multiple edits to config.txt

Added by Hammel 8 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
04 - Root File System
Target version:
Start date:
31 Aug 2023
Due date:
% Done:

100%

Estimated time:
Severity:
02 - High

Description

The optimizeTouchscreen() and optimizeBoard() functions in the functions shell script under the Buildroot skeleton tree check for hardware and then update the config.txt with specific features.

This should be changed to include board-config.txt and include touchscreen-config.txt in config.txt, if appropriate and these functions should simply copy in the appropriate configs from /usr/share/pibox/configs. The board and screen specific configs currently in the functions should be hard coded to config files under that directory.

This would make it easier to switch to a different board on boot by just copying the apropriate board/screen config to /media/boot/{board,touchscreen}-config.txt and only adding or removing the include files as necessary from config.txt.

This is effectively the same thing that was done with lcdshow's opkg.

While doing this all the commented out options currently in config.txt should be considered for movement to board or screen specific configurations. There should be a comment left in config.txt that points to where the board and screen specific configs live (/usr/share/pibox/configs).

Actions

Also available in: Atom PDF