rage1 icon indicating copy to clipboard operation
rage1 copied to clipboard

all: refactor configuration data into config file

Open jorgegv opened this issue 2 years ago • 3 comments

Refactor all configurtation data which is spread among the tools and source code into a global config file, and make the tools read it and generate code according to it.

Tasks:

  • [x] Create config file
  • [ ] Create tool to generate rageconfig.h and rageconfig.inc from config file (C and ASM include files)
  • [ ] DATAGEN: make generated files include the previous include files (C and ASM)
  • [ ] Modify data target in Makefile to generate the config include files as the first step before generating any code
  • [x] Refactor memory map config (base addresses for dataset, codesets, etc.)
  • [x] Refactor memory bank assignments (for codeset/dataset/banked)
  • [ ] ...

jorgegv avatar Oct 22 '21 18:10 jorgegv

What about this for a parser (I'm the maintainer)? https://github.com/andy5995/canfigger

andy5995 avatar Dec 20 '21 20:12 andy5995

hi andy,

thanks but the config file for the build will be a simple key=value format which can be parsed with about half a dozen lines of perl code, so I don't need a full C parser for this. But thanks for the offer :-)

jorgegv avatar Dec 21 '21 08:12 jorgegv

You're welcome @jorgegv . Thanks for the reply. Good luck with your project!

andy5995 avatar Dec 21 '21 20:12 andy5995