Feature #1031
Updated by Hammel about 1 year ago
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).