overdue-scratch

Author Topic: How to create a module?  (Read 2679 times)

0 Members and 1 Guest are viewing this topic.

Slice

  • VoodooLabs
  • Posts: 52
How to create a module?
« on: July 22, 2011, 09:01:04 AM »
I think we can discuss all question about modules creation for Chameleon.
1. Didn't find a description how to fill these infos
Code: [Select]
Module 'Symbols.dylib' by 'Chameleon' Loaded.
Description: Chameleon symbols for linking
Version: 0
Compat:  0
Module 'klibc.dylib' by 'Unknown' Loaded.
Description:
Version: 0
Compat:  0
Module 'Resolution.dylib' by 'Unknown' Loaded.
Description:
Version: 0
Compat:  0

2. Each modules should be rebuild with main body? No hope to use modules from previous build?

meklort

  • VoodooLabs
  • Posts: 65
Re: How to create a module?
« Reply #1 on: July 25, 2011, 02:50:53 PM »
The author, description, and version info is embedded into the dylib file at compile time. This is set in the Makefile.

Presently, this information is only read out if the file is compiled directly into the boot file. If not, the module system doesn't save this information. It'll be added in at a later date.
return c ? c : !c;

Slice

  • VoodooLabs
  • Posts: 52
Re: How to create a module?
« Reply #2 on: August 04, 2011, 07:46:15 PM »
I want to add new module. I created Cconfig, I did "make config" nontheless
Code: [Select]
Module 'klibc.dylib' by 'Unknown' Loaded.
Description:
Version: 0
Compat:  0
WARNING: Unable to start NVRAM.dylib
Module 'Resolution.dylib' by 'Unknown' Loaded.
Description:
Version: 0
Compat:  0

Slice

  • VoodooLabs
  • Posts: 52
Re: How to create a module?
« Reply #3 on: August 06, 2011, 07:20:45 PM »
One day I understood why it happens. Now my module works.