Page 1 of 1

QMake and defines.

Posted: Tue Feb 22, 2022 10:26 pm
by prime
Hi all,

Is there a way from a Qmake input file, of defining a symbol that can be tested for (e.g. with genif) inside an asm file?

Cheers.

Phill.

Re: QMake and defines.

Posted: Wed Feb 23, 2022 8:30 am
by mk79
No, but I found a workaround once: see sbsext_tk2_procs_asm and linker file. Though I'm not sure I'd like GENIFd files in the main distribution, depends on how much is different. Otherwise use separate files.

Re: QMake and defines.

Posted: Wed Feb 23, 2022 9:34 am
by prime
mk79 wrote:No, but I found a workaround once: see sbsext_tk2_procs_asm and linker file. Though I'm not sure I'd like GENIFd files in the main distribution, depends on how much is different. Otherwise use separate files.
I've basically modified 3 files, the card init, and write sector routines, those could easily go in separate files. However one of the files I needed to modify was they keys file, which is included by several of the other files. I need to do this as my hardware is based on the original but has the registers in a different order.

Cheers.

Phill.