[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] [PATCH] Machine dependent module path extension
Hi again,
I've been a little busy but the patch is ready. As I had more time to think about it, it's different from the original one. So what the patch actually does now is:
1. Introduce one global enum for all machines (instead of partially sufficient 'mch' variable)
2. Type of machine is guessed dynamically, not via #ifdefs
3. <machdir> can be: "st"; "ste"; "megaste"; "tt"; "falcon"; "milan"; "hades"; "ct60"; "firebee"; "aranym";
4. First <sysdir>/mint.cnf is checked, if not found => <machdir>/mint.cnf
As you can see, I completely left out the CPU directories, I wasn't able to decide if it's still needed or not. As Alan said, we can improve/tweak this in the future, be it more machines (ct2, ab040, PAK30, milan060 ...) or adding the CPU directories (here we have various options -- make it as additional search dir, fallback dir, top priority dir, ... you name it).
Now I'm really happy, I can finally unzip one archive on all my machines and every one of them boots with the right drivers and configuration, hooray!
P.S. Sorry for the blanks, Kate removes trailing blanks on save and I realized that when it was too late.
--
MiKRO / Mystic Bytes
http://mikro.atari.org
Attachment:
machine.patch
Description: Binary data