[NEWS] Updater tool for xxxconh.h files

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
Post Reply
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

[NEWS] Updater tool for xxxconh.h files

Post by Giovanni »

Hi,

In trunk under /tools/updater there are scripts able to batch-update all chconf.h and halconf.h files in the source tree. Not mcuconf.h right now because those need a new definition in order to differentiate the various types, it will follow.

The tool will make much easier to implement things that require configuration changes, historically a sore point.

I recommend maintainers to run the tool and update all files under /community, currently ALL of those are not aligned to the new versions and this is problematic for users.

FMPP is required and must be reachable from command line. Use is very simple, just run the script.

Consistency FTW.

Giovanni
faisal
Posts: 382
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 45 times
Been thanked: 62 times

Re: [NEWS] Updater tool for xxxconh.h files

Post by faisal »

Tried using the script. Got a repeated output of: find: ‘update_chconf.sh’: No such file or directory . The -exec is incorrect int the script. Should be update_chconf_rt.sh or update_chconf_nil.sh .

Also, the line endings are CRLF ... used dos2unix to convert. Line endings should be UNIX ya?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [NEWS] Updater tool for xxxconh.h files

Post by Giovanni »

Hi,

You should update, I made those changes yesterday.

Giovanni
rew
Posts: 383
Joined: Sat Jul 19, 2014 12:59 pm
Has thanked: 2 times
Been thanked: 14 times

Re: [NEWS] Updater tool for xxxconh.h files

Post by rew »

Giovanni wrote:FMPP is required and must be reachable from command line. Use is very simple, just run the script.
ffmp is not currently installed on my system. apt-cache tells me about ffmpeg, but no ffmp. So it is not a standard tool, right? Where do I get ffmp?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [NEWS] Updater tool for xxxconh.h files

Post by Giovanni »

tzarc
Posts: 14
Joined: Thu Feb 20, 2020 7:08 am
Has thanked: 2 times
Been thanked: 6 times

Re: [NEWS] Updater tool for xxxconh.h files

Post by tzarc »

Can confirm that this worked great when upgrading all the keyboard definitions for QMK.

Completely eliminated the need to manually upgrade chconf/halconf files, and drastically cut down the number of manual changes for mcuconf.h files as only a handful of the MCUs used (F042/F072/F103/F401) did not have updaters.

Saved me a very large amount of time!

Thanks heaps for doing these. :)
Post Reply